/* ============================================
   MS INFO CHANNEL - Design System & Styles
   ============================================ */

/* CSS Variables - Design Tokens (Dark Mode Default) */
:root {
    /* Primary Colors */
    --color-primary: #1a4d3e;
    --color-primary-light: #2a6d5a;
    --color-primary-dark: #0f3329;

    /* Accent Colors */
    --color-gold: #d4af37;
    --color-gold-light: #e8c65a;
    --color-gold-dark: #b8942d;

    /* Neutral Colors */
    --color-brown: #8b4513;
    --color-bg: #f8f9fa;
    --color-bg-dark: #0a1a14;
    --color-text: #2c3e50;
    --color-text-light: #6b7c8f;
    --color-white: #ffffff;
    --color-link: #3498db;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(10, 26, 20, 0.95) 0%, rgba(26, 77, 62, 0.9) 100%);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* Light Mode Theme */
[data-theme="light"] {
    --color-bg-dark: #f5f5f5;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --gradient-hero: linear-gradient(180deg, rgba(26, 77, 62, 0.95) 0%, rgba(42, 109, 90, 0.9) 100%);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .nav-link {
    color: var(--color-primary-dark);
}

[data-theme="light"] .nav-link:hover {
    background: rgba(26, 77, 62, 0.1);
}

[data-theme="light"] .topic-card {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================
   Header & Navigation (v1.1 Fixed)
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 26, 20, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

/* Medical Disclaimer Banner */
.medical-disclaimer-banner {
    background: rgba(212, 175, 55, 0.1);
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.medical-disclaimer-content {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.medical-disclaimer-icon {
    font-size: 1.25rem;
}

.medical-disclaimer-text {
    font-size: 0.9rem;
}

.medical-disclaimer-title {
    color: var(--color-gold);
    font-weight: 700;
}

.medical-disclaimer-subtext {
    color: rgba(255, 255, 255, 0.85);
}

/* Logo Styles */
.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    border: none;
}

.logo-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text-inline {
    font-size: 1rem;
}

.logo-accent-inline {
    font-size: 0.85rem;
}

/* Affiliate Image Fixes */
.affiliate-item img {
    max-width: 100%;
    height: auto;
    border: 0;
}

/* Global Back Button */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-base);
    position: absolute;
    /* Absolute positioning */
    left: var(--spacing-lg);
    /* Fixed on left */
    z-index: 20;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    list-style: none;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px var(--spacing-xl) var(--spacing-xl);
        transition: var(--transition-base);
        box-shadow: var(--shadow-xl);
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }
}

.header.scrolled {
    background: rgba(10, 26, 20, 0.98);
    box-shadow: var(--shadow-lg);
}

/* Medical Disclaimer Banner */
.medical-disclaimer-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 215, 0, 0.1));
    border-bottom: 1px solid var(--color-gold);
    padding: 0.5rem 1rem;
    width: 100%;
    display: block;
}

/* Affiliate Banner Container */
.affiliate-banner {
    width: 100%;
    background: rgba(10, 26, 20, 0.95);
    padding: 12px var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    min-height: 80px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.affiliate-banner::-webkit-scrollbar {
    display: none;
}

/* App Beta Test Banner */
.app-beta-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(26, 77, 62, 0.3));
    border-bottom: 2px solid var(--color-gold);
    padding: 12px var(--spacing-lg);
    width: 100%;
}

.app-beta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.app-beta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-beta-badge {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

.app-beta-text {
    color: var(--color-white);
    font-size: 0.95rem;
}

.app-beta-text strong {
    color: var(--color-gold);
}

.app-beta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-beta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-base);
    min-height: 44px;
    text-decoration: none;
}

