/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Ancient Italy Ancestry Report CSS
 * Styling for the Ancient Italy ancestry report with Mediterranean cultural period theming.
 */

/* ========================================
   CSS Variables - Ancient Italy Theme
   ======================================== */
:root {
    --ait-primary: #8B4513;
    --ait-primary-dark: #654321;
    --ait-primary-light: #A0522D;
    --ait-secondary: #556B2F;
    --ait-accent: #C9A030;
    --ait-accent-light: #D4B54D;
    --ait-bg-dark: #0F0D0A;
    --ait-bg-medium: #1A1610;
    --ait-text-light: #ffffff;
    --ait-text-muted: rgba(255, 255, 255, 0.7);
    --ait-border: rgba(255, 255, 255, 0.1);
    --ait-shadow: rgba(0, 0, 0, 0.3);
    --ait-transition: 0.3s ease;
}

/* ========================================
   Content Hidden State
   ======================================== */
.ait-content-hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ait-content-visible {
    opacity: 1;
}

/* ========================================
   Scroll Progress Bar
   ======================================== */
.ait-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--ait-primary), var(--ait-accent));
    z-index: 1000;
    transition: width 0.1s linear;
}

/* ========================================
   Skip Link
   ======================================== */
.ait-skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ait-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 0 0 5px 5px;
    z-index: 10000;
    transition: top var(--ait-transition);
}

.ait-skip-link:focus {
    top: 0;
    outline: none;
}

/* ========================================
   Page Navigation
   ======================================== */
.ait-page-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (max-width: 768px) {
    .ait-page-nav {
        display: none;
    }
}

.ait-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--ait-transition);
    position: relative;
}

.ait-nav-dot:hover,
.ait-nav-dot.active {
    background: var(--ait-accent);
    transform: scale(1.3);
}

.ait-nav-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ait-bg-dark);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ait-transition);
}

.ait-nav-dot:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.ait-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 13, 10, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    padding: 10px 5px calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
    border-top: 1px solid var(--ait-border);
}

@media (min-width: 768px) {
    .ait-bottom-nav {
        display: none;
    }
}

.ait-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ait-text-muted);
    text-decoration: none;
    font-size: 10px;
    transition: color var(--ait-transition);
}

.ait-bottom-nav-item.active,
.ait-bottom-nav-item:hover {
    color: var(--ait-accent);
}

/* ========================================
   Back to Top Button
   ======================================== */
.ait-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--ait-primary);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ait-transition);
    z-index: 99;
}

@media (max-width: 768px) {
    .ait-back-to-top {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

.ait-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.ait-back-to-top:hover {
    background: var(--ait-primary-light);
    transform: translateY(-3px);
}

/* ========================================
   Main Content
   ======================================== */
.ait-main {
    background: var(--ait-bg-dark);
    min-height: 100vh;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .ait-main {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* ========================================
   Sections
   ======================================== */
.ait-section {
    padding: 100px 0;
    position: relative;
}

.ait-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ait-section-badge {
    display: inline-block;
    background: rgba(139, 69, 19, 0.3);
    color: var(--ait-accent);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ait-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--ait-text-light);
    margin-bottom: 15px;
}

.ait-section-subtitle {
    font-size: 1.1rem;
    color: var(--ait-text-muted);
}

/* ========================================
   Hero Section
   ======================================== */
.ait-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
}

.ait-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ait-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.ait-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 13, 10, 0.8) 0%, rgba(15, 13, 10, 0.95) 100%);
}

.ait-hero-content {
    position: relative;
    z-index: 1;
}

.ait-hero-header {
    text-align: center;
    margin-bottom: 50px;
}

.ait-hero-badge {
    display: inline-block;
    background: rgba(139, 69, 19, 0.3);
    color: var(--ait-accent);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

.ait-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ait-text-light);
    margin-bottom: 15px;
}

.ait-hero-title-accent {
    color: var(--ait-accent);
}

.ait-hero-subtitle {
    font-size: 1.2rem;
    color: var(--ait-text-muted);
}

/* ========================================
   Index Display
   ======================================== */
