/* === Design System: Gemini 2030 Glassmorphism === */
/* Author: Gemini Code Assistant */
/* Version: 1.5 (Affiliate & Final Polish) */
/* Date: 2025-09-15 */

:root {
    /* Colors */
    --bg-main: #0D0C1D; /* Deep Indigo */
    --bg-glass: rgba(22, 21, 45, 0.55); /* Semi-transparent glass */
    --bg-glass-light: rgba(36, 34, 70, 0.65);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-hover: rgba(255, 255, 255, 0.25);
    --text-primary: #F0F2F5; /* Light, soft white */
    --text-secondary: #A8B2CD; /* Muted lavender gray */
    --text-dark: #0D0C1D;
    --accent-gelato: #8b5cf6; /* Vibrant Purple */
    --accent-gold: #ffd700; /* Gold for highlights */
    --accent-green: #22c55e;
    --accent-cyan: #06b6d4;
    --accent-lime: #84cc16;
    --accent-orange: #f59e0b;
    --accent-teal: #10b981;
    --accent-red: #ef4444;

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Effects */
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 12px;
    --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
    --shadow-card-hover: 0 24px 50px -12px rgba(0, 0, 0, 0.6);
    --backdrop-blur: blur(20px);
    --transition-main: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --gradient-gelato: linear-gradient(135deg, var(--accent-gelato) 0%, #ec4899 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, #f39c12 100%);
}

/* === Global Styles & Resets === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 700; }

/* === Reusable Card Component === */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    transition: var(--transition-main);
    position: relative;
    overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-glass-hover);
}

/* === Hero Section Tuning === */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}
.hero-content .eyebrow {
    display: inline-block;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    color: var(--accent-gelato);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -2px;
}
.hero-content .highlight {
    background: var(--gradient-gelato);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-content .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin: 0 auto 2.5rem auto;
    max-width: 700px;
}
.mission-briefing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px;
    margin-top: 4rem;
}
.stat-card {
    background: var(--bg-glass-light);
    border-radius: var(--radius-m);
    padding: 24px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition-main);
}
.stat-card:hover {
    transform: scale(1.05);
    background: var(--bg-glass);
    border-color: var(--border-glass-hover);
}
.stat-card .stat-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--icon-color, var(--accent-gelato));
    display: inline-block;
}
.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.stat-card .label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.hero-figure { display: none; }
.alt-link-box-wrapper { text-align: center; margin: 3rem 0; }
.alt-link-box {
    display: inline-block;
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: var(--radius-m);
    border: 1px solid var(--border-glass);
}
.alt-link-box a {
    color: var(--accent-gelato);
    text-decoration: none;
    font-weight: 600;
}

/* === Sticky Nav Redesign === */
.saga-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(13, 12, 29, 0.7);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.saga-nav-content { display: flex; justify-content: center; align-items: center; }
.saga-nav-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; justify-content: center;}
.saga-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.25s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}
.saga-nav-links a.active, .saga-nav-links a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent-gelato);
}
.progress-bar-container { display: none; }

/* === Main Content Sections === */
main > .container > section, main > section {
    margin-bottom: 5rem;
}

/* === Comic Saga Redesign === */
.comic-chapter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.comic-chapter.is-visible { opacity: 1; transform: translateY(0); }
.comic-chapter:nth-child(even) .comic-image { order: 2; }
.comic-image {
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-main);
    aspect-ratio: 800 / 533;
}
.comic-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-card-hover);
}
.comic-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comic-text .chapter-label {
    display: inline-block;
    background: var(--gradient-gelato);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}
.comic-text h2 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 800; }
.comic-text .lektion {
    background: var(--bg-glass-light);
    border-left: 4px solid var(--accent-gelato);
    padding: 1.5rem;
    border-radius: 0 var(--radius-m) var(--radius-m) 0;
    font-size: 1.05rem;
    font-style: italic;
}

/* === Dossier, Reviews, UGC (Shared Styles) === */
.dossier-header { text-align: center; margin-bottom: 4rem; }
.dossier-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.dossier-sub { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: auto; }