.app-beta-btn-outline {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.app-beta-btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.app-beta-btn-primary {
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.app-beta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

/* Mobile Responsive for App Beta Banner */
@media (max-width: 768px) {
    .app-beta-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .app-beta-left {
        flex-direction: column;
        gap: 8px;
    }

    .app-beta-buttons {
        width: 100%;
        justify-content: center;
    }

    .app-beta-btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
}

.affiliate-banner>* {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.affiliate-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 320px;
}

.affiliate-item a {
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-item a:hover {
    transform: translateY(-2px);
}

.affiliate-banner img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* AdSense specific responsive adjustments */
.affiliate-ad-container {
    width: 100%;
    max-width: 468px;
    min-height: 60px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;
    background: rgba(255, 255, 255, 0.02);
}

.affiliate-ad-container ins {
    width: 100% !important;
    max-width: 468px !important;
    min-width: 280px !important;
}

/* Responsive Logic */
@media (max-width: 1200px) {
    .affiliate-banner {
        gap: 15px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .affiliate-banner {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px 10px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        min-height: 60px;
    }

    .affiliate-banner::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .affiliate-item {
        min-width: 280px;
        /* Slightly smaller min-width for mobile */
        flex-shrink: 0;
    }

    .affiliate-ad-container {
        flex-shrink: 0;
        /* No scaling needed if we scroll */
        transform: none;
        margin: 0;
    }
}

@media (max-width: 480px) {

    /* Adjust specific banner sizes if needed */
    .affiliate-banner img {
        height: 40px;
        /* Smaller height for mobile */
        width: auto;
    }
}


.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the logo */
    position: relative;
    /* Anchor for absolute items */
    padding: var(--spacing-md) var(--spacing-lg);
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 10;
    /* Ensure logo is clickable */
    text-decoration: none;
    color: var(--color-text);
}

.logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Full logo with embedded text */
.logo-img.logo-full {
    height: 60px;
    width: auto;
    max-width: 200px;
    border-radius: 8px;
    border: none;
    box-shadow: none;
    object-fit: contain;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.logo:hover .logo-img.logo-full {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.logo-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-left: 5px;
}

.logo-text-inline {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-accent-inline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Header TOC Styles */
.header-toc {
    position: relative;
    z-index: 1003;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 4px;
}

.header-toc-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-gold);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-toc-trigger:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-gold);
}

.header-toc-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: rgba(10, 26, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-lg);
    padding: 15px;
    width: 260px;
    display: none;
    grid-template-columns: 1fr;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.header-toc-menu.active {
    display: grid;
}

.header-toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.header-toc-link:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold);
    padding-left: 15px;
}

/* Category Dividers */
.header-toc-divider {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-gold);
    padding: 10px 12px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 6px;
}

.header-toc-divider:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 4px;
}

/* Collapsible Submenu */
.header-toc-submenu {
    margin: 2px 0;
}

.header-toc-submenu-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
}

.header-toc-submenu-trigger:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold);
}

.header-toc-submenu-trigger .chevron {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.header-toc-submenu-content {
    display: none;
    padding-left: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.header-toc-submenu-content.active {
    display: block;
    max-height: 500px;
}

.header-toc-sublink {
    font-size: 0.8rem;
    padding: 6px 10px;
    opacity: 0.85;
}

.header-toc-sublink:hover {
    opacity: 1;
}

/* Scrollable menu */
.header-toc-menu {
    max-height: 70vh;
    overflow-y: auto;
}

.header-toc-menu::-webkit-scrollbar {
    width: 6px;
}

.header-toc-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.header-toc-menu::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 3px;
}

.header-toc-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

@media (max-width: 1100px) {
    .header-toc-trigger span {
        display: none;
        /* Hide text on smaller screens */
    }

    .header-toc-trigger {
        padding: 6px 8px;
    }
}

.logo-text {
    color: var(--color-white);
}

.logo-accent {
    color: var(--color-gold);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    /* Minimized gap to fit all items */
    list-style: none;
    flex-wrap: nowrap;
    /* Prevent wrapping but allow shrinking if needed */
}

.nav-link {
    display: block;
    padding: 0.4rem 0.4rem;
    /* Compact padding */
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    /* Smaller font to fit 14 items */
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
}

/* Mega Menu */
.has-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 600px;
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.mega-menu-section h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-menu-section a {
    display: block;
    padding: var(--spacing-sm) 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.mega-menu-section a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* App Link with Coming Soon Badge */
.nav-app {
    position: relative;
}

.nav-app::after {
    content: 'Soon';
    position: absolute;
    top: -8px;
    right: -20px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-sm);
    position: absolute;
    /* Absolute positioning */
    right: var(--spacing-lg);
    /* Fixed on right */
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 220px var(--spacing-lg) 150px;
    /* Increased bottom padding */
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 26, 20, 0.7) 0%,
            rgba(10, 26, 20, 0.5) 50%,
            rgba(10, 26, 20, 0.8) 100%);
}