.ait-index-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.ait-index-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ait-index-inner {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--ait-bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ait-index-label {
    font-size: 12px;
    color: var(--ait-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ait-index-value {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--ait-accent);
}

.ait-index-unit {
    font-size: 1.5rem;
}

/* ========================================
   Cluster Badge
   ======================================== */
.ait-cluster-badge {
    text-align: center;
    margin-bottom: 40px;
}

.ait-cluster-label {
    display: block;
    font-size: 12px;
    color: var(--ait-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ait-cluster-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ait-accent);
    margin-bottom: 5px;
}

.ait-cluster-confidence {
    display: block;
    font-size: 0.9rem;
    color: var(--ait-text-muted);
}

/* ========================================
   Hero Match Card
   ======================================== */
.ait-hero-match {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--ait-border);
}

.ait-hero-match-portrait {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ait-hero-match-portrait img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ait-crown-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(201, 160, 48, 0.9);
    color: var(--ait-bg-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ait-hero-match-details {
    color: var(--ait-text-light);
}

.ait-culture-badge {
    display: inline-block;
    background: var(--ait-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.ait-match-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ait-text-light);
}

.ait-match-location {
    color: var(--ait-text-muted);
    margin-bottom: 15px;
}

.ait-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--ait-text-muted);
    font-size: 0.9rem;
}

.ait-match-haplogroups {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ait-haplogroup {
    background: rgba(201, 160, 48, 0.2);
    color: var(--ait-accent);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* ========================================
   Score Grid
   ======================================== */
.ait-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ait-score-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--ait-border);
}

.ait-score-icon {
    font-size: 2rem;
    color: var(--ait-accent);
    margin-bottom: 15px;
}

.ait-score-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ait-accent);
    margin-bottom: 5px;
}

.ait-score-label {
    font-size: 0.9rem;
    color: var(--ait-text-muted);
    margin-bottom: 5px;
}

.ait-score-weight {
    font-size: 0.75rem;
    color: var(--ait-text-muted);
    opacity: 0.7;
}

/* ========================================
   No Match Found
   ======================================== */
.ait-no-match {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--ait-border);
}

.ait-no-match-icon {
    font-size: 4rem;
    color: var(--ait-text-muted);
    margin-bottom: 20px;
}

.ait-no-match h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--ait-text-light);
    margin-bottom: 20px;
}

.ait-no-match-reason {
    font-size: 1.1rem;
    color: var(--ait-text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ait-no-match-stats {
    margin-bottom: 30px;
    color: var(--ait-text-muted);
}

.ait-suggestion {
    margin-top: 30px;
}

.ait-suggestion p {
    color: var(--ait-text-muted);
    margin-bottom: 15px;
}

/* ========================================
   Connections Section
   ======================================== */
.ait-samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.ait-sample-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--ait-border);
    transition: transform var(--ait-transition), box-shadow var(--ait-transition);
    cursor: pointer;
}

.ait-sample-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ait-sample-portrait {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.ait-sample-portrait img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ait-sample-details {
    padding: 20px;
    color: var(--ait-text-light);
}

.ait-sample-culture {
    display: inline-block;
    background: var(--ait-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ait-sample-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ait-text-light);
}

.ait-sample-name a {
    color: inherit;
    text-decoration: none;
}

.ait-sample-name a:hover {
    color: var(--ait-accent);
}

.ait-sample-location,
.ait-sample-date {
    font-size: 0.9rem;
    color: var(--ait-text-muted);
    margin-bottom: 5px;
}

/* ========================================
   Cultural Periods Section
   ======================================== */
.ait-periods-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ait-period-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--ait-border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform var(--ait-transition);
}

.ait-period-card:hover {
    transform: translateX(10px);
}

.ait-period-icon {
    font-size: 2.5rem;
    color: var(--ait-accent);
    flex-shrink: 0;
}

.ait-period-content {
    flex: 1;
}

.ait-period-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ait-text-light);
    margin-bottom: 10px;
}

.ait-period-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ait-period-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ait-primary), var(--ait-accent));
    transition: width 1s ease;
}

.ait-period-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ait-accent);
}

/* ========================================
   Analysis Section
   ======================================== */
.ait-chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--ait-border);
    margin-bottom: 40px;
}

.ait-chart-header {
    text-align: center;
    margin-bottom: 30px;
}

.ait-chart-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--ait-text-light);
    margin-bottom: 10px;
}

.ait-chart-header p {
    color: var(--ait-text-muted);
}

.ait-chart {
    width: 100%;
    height: 500px;
    min-height: 500px;
}

/* ========================================
   Map Section
   ======================================== */
.ait-map-section {
    background: rgba(255, 255, 255, 0.02);
}

.ait-map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.ait-map-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ait-text-light);
    cursor: pointer;
}

.ait-map-toggle input[type="checkbox"] {
    width: 40px;
    height: 20px;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background var(--ait-transition);
}

.ait-map-toggle input[type="checkbox"]:checked {
    background: var(--ait-accent);
}

.ait-map-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform var(--ait-transition);
}

.ait-map-toggle input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