/* === Handbook / Dossier === */
.handbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.handbook-card {
    padding: 2rem;
}
.handbook-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.handbook-card ul { list-style: none; padding-left: 0; margin: 1rem 0; }
.handbook-card li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.handbook-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
}
.handbook-icon-bg {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-s);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--icon-color, var(--accent-gelato));
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px -8px var(--icon-color, var(--accent-gelato));
}
.terp-chips { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.terp-chip {
    background-color: rgba(139, 92, 246, 0.15);
    color: var(--accent-gelato);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
}
.faq-list details {
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-m);
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-main);
}
.faq-list details:hover { background: var(--bg-glass); }
.faq-list summary {
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.2s ease-in-out;
    color: var(--accent-gelato);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

/* === Reviews & AI Summary (TUNED) === */
.reviews-lite.glass-card {
    padding: 2.5rem;
}
.reviews-header {
    text-align: center;
    margin-bottom: 2rem;
}
.reviews-header h3 { font-size: 2rem; }
.reviews-header p { font-size: 0.95rem; max-width: 500px; margin: 0 auto; }

.reviews-content-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 3rem;
}
.overall-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.rating-donut {
    width: 180px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rating-donut svg {
    position: absolute;
    top: 0; left: 0;
    transform: rotate(-90deg);
}
.rating-donut-track, .rating-donut-fill {
    fill: none;
    stroke-width: 18;
}
.rating-donut-track { stroke: var(--bg-glass-light); }
.rating-donut-fill { stroke: url(#donut-gradient); stroke-linecap: round; transition: stroke-dashoffset 1s ease-out; }
.donut-center-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}
.donut-center-text span { font-size: 1.2rem; color: var(--text-secondary); }
.overall-meta { text-align: center; font-weight: 600; font-size: 0.9rem; }

.rating-breakdown-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.rating-bar { display: grid; grid-template-columns: 50px 1fr 40px; align-items: center; gap: 1rem; font-size: 0.9rem; }
.bar-label { font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; }
.bar-label .fa-star { color: var(--accent-gold); }
.bar-bg { width: 100%; height: 10px; background: var(--bg-glass-light); border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gradient-gold); border-radius: 10px; transform: scaleX(0); transform-origin: left; transition: transform 1s ease-out; }
.bar-perc { font-weight: 700; color: var(--text-primary); }

.ai-summary-card {
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-l);
    padding: 2rem;
    margin-top: 3rem;
}
.ai-summary-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}
.ai-summary-card h4 i { color: var(--accent-cyan); }
.ai-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.ai-highlight-item strong {
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.ai-highlight-item strong i { color: var(--icon-color); }

/* === UGC Gallery === */
.user-generated-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.ugc-card {
    aspect-ratio: 9/12;
    border-radius: var(--radius-m);
    overflow: hidden;
    position: relative;
    transition: var(--transition-main);
    box-shadow: var(--shadow-card);
}
.ugc-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-card-hover); }
.ugc-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); z-index: 1; }
.ugc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.ugc-card:hover img { transform: scale(1.1); }
.ugc-meta { position: relative; z-index: 2; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; color: var(--text-primary); }
.badge { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); border-radius: 99px; padding: .4rem .7rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-primary); text-decoration: none; }
.badge-platform { background: var(--gradient-gelato); border: none; }
.ugc-source-link:hover { background: rgba(255,255,255,0.2); }

/* === Expert Vault Integration === */
.expert-vault {
    padding: 120px 0;
    background: var(--bg-main);
    position: relative;
    overflow: hidden;
}
.expert-vault::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 40%), radial-gradient(circle at 80% 70%, var(--accent-gold), transparent 30%); animation: pulse-glow 10s infinite alternate; opacity: 0.2; }
@keyframes pulse-glow { from { transform: scale(1); } to { transform: scale(1.5); } }
.vault-header { text-align: center; margin-bottom: 4rem; position: relative; z-index: 2; }
.vault-title { font-size: 3.5rem; font-weight: 800; background: var(--gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 1rem; animation: vaultGlow 4s ease-in-out infinite alternate; }
@keyframes vaultGlow { from { text-shadow: 0 0 20px rgba(255, 215, 0, 0.2); } to { text-shadow: 0 0 40px rgba(255, 215, 0, 0.5); } }
.vault-subtitle { color: var(--text-secondary); font-size: 1.2rem; }
.vault-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; position: relative; z-index: 2; }
.vault-card { padding: 30px; cursor: default; }
.vault-card:hover { border-color: var(--accent-gold); }
.vault-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.vault-card-title { font-size: 1.5rem; margin-bottom: 10px; }
.vault-preview { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; min-height: 40px; }
.vault-content { opacity: 1; transition: none; }
.genetics-card .vault-icon { color: var(--accent-green); }
.medical-card .vault-icon { color: var(--accent-cyan); }
.growing-card .vault-icon { color: var(--accent-lime); }
.terpene-card .vault-icon { color: var(--accent-orange); }
.market-card .vault-icon { color: var(--accent-teal); }
.lab-card .vault-icon { color: var(--accent-gelato); }
.terpene-bar { background: rgba(255,255,255,0.1); height: 8px; border-radius: 4px; overflow: hidden; }
.terpene-fill { background: var(--gradient-gold); height: 100%; }

/* Lab Card QR Code */
.qr-code-placeholder { background: #fff; border-radius: var(--radius-s); padding: 10px; width: 120px; height: 120px; margin: 1rem auto 0; display: flex; align-items: center; justify-content: center; }
.qr-code-placeholder i { color: var(--text-dark); font-size: 4rem; }
.qr-code-label { font-size: 0.8rem; text-align: center; margin-top: 0.5rem; color: var(--text-secondary); }

/* === Affiliate Button === */
.affiliate-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--gradient-gelato);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-m);
    text-decoration: none;
    font-weight: 700;
    margin-top: 1.5rem;
    transition: var(--transition-main);
    box-shadow: 0 8px 20px -8px var(--accent-gelato);
}
.affiliate-button:hover { transform: translateY(-4px); box-shadow: 0 12px 25px -8px var(--accent-gelato); filter: brightness(1.1); }
.affiliate-button .vendor { font-size: 0.8rem; opacity: 0.8; }