.hero-deco {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(26, 77, 62, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(139, 69, 19, 0.2) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(212, 175, 55, 0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 40%, rgba(212, 175, 55, 0.2) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    animation: particles 20s linear infinite;
}

@keyframes particles {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

/* Hero Brand Text */
.hero-brand {
    margin: var(--spacing-lg) 0 var(--spacing-xl);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.1em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.6s ease forwards;
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Hero TOC */
.hero-toc {
    width: 100%;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    position: relative;
    z-index: 10;
}

.toc-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: none;
    /* Hidden as replaced by TOC */
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Topics Section
   ============================================ */
.topics {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg,
            var(--color-bg-dark) 0%,
            rgba(26, 77, 62, 0.3) 50%,
            var(--color-bg-dark) 100%);
    position: relative;
}

.topics::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(26, 77, 62, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.topics .section-header {
    position: relative;
    z-index: 1;
}

.topics .section-title {
    color: var(--color-white);
}

.topics .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.topics .topics-grid {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(26, 77, 62, 0.1);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

/* Topic Card */
.topic-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.topic-card-image {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.topic-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 0;
}

.topic-card[data-topic="cannabis"] .topic-card-image {
    background-color: #1a4d3e;
}

.topic-card[data-topic="psilocybin"] .topic-card-image {
    background-color: #4a1a4d;
}

.topic-card[data-topic="vitalpilze"] .topic-card-image {
    background-color: #8b4513;
}

.topic-card[data-topic="terpene"] .topic-card-image {
    background-color: #1a3d4d;
}

.topic-icon {
    font-size: 4rem;
    z-index: 1;
    transition: var(--transition-base);
}

.topic-card:hover .topic-icon {
    transform: scale(1.1);
}

.topic-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-base);
}

.topic-card:hover .topic-glow {
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.topic-card-content {
    padding: var(--spacing-xl);
}

.topic-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(26, 77, 62, 0.1);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.topic-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.topic-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.topic-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.topic-link:hover {
    gap: var(--spacing-md);
}

/* ============================================
   Podcast Section
   ============================================ */
.podcast-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.podcast-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.podcast-info .section-badge {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
}

.podcast-info .section-title {
    color: var(--color-white);
}

.podcast-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xl);
}

.podcast-features {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.podcast-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    font-size: 1.25rem;
}

/* Podcast Player Card */
.podcast-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.podcast-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.podcast-cover {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.podcast-cover-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
}

.podcast-playing-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
}

.podcast-playing-indicator span {
    width: 3px;
    height: 12px;
    background: var(--color-gold);
    border-radius: var(--radius-full);
    animation: wave 1s ease-in-out infinite;
}

.podcast-playing-indicator span:nth-child(2) {
    animation-delay: 0.1s;
}

.podcast-playing-indicator span:nth-child(3) {
    animation-delay: 0.2s;
}

.podcast-playing-indicator span:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes wave {

    0%,
    100% {
        height: 6px;
    }

    50% {
        height: 16px;
    }
}

.podcast-details {
    flex: 1;
}

.podcast-episode {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.podcast-details h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin: var(--spacing-sm) 0;
}

.podcast-details p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-sm);
}