.ait-map-count {
    color: var(--ait-text-muted);
    font-size: 0.9rem;
}

.ait-map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--ait-bg-medium);
    border: 1px solid var(--ait-border);
}

.ait-map {
    width: 100%;
    height: 600px;
}

.ait-map-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 13, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--ait-border);
    z-index: 1000;
}

.ait-map-legend h5 {
    font-size: 0.9rem;
    color: var(--ait-text-light);
    margin-bottom: 10px;
}

.ait-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--ait-text-muted);
}

.ait-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ait-legend-match {
    background: var(--ait-accent);
}

.ait-legend-reference {
    background: var(--ait-primary);
}

.ait-map-insight {
    margin-top: 30px;
    padding: 20px;
    background: rgba(201, 160, 48, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--ait-accent);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ait-map-insight p {
    color: var(--ait-text-light);
    margin: 0;
    flex: 1;
}

/* ========================================
   Learn Section
   ======================================== */
.ait-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--ait-border);
    height: 100%;
}

.ait-info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ait-text-light);
    margin-bottom: 15px;
}

.ait-info-card p {
    color: var(--ait-text-muted);
    margin-bottom: 15px;
}

.ait-info-card ul {
    list-style: none;
    padding: 0;
}

.ait-info-card ul li {
    color: var(--ait-text-muted);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.ait-info-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--ait-accent);
    font-weight: bold;
}

.ait-related-reports {
    margin-top: 60px;
}

.ait-related-reports h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--ait-text-light);
    margin-bottom: 30px;
    text-align: center;
}

.ait-related-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--ait-border);
    transition: transform var(--ait-transition);
    text-decoration: none;
    color: inherit;
}

.ait-related-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.ait-related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ait-related-content {
    padding: 20px;
}

.ait-related-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--ait-text-light);
    margin-bottom: 10px;
}

.ait-related-content p {
    color: var(--ait-text-muted);
    margin: 0;
}

/* ========================================
   Sample Drawer
   ======================================== */
.ait-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    max-width: 800px;
    height: 100vh;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .ait-drawer {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: 90vh;
        transform: translateY(100%);
        border-radius: 24px 24px 0 0;
    }
}

.ait-drawer.open {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .ait-drawer.open {
        transform: translateY(0);
    }
}

.ait-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ait-drawer.open ~ .ait-drawer-backdrop,
.ait-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.ait-drawer-panel {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--ait-bg-dark);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .ait-drawer-panel {
        border-radius: 24px 24px 0 0;
    }
}

.ait-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--ait-border);
}

.ait-drawer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--ait-text-light);
    margin: 0;
}

.ait-drawer-close {
    background: none;
    border: none;
    color: var(--ait-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color var(--ait-transition);
}

.ait-drawer-close:hover {
    color: var(--ait-accent);
}

.ait-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.ait-drawer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--ait-text-muted);
}

.ait-drawer-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--ait-accent);
}

.ait-drawer-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ait-drawer-info {
    text-align: center;
    margin-bottom: 20px;
}

.ait-drawer-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--ait-text-light);
    margin-bottom: 10px;
}

.ait-drawer-info p {
    color: var(--ait-text-muted);
    margin: 0;
}

.ait-drawer-era {
    text-align: center;
    margin-bottom: 30px;
}

.ait-drawer-era-badge {
    display: inline-block;
    background: var(--ait-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ait-drawer-dates {
    display: block;
    color: var(--ait-text-muted);
    font-size: 0.9rem;
}

.ait-drawer-section {
    margin-bottom: 30px;
}

.ait-drawer-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--ait-text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ait-drawer-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.ait-drawer-metadata-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
}

.ait-drawer-metadata-label {
    font-size: 0.75rem;
    color: var(--ait-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ait-drawer-metadata-value {
    font-size: 1rem;
    color: var(--ait-text-light);
    font-weight: 500;
}

.ait-drawer-era-display {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.ait-drawer-era-icon {
    font-size: 2rem;
    color: var(--ait-accent);
}

.ait-drawer-era-info {
    flex: 1;
}

.ait-drawer-era-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ait-text-light);
    margin-bottom: 5px;
}

.ait-drawer-era-desc {
    display: block;
    font-size: 0.9rem;
    color: var(--ait-text-muted);
}

.ait-drawer-about-era-content {
    margin-top: 15px;
}

.ait-drawer-about-era-text {
    color: var(--ait-text-muted);
    line-height: 1.6;
}

.ait-drawer-actions {
    padding: 20px;
    border-top: 1px solid var(--ait-border);
}

.ait-btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--ait-primary);
    color: white;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background var(--ait-transition);
}

