/**
 * Tipy na dárek — frontend redesign overlay
 * Override stylů z style.css. Soustředí se na moderní vzhled, animace a luxusní hover efekty.
 * Barvy zachovány (zlatá #b8862e + krémová), polished typografie.
 */

/* ============================================================
   ROZŠÍŘENÉ DESIGN TOKENS
   ============================================================ */
:root {
    /* Tlumené zlaté přechody */
    --gold-100: #fef9ed;
    --gold-200: #fcebc4;
    --gold-300: #f4d588;
    --gold-400: #d8a64c;
    --gold-500: #b8862e;
    --gold-600: #8b5e1a;
    --gold-700: #5e3f10;

    /* Premium gradients */
    --grad-gold: linear-gradient(135deg, #d8a64c 0%, #b8862e 50%, #8b5e1a 100%);
    --grad-gold-soft: linear-gradient(135deg, #fef9ed 0%, #fcebc4 100%);
    --grad-shimmer: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);

    /* Premium shadows (cooler, longer, multi-layer) */
    --shadow-soft:  0 1px 2px rgba(15,23,42,0.04), 0 2px 4px rgba(15,23,42,0.04);
    --shadow-card:  0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.05);
    --shadow-pop:   0 14px 28px -10px rgba(15,23,42,0.18), 0 6px 12px -6px rgba(184,134,46,0.18);
    --shadow-deep:  0 30px 60px -15px rgba(15,23,42,0.25), 0 12px 24px -8px rgba(184,134,46,0.18);
    --shadow-glow:  0 0 0 1px rgba(184,134,46,0.18), 0 8px 24px -6px rgba(184,134,46,0.30);

    /* Easings — physical-feel motion */
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);

    --t-fast: 180ms;
    --t-med:  280ms;
    --t-slow: 480ms;
}

/* ============================================================
   GLOBÁLNÍ POLISH
   ============================================================ */
body {
    font-feature-settings: "ss01", "cv11";
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--gold-300);
    color: var(--gold-700);
}

/* Smooth focus rings všude */
*:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   STICKY HEADER s BACKDROP-BLUR
   ============================================================ */
.site-header {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(184, 134, 46, 0.08);
    box-shadow: none;
    transition: background var(--t-med) var(--ease-in-out),
                box-shadow var(--t-med) var(--ease-in-out),
                border-color var(--t-med) var(--ease-in-out);
}

.site-header.is-scrolled {
    background: rgba(253, 248, 240, 0.95);
    box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.12);
    border-bottom-color: rgba(184, 134, 46, 0.18);
}

.logo {
    transition: transform var(--t-fast) var(--ease-out-back);
}
.logo:hover { transform: scale(1.03); }

.logo i {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: transform var(--t-med) var(--ease-out-back);
}
.logo:hover i { transform: rotate(-8deg); }

.header-search input {
    border-color: rgba(184, 134, 46, 0.18);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.header-search input:hover {
    border-color: rgba(184, 134, 46, 0.35);
}

/* ============================================================
   TLAČÍTKA — gradient + shimmer + glow
   ============================================================ */
.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform var(--t-fast) var(--ease-out-back),
                box-shadow var(--t-med) var(--ease-in-out),
                background var(--t-med) var(--ease-in-out);
}

/* Shimmer pass přes tlačítko při hoveru */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-shimmer);
    transform: translateX(-100%);
    transition: transform 700ms var(--ease-out-expo);
    pointer-events: none;
    z-index: -1;
}
.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--grad-gold);
    border: none;
    box-shadow: 0 6px 16px -4px rgba(184, 134, 46, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(184, 134, 46, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    background: transparent;
    border: 1.5px solid var(--gold-500);
    color: var(--gold-600);
    transition: var(--transition);
}
.btn-outline-primary:hover {
    background: var(--gold-500);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px rgba(184, 134, 46, 0.5);
}

/* ============================================================
   SECTION TITULKY se zlatou decorative linkou
   ============================================================ */
.section-title {
    position: relative;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
    padding-bottom: 18px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: var(--grad-gold);
    border-radius: 3px;
    box-shadow: 0 2px 8px -2px rgba(184, 134, 46, 0.5);
}

/* ============================================================
   ARTICLE CARDS — luxusní hover efekt
   ============================================================ */
.articles-section {
    background: linear-gradient(180deg, var(--white) 0%, #faf6ed 100%);
}

.article-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(184, 134, 46, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--t-med) var(--ease-out-expo),
                box-shadow var(--t-med) var(--ease-out-expo),
                border-color var(--t-med) var(--ease-in-out);
    isolation: isolate;
}

/* Bottom accent line — vyjede zleva při hoveru */
.article-card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--t-slow) var(--ease-out-expo);
    z-index: 2;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-color: rgba(184, 134, 46, 0.25);
}
.article-card:hover::before {
    transform: scaleX(1);
}

/* Obrázek: gradient overlay + soft zoom */
.article-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--gold-100), var(--gold-200));
    overflow: hidden;
}
.article-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.45) 100%);
    opacity: 0;
    transition: opacity var(--t-med) var(--ease-in-out);
    z-index: 1;
}
.article-card:hover .article-image::after {
    opacity: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms var(--ease-out-expo),
                filter var(--t-med) var(--ease-in-out);
}
.article-card:hover .article-image img {
    transform: scale(1.08);
    filter: saturate(1.1);
}

/* Article meta polish */
.article-content {
    padding: 24px;
}
.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--grad-gold-soft);
    color: var(--gold-600);
    border: 1px solid rgba(184, 134, 46, 0.15);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    transition: var(--transition);
}
.article-card .article-category:hover,
a.article-category:hover {
    background: var(--grad-gold);
    color: #fff;
    border-color: transparent;
}

