/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Haplogroup Explorer Index Page - Premium Dark Cinematic Theme
 * Inspired by ProductAncestryReport design with golden accents
 */

/* ========================================
   Google Fonts Import
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================
   CSS Custom Properties - Golden Theme
   ======================================== */
:root {
    /* Warm Golden Palette */
    --hgx-gold: #C4956A;
    --hgx-gold-light: #D4B896;
    --hgx-gold-dark: #8B6D4F;
    --hgx-sand: #A89F91;
    --hgx-bone: #E8E4DC;
    --hgx-ivory: #F5F3EF;
    
    /* Dark Backgrounds */
    --hgx-obsidian: #0d1117;
    --hgx-obsidian-light: #161b22;
    --hgx-obsidian-lighter: #1c2128;
    
    /* Text Colors */
    --hgx-text-primary: rgba(255, 255, 255, 0.9);
    --hgx-text-secondary: rgba(255, 255, 255, 0.7);
    --hgx-text-muted: rgba(255, 255, 255, 0.5);
    
    /* Gradients */
    --hgx-gold-gradient: linear-gradient(135deg, #8B6D4F 0%, #C4956A 100%);
    --hgx-gold-gradient-light: linear-gradient(135deg, #C4956A 0%, #D4B896 100%);
    --hgx-hero-gradient: linear-gradient(180deg, var(--hgx-ivory), var(--hgx-gold-light));
}

/* ========================================
   Base & Reset
   ======================================== */
body:has(.hgx-main) {
    background-color: var(--hgx-obsidian) !important;
    background-image: none !important;
}

body:has(.hgx-main) #wrapper,
body:has(.hgx-main) #content-wrapper,
body:has(.hgx-main) #content-fluid {
    background: transparent !important;
}

body:has(.hgx-main) footer {
    background-color: #0a0d12 !important;
}

.hgx-main {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--hgx-text-primary);
    line-height: 1.7;
    background-color: var(--hgx-obsidian);
}

/* ========================================
   Scroll Progress Indicator
   ======================================== */
.hgx-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--hgx-gold-gradient);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========================================
   Page Navigation Dots
   ======================================== */
.hgx-page-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1200px) {
    .hgx-page-nav {
        display: flex;
    }
}

.hgx-page-nav a {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(196, 149, 106, 0.2);
    border: 1px solid rgba(196, 149, 106, 0.3);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.hgx-page-nav a:hover,
.hgx-page-nav a.active {
    background: var(--hgx-gold);
    border-color: var(--hgx-gold);
    transform: scale(1.3);
}

.hgx-page-nav a::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 17, 23, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.8125rem;
    border: 1px solid rgba(196, 149, 106, 0.3);
}

.hgx-page-nav a:hover::after {
    opacity: 1;
}

/* ========================================
   Back to Top Button
   ======================================== */
.hgx-back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(196, 149, 106, 0.15);
    border: 1px solid rgba(196, 149, 106, 0.3);
    color: var(--hgx-gold);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hgx-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.hgx-back-to-top:hover {
    background: var(--hgx-gold);
    color: var(--hgx-obsidian);
}

/* ========================================
   HERO SECTION - Abstract Gradient
   ======================================== */
.hgx-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: var(--hgx-obsidian);
}

.hgx-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(196, 149, 106, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(212, 184, 150, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--hgx-obsidian) 0%, #0a0d12 100%);
    z-index: 1;
}

.hgx-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(196, 149, 106, 0.3) 0%, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(212, 184, 150, 0.3) 0%, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 1px),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 1px);
    background-size: 100% 100%;
    animation: hgx-particleFloat 20s ease-in-out infinite;
}

@keyframes hgx-particleFloat {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-10px); }
}

.hgx-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: white;
}

.hgx-chapter-label {
    display: inline-block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--hgx-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    animation: hgx-fadeInDown 0.8s ease-out;
}

.hgx-hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 24px;
    background: var(--hgx-hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hgx-fadeInUp 0.8s ease-out 0.2s both;
}

.hgx-hero-subtitle {
    font-size: 1.125rem;
    color: var(--hgx-text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: hgx-fadeInUp 0.8s ease-out 0.4s both;
}

/* ========================================
   Statistics Pills
   ======================================== */
.hgx-stats-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
    animation: hgx-fadeInUp 0.8s ease-out 0.6s both;
}

.hgx-stat-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 16px 32px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 160px;
}

.hgx-stat-pill:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 149, 106, 0.3);
    box-shadow: 0 8px 24px rgba(196, 149, 106, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.hgx-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--hgx-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.hgx-stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--hgx-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Search Bar
   ======================================== */
.hgx-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    animation: hgx-fadeInUp 0.8s ease-out 0.8s both;
}

.hgx-search-container {
    position: relative;
}