.podcast-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.podcast-play-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.podcast-play-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   Disclaimer Section
   ============================================ */
.disclaimer-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
}

.disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-lg);
}

.disclaimer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.disclaimer-content h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #856404;
    margin-bottom: var(--spacing-sm);
}

.disclaimer-content p {
    font-size: 0.875rem;
    color: #856404;
    line-height: 1.6;
}

/* ============================================
   Newsletter Section
   ============================================ */
/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-primary);
}

.newsletter-section-dark {
    margin: var(--spacing-3xl) 0;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(26, 77, 62, 0.95), rgba(0, 0, 0, 0.9));
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gold);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section-memory {
    margin: 60px 0 0;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(6, 182, 212, 0.05));
    border-top: 1px solid rgba(8, 145, 178, 0.3);
    text-align: center;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.newsletter-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-md);
}

.newsletter-form-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.newsletter-input {
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: var(--color-gold);
}

.newsletter-checkbox-label {
    display: flex;
    gap: 10px;
    align-items: start;
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
}

.newsletter-submit-btn {
    padding: 12px;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.newsletter-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-success-msg {
    margin-top: var(--spacing-md);
    font-weight: 600;
    display: none;
    padding: 10px;
    border-radius: 8px;
}

/* ============================================
   Medical Banner
   ============================================ */
.medical-disclaimer-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 215, 0, 0.1));
    border-bottom: 1px solid var(--color-gold);
    padding: 0.75rem 2rem;
    width: 100%;
}

.medical-banner-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
}

.medical-icon {
    font-size: 1.25rem;
}

.medical-text {
    font-size: 0.9rem;
}

.medical-label {
    color: var(--color-gold);
    font-weight: 700;
}

.medical-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   Memory Trainer Page Specifics
   ============================================ */
.memory-hero-overlay {
    background: linear-gradient(to bottom, rgba(10, 26, 20, 0.7), rgba(10, 26, 20, 0.9));
    position: absolute;
    inset: 0;
    z-index: 1;
}