.article-card h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
    color: var(--gray-900);
    transition: color var(--t-med) var(--ease-in-out);
}
.article-card h3 a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--gold-500), var(--gold-500));
    background-size: 0 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size var(--t-med) var(--ease-out-expo);
}
.article-card:hover h3 { color: var(--gold-600); }
.article-card h3 a:hover { background-size: 100% 1.5px; }

.article-card p {
    color: var(--gray-600);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--gray-500);
}
.article-date::before {
    content: "\f073";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    color: var(--gold-400);
    font-size: 11px;
}

/* ============================================================
   PRODUCT / HP CARDS — sjednoceno se stylováním článků
   ============================================================ */
.hp-card {
    border: 1px solid rgba(184, 134, 46, 0.08);
    box-shadow: var(--shadow-card);
    transition: transform var(--t-med) var(--ease-out-expo),
                box-shadow var(--t-med) var(--ease-out-expo),
                border-color var(--t-med) var(--ease-in-out);
}
.hp-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-pop);
    border-color: rgba(184, 134, 46, 0.30);
}

/* ============================================================
   DETAIL ČLÁNKU — typografie + featured image
   ============================================================ */
.article-detail {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(184, 134, 46, 0.08);
}

.article-header {
    padding: 48px 48px 32px;
    text-align: center;
    background: var(--grad-gold-soft);
    border-bottom: 1px solid rgba(184, 134, 46, 0.12);
}
.article-header h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin: 16px 0 20px;
    color: var(--gray-900);
}
.article-header .article-category {
    margin-bottom: 0;
}
.article-header .article-meta {
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    color: var(--gray-600);
}

/* Featured image — bez ořezu, s rámečkem a lehkým stínem */
.article-featured-image {
    margin: 0;
    padding: 24px 48px 0;
    background: #fff;
}
.article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.18),
                0 0 0 1px rgba(184, 134, 46, 0.08);
}

/* Content typography */
.article-detail .article-content {
    padding: 36px 48px 48px;
    font-size: 18px;
    line-height: 1.78;
    color: var(--gray-800);
}
.article-detail .article-content > *:first-child { margin-top: 0; }
.article-detail .article-content h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 40px 0 16px;
    color: var(--gray-900);
    position: relative;
    padding-left: 18px;
}
.article-detail .article-content h2::before {
    content: "";
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 4px;
    background: var(--grad-gold);
    border-radius: 4px;
}
.article-detail .article-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--gray-900);
}
.article-detail .article-content p {
    margin: 0 0 18px;
}
.article-detail .article-content a {
    color: var(--gold-600);
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(var(--gold-400), var(--gold-400));
    background-size: 100% 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size var(--t-med) var(--ease-out-expo),
                color var(--t-fast) var(--ease-in-out);
}
.article-detail .article-content a:hover {
    color: var(--gold-700);
    background-size: 100% 100%;
    background-image: linear-gradient(var(--gold-100), var(--gold-100));
}
.article-detail .article-content blockquote {
    margin: 28px 0;
    padding: 20px 28px;
    background: var(--grad-gold-soft);
    border-left: 4px solid var(--gold-500);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-700);
}
.article-detail .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    margin: 20px 0;
}
.article-detail .article-content ul,
.article-detail .article-content ol {
    padding-left: 24px;
    margin: 16px 0 22px;
}
.article-detail .article-content li {
    margin-bottom: 8px;
}
.article-detail .article-content ul li::marker {
    color: var(--gold-500);
}

/* Tags pod článkem */
.article-tags {
    padding: 24px 48px;
    border-top: 1px solid rgba(184, 134, 46, 0.12);
    background: var(--gray-50);
}
.article-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px 6px 4px 0;
    background: #fff;
    border: 1px solid rgba(184, 134, 46, 0.18);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}
.article-tags .tag:hover {
    background: var(--grad-gold);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -4px rgba(184, 134, 46, 0.4);
}

/* ============================================================
   LEGAL PAGES — typography for /podminky-pouzivani, /ochrana-osobnich-udaju, /cookies
   ============================================================ */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--gray-800);
}
.legal-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold-300);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 24px 0 10px;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol { margin: 0 0 18px; padding-left: 26px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a {
    color: var(--gold-600);
    text-decoration: underline;
    text-decoration-color: rgba(184, 134, 46, 0.4);
    text-underline-offset: 3px;
    transition: color var(--t-fast) var(--ease-in-out);
}
.legal-content a:hover { color: var(--gold-700); text-decoration-color: var(--gold-600); }
.legal-content code {
    background: var(--gold-100);
    color: var(--gold-700);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.legal-content th, .legal-content td { padding: 10px 12px; border: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.legal-content th { background: var(--gold-100); color: var(--gold-700); font-weight: 700; }
.legal-content em { color: var(--gray-500); font-style: italic; }
@media (max-width: 768px) {
    .legal-content { padding: 24px 16px 48px; font-size: 15px; }
    .legal-content h2 { font-size: 1.35rem; }
    .legal-content table { font-size: 0.85rem; }
    .legal-content th, .legal-content td { padding: 8px; }
}

/* ============================================================
   SCROLL-REVEAL ANIMACE
   Přidá se třída .reveal na elementy v JS, .is-visible v IntersectionObserver
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out-expo),
                transform 700ms var(--ease-out-expo);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger pro dětské elementy v gridu */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ease-out-expo),
                transform 600ms var(--ease-out-expo);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
    .article-detail { border-radius: var(--radius-lg); }
    .article-header { padding: 32px 24px 24px; }
    .article-featured-image { padding: 20px 24px 0; }
    .article-detail .article-content { padding: 28px 24px 32px; font-size: 16.5px; }
    .article-tags { padding: 20px 24px; }
    .section-title { margin-bottom: 32px; }
}