/* === Styles for Easy Mode === */
.quick-fact-card {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}
.quick-fact-card:nth-child(even) .qf-image { order: 2; }
.qf-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: var(--radius-m);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
}
.qf-content .badge {
    background: var(--gradient-gelato);
    color: #fff;
    border: none;
    font-size: .8rem;
    margin-bottom: 1rem;
}
.qf-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.qf-content .plain { font-size: 1rem; color: var(--text-secondary); }
.qf-content .list { list-style: none; padding: 0; margin-top: 1.5rem; }
.qf-content .list li {
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    padding: .8rem 1rem;
    border-radius: var(--radius-s);
    font-weight: 600;
    display: flex;
    gap: .7rem;
    align-items: center;
    margin-bottom: .6rem;
}
.qf-content .list i { color: var(--accent-gelato); }
.final-cta-card {
    padding: 3rem;
    text-align: center;
}
.final-cta-card h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.final-cta-card .cta-link {
    display: inline-block;
    background: var(--gradient-gelato);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 10px 30px -10px var(--accent-gelato);
    transition: var(--transition-main);
}
.final-cta-card .cta-link:hover { transform: translateY(-4px); box-shadow: 0 15px 30px -10px var(--accent-gelato); }

/* === Main Header & Footer Styling (v2) === */
.main-header {
    background: rgba(13, 12, 29, 0.7);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 2000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}
.nav-desktop { display: none; } /* Hidden on mobile by default */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.25s ease;
}
.header-action-btn:hover {
    color: var(--text-primary);
}
#burger { display: flex; } /* Visible on mobile by default */

/* Global Mode Toggle */
.global-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass-light);
    padding: 0.5rem;
    border-radius: 99px;
}
.gmt-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0 0.5rem;
}
.gmt-label.active {
    color: var(--text-primary);
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-glass);
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--accent-gelato);
}
input:checked + .slider:before {
    transform: translateX(18px);
}
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Mobile Nav */
#navBackdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2999;
}
#navBackdrop.active { display: block; }
.nav-mobile {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--bg-main);
    z-index: 3000;
    padding: 4rem 2rem;
    transition: right 0.3s ease;
}
.nav-mobile.active { right: 0; }
.nav-mobile ul { list-style: none; }
.nav-mobile li { margin-bottom: 2rem; }
.nav-mobile a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 12, 29, 0.9);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    z-index: 4000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
}
.search-overlay.active { display: flex; }
.search-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
}
.search-input-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}
#searchInput {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 2px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 2rem;
    padding: 1rem 0;
    outline: none;
}
.search-results-container {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}
.search-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-m);
    margin-bottom: 1rem;
    text-decoration: none;
}
.search-result:hover {
    border-color: var(--border-glass-hover);
}
.search-result-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-s);
}
.search-result-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.search-result-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.search-result-badge {
    margin-left: auto;
    background: var(--accent-gelato);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
}


.main-footer {
    background: var(--bg-glass);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-top: 1px solid var(--border-glass);
    padding: 4rem 0;
    margin-top: 5rem;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.footer-column p, .footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column a:hover { color: var(--text-primary); }
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.9rem;
}

/* === Responsive Adjustments & Mobile Nav FAB === */
.saga-fab {
    display: none; /* Hidden by default */
}
.saga-overlay {
    display: none; /* Hidden by default */
}

@media (max-width: 900px) {
    .comic-chapter { grid-template-columns: 1fr; gap: 2rem; }
    .comic-chapter:nth-child(even) .comic-image { order: 1; }
}

@media (min-width: 769px) {
    .nav-desktop { display: flex; }
    #burger { display: none; }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }
    .nav-desktop { display: none; }
    #burger { display: flex; }

    .reviews-content-grid { grid-template-columns: 1fr; }
    .ai-highlights-grid { grid-template-columns: 1fr; }
    .quick-fact-card { grid-template-columns: 1fr; }
    .quick-fact-card:nth-child(even) .qf-image { order: 1; }

    /* Hide desktop saga nav */
    .saga-nav {
        display: none;
    }

    /* Floating Action Button for Chapters */
    .saga-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 60px;
        height: 60px;
        background: var(--gradient-gelato);
        color: #fff;
        border-radius: 50%;
        border: none;
        font-size: 1.5rem;
        box-shadow: 0 10px 30px -10px var(--accent-gelato);
        z-index: 1500;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    .saga-fab:hover {
        transform: scale(1.1);
    }

    /* Chapter Overlay */
    .saga-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(13, 12, 29, 0.85);
        backdrop-filter: var(--backdrop-blur);
        -webkit-backdrop-filter: var(--backdrop-blur);
        z-index: 1600;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .saga-overlay.is-active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    .saga-overlay-links {
        list-style: none;
        text-align: center;
    }
    .saga-overlay-links li {
        margin: 1.5rem 0;
    }
    .saga-overlay-links a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.8rem;
        font-weight: 700;
    }
    .saga-overlay-close {
        position: absolute;
        top: 2rem;
        right: 2rem;
        background: none;
        border: none;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
    }
}
