/* Extracted from index.html — 2026-03-05 */

/* Video Hero Section */
        .video-hero {
            position: relative;
            height: 100vh;
            min-height: 600px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .video-bg {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translate(-50%, -50%);
            z-index: 0;
        }
        
        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
            z-index: 1;
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
            color: white;
            text-align: center;
            padding: 40px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .hero-content h1 {
            font-family: var(--font-header);
            font-size: 5rem;
            margin-bottom: 20px;
            text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
            animation: fadeInDown 1s ease-out;
        }
        
        .hero-tagline {
            font-size: 1.8rem;
            font-style: italic;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            animation: fadeInUp 1s ease-out 0.3s both;
        }
        
        .hero-description {
            font-size: 1.2rem;
            max-width: 900px;
            margin: 0 auto 40px;
            line-height: 1.8;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
            animation: fadeInUp 1s ease-out 0.6s both;
        }
        
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .cta-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
            animation: fadeInUp 1s ease-out 0.9s both;
        }
        
        .cta-button {
            padding: 18px 40px;
            font-size: 1.2rem;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }
        
        .cta-primary {
            background: var(--accent-arcane);
            color: white;
        }
        
        .cta-primary:hover {
            background: #7d3c98;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
        }
        
        .cta-secondary {
            background: rgba(255,255,255,0.15);
            color: white;
            border: 2px solid white;
            backdrop-filter: blur(10px);
        }
        
        .cta-secondary:hover {
            background: rgba(255,255,255,0.25);
            transform: translateY(-3px);
        }
        
        .scroll-indicator {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
            animation: bounce 2s infinite;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateX(-50%) translateY(0);
            }
            40% {
                transform: translateX(-50%) translateY(-10px);
            }
            60% {
                transform: translateX(-50%) translateY(-5px);
            }
        }
        
        .scroll-indicator i {
            font-size: 2rem;
            color: white;
            opacity: 0.7;
        }
        
        /* Stats Banner */
        .stats-banner {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
            color: white;
            padding: 60px 0;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            text-align: center;
        }
        
        .stat-item {
            padding: 20px;
        }
        
        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            color: var(--accent-arcane);
            margin-bottom: 10px;
        }
        
        .stat-label {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        /* Featured Regions Section */
        .featured-regions {
            padding: 80px 0;
            background: var(--background-light);
            position: relative;
            z-index: 5;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }
        
        .section-header h2 {
            font-family: var(--font-header);
            font-size: 3rem;
            color: var(--primary-dark);
            margin-bottom: 15px;
        }
        
        .section-header p {
            font-size: 1.2rem;
            /* Contrast fix 2026-07-05: --text-muted (#95a5a6) on --background-light (#ecf0f1)
               was 2.49:1 in dark theme. #4a5568 gives ~7.4:1 (dark) and ~8.3:1 (light). */
            color: #4a5568;
            max-width: 800px;
            margin: 0 auto;
        }

        /* Placeholder image treatment (2026-07-05) — used for cards awaiting Midjourney renders */
        .card-img-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            aspect-ratio: 3 / 4;
            background: linear-gradient(160deg, #1a1a1a, #2b2317);
            border-bottom: 2px solid #f5c842;
            color: #f5c842;
            overflow: hidden;
        }
        .card-img-placeholder span {
            font-size: 5rem;
            line-height: 1;
            text-shadow: 0 2px 8px rgba(0,0,0,0.6);
        }
        /* When used as region-card image (which is 100% x 100% of a 400px-tall card) */
        .region-card-img.card-img-placeholder,
        .card-img-placeholder.region-card-img {
            aspect-ratio: auto;
            height: 100%;
        }
        /* When used as square threat card image (auto-fit min 300px) */
        .character-card > .card-img-placeholder {
            aspect-ratio: 1 / 1;
        }
        /* Character-card (hero portrait) placeholder — sits above .character-info */
        .character-card .card-img-placeholder {
            aspect-ratio: 3 / 4;
        }
        
        .regions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .region-card {
            position: relative;
            height: 400px;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }
        
        .region-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.2);
        }
        
        .region-card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .region-card-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
            padding: 30px;
            color: white;
        }
        
        .region-card h3 {
            font-size: 1.8rem;
            margin-bottom: 10px;
        }

        /* The overlay sits on an image behind a black gradient in EVERY theme, so
           its heading must be cream regardless of theme. Without this the global
           h1-h6 rule (color: var(--primary-dark), #1a252f) wins over the overlay's
           inherited white and the names go dark-on-dark. Light theme already forces
           the same cream via light-theme.css !important. */
        .region-card-overlay h3 {
            color: #f8eed8;
        }
        
        .region-card p {
            margin-bottom: 15px;
            opacity: 0.9;
        }
        
        .region-badge {
            display: inline-block;
            background: var(--accent-arcane);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        /* Visual Showcase with parallax */
        .visual-showcase {
            position: relative;
            padding: 100px 0;
            margin-bottom: 60px;
            background-attachment: fixed;
            background-size: cover;
            background-position: center;
            /* Path fix 2026-07-18: this rule moved from index.html into css/
               in the 2026-03-05 extraction, which silently broke the relative
               image path (css/images/... doesn't exist). */
            background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/Classes assembled.png');
            background-color: #14181f; /* stays dark while the image loads / if it fails */
            overflow: hidden;
        }
        
        .showcase-content {
            max-width: 1000px;
            margin: 0 auto;
            text-align: center;
            color: white;
        }
        
        .showcase-content h2 {
            font-size: 3.5rem;
            margin-bottom: 30px;
            text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
        }
        
        .showcase-content p {
            font-size: 1.3rem;
            line-height: 1.8;
            margin-bottom: 40px;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
        }
        
        /* Character Showcase */
        .character-showcase {
            padding: 80px 0;
            margin-bottom: 0;
            position: relative;
            z-index: 5;
        }
        
        .character-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .character-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        
        .character-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
        }
        
        .character-card img {
            width: 100%;
            height: 300px;
            object-fit: cover;
        }
        
        .character-info {
            padding: 20px;
        }
        
        .character-info h3 {
            color: var(--primary-dark);
            margin-bottom: 10px;
        }
        
        .character-info p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }
        
        /* CTA Section */
        .final-cta {
            background: linear-gradient(135deg, var(--accent-arcane), #7d3c98);
            color: white;
            padding: 80px 0;
            text-align: center;
            position: relative;
            z-index: 5;
            margin-bottom: 0;
        }
        
        .final-cta h2 {
            font-size: 3rem;
            margin-bottom: 20px;
        }
        
        .final-cta p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        @media (max-width: 768px) {
            .hero-content h1 {
                font-size: 3rem;
            }
            .hero-tagline {
                font-size: 1.3rem;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .regions-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Section Dividers */
        .section-divider {
            text-align: center;
            margin: 40px auto;
            max-width: 1000px;
            width: 100%;
        }
        .section-divider img {
            width: 100%;
            height: 60px;
            object-fit: cover;
            opacity: 0.8;
        }

        /* Auth button + user dropdown styles moved to navigation.css
           (site-wide) — 20260705 */

        /* Make nav items flex to accommodate auth button */
        .main-nav ul {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        /* Pulse animation for hero auth button */
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 8px 28px rgba(138, 43, 226, 0.7);
            }
        }

        /* Alternating section background (was inline `background: white`
           on the Threats section — moved here 2026-07-18 so it can theme) */
        .featured-regions--alt {
            background: var(--background-white);
        }

/* ============================================================
   DARK THEME — HOME PAGE (2026-07-18)
   The site defaults to dark (html[data-theme="dark"], set pre-paint
   by theme-toggle.js), but this page's base styles above are light:
   body #ecf0f1, section backgrounds #ecf0f1/white, white character
   cards, near-black headings. These overrides give the home page a
   real dark mode using the site's existing dark tokens
   (#1a202c / #2d3748 surfaces, #e2e8f0 / #a0aec0 text, #4a5568
   borders — same palette as the class/region pages).
   Contrast: #e2e8f0 on #2d3748 ≈ 10.9:1, #a0aec0 on #2d3748 ≈ 5.5:1,
   #a0aec0 on #1a202c ≈ 7.1:1 — all pass WCAG AA.
   ============================================================ */

html[data-theme="dark"] body {
    background-color: #1a202c;
    color: #e2e8f0;
}

/* Content sections that were light grey / white */
html[data-theme="dark"] .featured-regions {
    background: #1a202c;
}

html[data-theme="dark"] .featured-regions--alt {
    background: #222b3c; /* slightly lifted so alternating sections still read */
}

/* Section headings were near-black (--primary-dark) */
html[data-theme="dark"] .section-header h2 {
    color: #e2e8f0;
}

html[data-theme="dark"] .section-header p {
    color: #a0aec0;
}

/* Character / threat cards were solid white */
html[data-theme="dark"] .character-card {
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid #4a5568;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .character-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(187, 107, 217, 0.5);
}

html[data-theme="dark"] .character-info h3 {
    color: #e2e8f0;
}

html[data-theme="dark"] .character-info p {
    color: #a0aec0;
}

/* Region cards: image-filled, but give the frame a dark surface so
   any letterboxing/loading state doesn't flash white */
html[data-theme="dark"] .region-card {
    background: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .region-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* Section divider art: soften slightly on dark so the strips don't glare */
html[data-theme="dark"] .section-divider img {
    opacity: 0.65;
}