.hgx-search-container .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hgx-search-container .form-control {
    border-radius: 0 50px 50px 0;
    padding: 15px 20px;
    font-size: 1.1rem;
    background: transparent;
    border: none;
    color: var(--hgx-text-primary);
}

.hgx-search-container .form-control::placeholder {
    color: var(--hgx-text-muted);
}

.hgx-search-container .form-control:focus {
    background: transparent;
    color: var(--hgx-text-primary);
    box-shadow: none;
}

.hgx-search-container .input-group-text {
    border-radius: 50px 0 0 50px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--hgx-gold);
}

.hgx-typeahead-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(196, 149, 106, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.hgx-typeahead-results.active {
    display: block;
}

.hgx-typeahead-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.hgx-typeahead-item:hover,
.hgx-typeahead-item.focused {
    background: rgba(196, 149, 106, 0.1);
    color: var(--hgx-gold);
}

.hgx-typeahead-item:last-child {
    border-bottom: none;
}

.hgx-typeahead-code {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--hgx-gold);
    margin-right: 12px;
}

.hgx-typeahead-name {
    flex: 1;
    color: var(--hgx-text-secondary);
}

.hgx-typeahead-type {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    background: rgba(196, 149, 106, 0.2);
    color: var(--hgx-gold);
    border-radius: 4px;
    margin-left: auto;
}

/* ========================================
   Search Type Filter Pills
   ======================================== */
.hgx-search-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hgx-search-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 50px;
    border: 1px solid rgba(196, 149, 106, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--hgx-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.hgx-search-filter i {
    font-size: 0.85rem;
}

.hgx-search-filter:hover {
    border-color: rgba(196, 149, 106, 0.55);
    background: rgba(196, 149, 106, 0.08);
    color: var(--hgx-gold);
}

.hgx-search-filter.active {
    background: var(--hgx-gold-gradient);
    border-color: transparent;
    color: var(--hgx-obsidian);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(196, 149, 106, 0.35);
}

.hgx-search-filter.active i {
    color: var(--hgx-obsidian);
}

@media (max-width: 480px) {
    .hgx-search-filters {
        gap: 6px;
    }

    .hgx-search-filter {
        padding: 6px 14px;
        font-size: 0.8125rem;
    }
}

/* ========================================
   Tab Content
   ======================================== */
.hgx-tab-content {
    position: relative;
}

.hgx-tab-pane {
    display: none;
}

.hgx-tab-pane.active {
    display: block;
}

/* ========================================
   Type Selector Cards
   ======================================== */
.hgx-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.hgx-type-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hgx-type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(196, 149, 106, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.hgx-type-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 149, 106, 0.3);
    box-shadow: 0 20px 60px rgba(196, 149, 106, 0.2);
}

.hgx-type-card:hover::before {
    opacity: 1;
}

.hgx-type-card.active {
    border-color: var(--hgx-gold);
    background: rgba(196, 149, 106, 0.05);
}

.hgx-type-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--hgx-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--hgx-obsidian);
    box-shadow: 0 8px 24px rgba(196, 149, 106, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.hgx-type-card:hover .hgx-type-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(196, 149, 106, 0.4);
}

.hgx-type-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.hgx-type-card p {
    color: var(--hgx-text-secondary);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   Section Headers
   ======================================== */
.hgx-section-spacing {
    padding: 120px 0;
    position: relative;
}

.hgx-category-header {
    text-align: center;
    margin-bottom: 64px;
}

.hgx-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
}

.hgx-section-subtitle {
    font-size: 1.125rem;
    color: var(--hgx-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hgx-category-header .hgx-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--hgx-gold-gradient);
    border-radius: 2px;
}

/* ========================================
   Featured Haplogroups Grid
   ======================================== */
.hgx-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hgx-haplo-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: hgx-fadeInUpCard 0.6s ease forwards;
}

.hgx-haplo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(196, 149, 106, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.hgx-haplo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 149, 106, 0.3);
    box-shadow: 0 20px 60px rgba(196, 149, 106, 0.2);
}

.hgx-haplo-card:hover::before {
    opacity: 1;
}

.hgx-haplo-card:nth-child(1) { animation-delay: 0.1s; }
.hgx-haplo-card:nth-child(2) { animation-delay: 0.2s; }
.hgx-haplo-card:nth-child(3) { animation-delay: 0.3s; }
.hgx-haplo-card:nth-child(4) { animation-delay: 0.4s; }
.hgx-haplo-card:nth-child(5) { animation-delay: 0.5s; }
.hgx-haplo-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes hgx-fadeInUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hgx-haplo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: var(--hgx-gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--hgx-obsidian);
    box-shadow: 0 5px 15px rgba(196, 149, 106, 0.3);
    z-index: 2;
    animation: hgx-pulseBadge 2s ease-in-out infinite;
}