.memory-games-container {
    background: rgba(10, 26, 20, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

/* ============================================
   Sorten Page Filters
   ============================================ */
.filter-options-container {
    margin-top: var(--spacing-md);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.filter-header p {
    color: var(--color-gold);
    font-weight: 600;
    margin: 0;
}

.terpene-profile-btn {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid var(--color-gold);
    text-decoration: none;
    transition: all 0.2s;
}

.terpene-profile-btn:hover {
    background: rgba(212, 175, 55, 0.3);
}

.terpene-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.terpene-check-label {
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Game Card Gradients */
.game-card-image.memory-gradient {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.game-card-image.logic-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.game-card-image.puzzle-gradient {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.game-card-image.reaction-gradient {
    background: linear-gradient(135deg, #059669, #10b981);
}

.game-card-image.coin-gradient {
    background: linear-gradient(135deg, #eab308, #f59e0b);
}

.game-card-image.slider-gradient {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin: var(--spacing-md) 0 var(--spacing-lg);
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-links h5 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-lg);
    color: var(--color-gold);
}

.footer-links a {
    display: block;
    padding: var(--spacing-sm) 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .podcast-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: rgba(10, 20, 15, 0.98);
        padding: 100px var(--spacing-xl) var(--spacing-xl);
        transform: translateX(-100%);
        transition: var(--transition-base);
        z-index: 9999;
        overflow-y: auto;
        gap: var(--spacing-md);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: var(--spacing-md) var(--spacing-lg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .hamburger {
        display: flex;
        z-index: 10000;
    }

    .mega-menu {
        display: block;
        position: static;
        transform: none;
        min-width: auto;
        padding: var(--spacing-md);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-lg);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
    }

    .has-dropdown:hover .mega-menu {
        transform: none;
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .mega-menu-section h4 {
        color: var(--color-gold);
        margin-bottom: var(--spacing-sm);
    }

    .mega-menu-section a {
        color: rgba(255, 255, 255, 0.85);
    }

    .mega-menu-section a:hover {
        color: var(--color-white);
        transform: none;
    }

    /* Fix: Mehr Platz für Header mit Banner auf mobilen Geräten */
    .hero {
        padding-top: 340px;
        min-height: 100vh;
    }

    .hero-stats {
        gap: var(--spacing-lg);
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .podcast-card {
        flex-direction: column;
        text-align: center;
    }

    .disclaimer-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Theme Toggle Button
   ============================================ */
.theme-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-base);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 26, 20, 0.98);
    border-top: 1px solid var(--color-gold);
    padding: var(--spacing-lg) var(--spacing-xl);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 600px;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: var(--color-gold);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.cookie-accept {
    background: var(--gradient-gold);
    color: var(--color-primary-dark);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.cookie-accept:hover {
    transform: scale(1.05);
}

.cookie-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.cookie-decline:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--color-white);
}

/* ============================================
   Search Box
   ============================================ */
.search-container {
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: var(--spacing-xs) var(--spacing-md);
    transition: var(--transition-base);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-gold);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: var(--spacing-xs);
    width: 150px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xs);
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    max-height: 400px;
    overflow-y: auto;
    margin-top: var(--spacing-sm);
    display: none;
    z-index: 1001;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item a {
    color: var(--color-white);
    display: block;
}

.search-result-item .result-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.search-result-item .result-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ============================================
   Comments Section
   ============================================ */
#comments-section {
    margin-top: var(--spacing-3xl);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    background: rgba(10, 26, 20, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    /* Fixed height for consistency */
    position: relative;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1002;
    /* Ensure logo is above other elements */
    position: relative;
    background: transparent;
    /* Remove potential background overlap */
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.comments-header h3 {
    color: var(--color-white);
    margin: 0;
}

.user-info {
    color: var(--color-gold);
    font-size: 0.875rem;
}

.comment-form {
    margin-bottom: var(--spacing-xl);
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-family: var(--font-body);
    resize: vertical;
    margin-bottom: var(--spacing-md);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.comments-login-prompt {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.comments-login-prompt p {
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
}

.comments-login-prompt button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.comments-login-prompt button img {
    width: 18px;
    height: 18px;
}

.comment-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-avatar span {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.comment-header strong {
    color: var(--color-white);
}

.comment-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.comment-content p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.no-comments,
.error {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: var(--spacing-lg);
}

/* ============================================
   Page Hero & Video Header Styles
   ============================================ */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 72px;
    /* Header height offset */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 26, 20, 0.85) 0%, rgba(26, 77, 62, 0.75) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.page-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.page-intro {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.6;
}

.page-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.page-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .page-hero {
        height: 50vh;
        min-height: 350px;
    }

    .page-hero h1 {
        font-size: 2rem !important;
    }
}

/* DoktorABC Fallback Banner (CSS Only) */
.doktorabc-fallback {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.doktorabc-fallback:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.doktorabc-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #2e7d32;
}

.doktorabc-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #002D72;
    /* Dark Blue */
    margin-bottom: 2px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.doktorabc-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #2e7d32;
    /* Medical Green */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doktorabc-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
    font-weight: 600;
    border: 1px solid #a5d6a7;
}

/* ============================================
   Header TOC Styles
   ============================================ */
.header-toc {
    position: relative;
    margin-left: 15px;
    display: flex;
    align-items: center;
    z-index: 1002;
}

.header-toc-trigger {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-gold);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.header-toc-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-gold);
}

.header-toc-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(10, 26, 20, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    padding: 10px;
    min-width: 220px;
    display: none;
    box-shadow: var(--shadow-xl);
    z-index: 1003;
}

.header-toc-menu.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.header-toc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.header-toc-link:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold);
}

/* Ensure Logo and TOC don't overlap */
.nav .logo {
    margin-right: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-toc-trigger span {
        display: none;
        /* Hide text on mobile, keep icon */
    }

    .header-toc-trigger {
        padding: 6px;
    }
}