.ait-btn-primary:hover {
    background: var(--ait-primary-light);
    color: white;
    text-decoration: none;
}

/* ========================================
   Heritage Summary Section
   ======================================== */
.ait-summary-card {
    background: linear-gradient(135deg, var(--ait-bg-medium) 0%, var(--ait-bg-dark) 100%);
    border: 1px solid var(--ait-border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px var(--ait-shadow);
}

.ait-summary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--ait-bg-dark);
    border-bottom: 1px solid var(--ait-border);
}

.ait-summary-logo img {
    opacity: 0.8;
    height: 16px;
    width: auto;
    max-width: 60px;
    max-height: 16px;
}

.ait-summary-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--ait-text-light);
    margin: 0;
}

.ait-summary-title span {
    font-size: 0.8125rem;
    color: var(--ait-text-muted);
}

.ait-summary-body {
    padding: 1.5rem;
}

.ait-summary-stats {
    display: flex;
    justify-content: space-around;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ait-border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ait-summary-stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.ait-summary-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ait-accent);
    font-family: 'Playfair Display', serif;
}

.ait-summary-stat-unit {
    font-size: 1rem;
}

.ait-summary-stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ait-text-muted);
    display: block;
    margin-top: 4px;
}

.ait-summary-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ait-text-muted);
    margin: 0 0 1rem;
}

.ait-summary-matches {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ait-summary-match {
    position: relative;
    text-align: center;
    flex: 0 0 auto;
}

.ait-summary-match img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--ait-accent);
    display: block;
    margin: 0 auto;
}

.ait-summary-match-rank {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ait-accent);
    color: var(--ait-bg-dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    z-index: 1;
}

.ait-summary-match-info {
    margin-top: 8px;
}

.ait-summary-match-name {
    display: block;
    font-size: 0.75rem;
    color: var(--ait-text-light);
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
}

.ait-summary-match-culture {
    display: block;
    font-size: 0.6875rem;
    color: var(--ait-accent-light);
    margin-top: 2px;
}

.ait-summary-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ait-summary-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ait-summary-highlight .dna-icon {
    color: var(--ait-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.ait-summary-hl-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ait-text-muted);
}

.ait-summary-hl-value {
    font-size: 0.875rem;
    color: var(--ait-text-light);
    display: block;
    margin-top: 2px;
}

.ait-summary-timespan {
    text-align: center;
    padding: 1rem;
    background: var(--ait-bg-dark);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--ait-text-muted);
}

.ait-summary-timespan strong {
    color: var(--ait-text-light);
}

.ait-summary-footer {
    padding: 1rem 1.5rem;
    background: var(--ait-bg-dark);
    text-align: center;
    font-size: 0.75rem;
    color: var(--ait-text-muted);
}

.ait-summary-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.ait-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--ait-transition);
    border: none;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ait-btn-outline {
    background: transparent;
    color: var(--ait-text-light);
    border: 1px solid var(--ait-border);
}

.ait-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ait-accent);
    color: var(--ait-accent);
}

.ait-btn-primary {
    background: var(--ait-accent);
    color: var(--ait-bg-dark);
}

.ait-btn-primary:hover {
    background: var(--ait-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 160, 48, 0.3);
}

.ait-btn .dna-icon {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .ait-summary-card {
        margin: 0 1rem;
    }

    .ait-summary-stats {
        gap: 0.5rem;
    }

    .ait-summary-stat {
        min-width: 70px;
    }

    .ait-summary-stat-value {
        font-size: 1.25rem;
    }

    .ait-summary-matches {
        gap: 0.75rem;
    }

    .ait-summary-match img {
        width: 56px;
        height: 56px;
    }

    .ait-summary-actions {
        flex-direction: column;
    }

    .ait-btn {
        width: 100%;
        justify-content: center;
    }
}

@media print {
    .ait-summary-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .ait-summary-actions {
        display: none;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .ait-hero-title {
        font-size: 2.5rem;
    }

    .ait-section-title {
        font-size: 2rem;
    }

    .ait-section {
        padding: 60px 0;
    }

    .ait-samples-grid {
        grid-template-columns: 1fr;
    }

    .ait-score-grid {
        grid-template-columns: 1fr;
    }

    .ait-map {
        height: 400px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .ait-page-nav,
    .ait-bottom-nav,
    .ait-back-to-top,
    .ait-drawer {
        display: none !important;
    }

    .ait-main {
        background: white;
        color: black;
    }

    .ait-section {
        page-break-inside: avoid;
    }
}