@keyframes hgx-pulseBadge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(196, 149, 106, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(196, 149, 106, 0.5);
    }
}

.hgx-haplo-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.hgx-haplo-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.hgx-haplo-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.hgx-haplo-meta span {
    font-size: 0.9rem;
    color: var(--hgx-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hgx-haplo-meta i {
    color: var(--hgx-gold);
}

.hgx-haplo-subclades {
    font-size: 0.9rem;
    color: var(--hgx-text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hgx-haplo-subclades i {
    color: var(--hgx-gold);
}

.hgx-card-link {
    display: inline-block;
    background: transparent;
    color: var(--hgx-gold);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(196, 149, 106, 0.3);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.hgx-card-link:hover {
    background: var(--hgx-gold);
    color: var(--hgx-obsidian);
    border-color: var(--hgx-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 149, 106, 0.3);
    text-decoration: none;
}

.hgx-card-link i {
    transition: transform 0.3s ease;
}

.hgx-card-link:hover i {
    transform: translateX(5px);
}

/* ========================================
   Tree Browser
   ======================================== */
.hgx-tree-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.hgx-tree-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.hgx-tree-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hgx-tree-header i {
    color: var(--hgx-gold);
}

.hgx-tree-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
}

.hgx-tree-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hgx-tree-node {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.2s ease;
}

.hgx-tree-node:hover {
    background: rgba(196, 149, 106, 0.1);
}

.hgx-tree-link {
    display: flex;
    align-items: center;
    flex: 1;
    text-decoration: none;
    color: var(--hgx-text-primary);
    transition: color 0.2s ease;
}

.hgx-tree-link:hover {
    color: var(--hgx-gold);
}

.hgx-tree-code {
    font-weight: 700;
    margin-right: 8px;
    color: var(--hgx-gold);
}

.hgx-tree-name {
    font-size: 0.85rem;
    color: var(--hgx-text-secondary);
}

.hgx-tree-expand {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--hgx-text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.hgx-tree-expand:hover {
    color: var(--hgx-gold);
    background: rgba(196, 149, 106, 0.1);
}

.hgx-tree-expand.expanded {
    transform: rotate(90deg);
}

.hgx-tree-children {
    padding-left: 24px;
    margin-top: 4px;
}

/* ========================================
   Methodology Cards
   ======================================== */
.hgx-methodology-section {
    padding: 80px 0;
}

.hgx-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.hgx-method-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.hgx-method-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 149, 106, 0.3);
    box-shadow: 0 20px 40px rgba(196, 149, 106, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.hgx-method-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--hgx-gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(196, 149, 106, 0.3);
    position: relative;
    transition: all 0.4s ease;
    font-size: 2rem;
    color: var(--hgx-obsidian);
}

.hgx-method-card:hover .hgx-method-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(196, 149, 106, 0.4);
}

.hgx-method-card h4 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hgx-method-card p {
    color: var(--hgx-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.hgx-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(196, 149, 106, 0.2);
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1000;
    display: none;
}

@media (max-width: 991px) {
    .hgx-mobile-nav {
        display: flex;
        justify-content: space-around;
    }
}

.hgx-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--hgx-text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
    border-radius: 8px;
}

.hgx-mobile-nav-item.active {
    color: var(--hgx-gold);
}

.hgx-mobile-nav-item i {
    font-size: 1.25rem;
}

/* ========================================
   Animations
   ======================================== */
@keyframes hgx-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hgx-fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hgx-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hgx-fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Section Background Alternation
   ======================================== */
.hgx-section-spacing:nth-child(even) {
    background-color: var(--hgx-obsidian-light);
}

.hgx-section-spacing:nth-child(odd) {
    background-color: var(--hgx-obsidian);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .hgx-hero-title {
        font-size: 2.5rem;
    }

    .hgx-hero-subtitle {
        font-size: 1.1rem;
    }

    .hgx-page-nav {
        display: none;
    }

    .hgx-section-title {
        font-size: 2rem;
    }

    .hgx-featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .hgx-type-selector {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hgx-hero {
        min-height: 70vh;
        padding: 100px 24px 60px;
    }

    .hgx-hero-title {
        font-size: 2rem;
    }

    .hgx-hero-subtitle {
        font-size: 1rem;
    }

    .hgx-stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    .hgx-stat-pill {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .hgx-featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hgx-section-title {
        font-size: 1.8rem;
    }

    .hgx-section-subtitle {
        font-size: 1rem;
    }

    .hgx-section-spacing {
        padding: 80px 0;
    }

    .hgx-methodology-section {
        padding: 60px 0;
    }

    .hgx-method-grid {
        grid-template-columns: 1fr;
    }

    .hgx-tree-container {
        max-height: 400px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .hgx-search-wrapper,
    .hgx-page-nav,
    .hgx-back-to-top,
    .hgx-mobile-nav {
        display: none;
    }
}
