﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * 
 * Spotlights Detail page styles - Cinematic scrollytelling experience.
 * Premium earth-toned aesthetics matching SampleProfileCinematic design.
 */

/* ========================================
   COLOR PALETTE & VARIABLES
   ======================================== */
.cinematic-spotlight-page {
    --cine-earth: #7C6A52;
    --cine-earth-dark: #5C4A3D;
    --cine-earth-light: rgba(124, 106, 82, 0.1);
    --cine-stone: #8B8178;
    --cine-stone-light: rgba(139, 129, 120, 0.15);
    --cine-amber: #C4956A;
    --cine-amber-light: rgba(196, 149, 106, 0.15);
    --cine-forest: #4A5D48;
    --cine-forest-dark: #3A4D38;
    --cine-forest-light: rgba(74, 93, 72, 0.08);
    --cine-parchment: #FAF8F5;
    --cine-mist: #F5F3F0;
    --cine-charcoal: #2D2D2D;
    --cine-dark: #1A1A1A;
    --cine-cream: #FBF9F6;
    
    /* Shadows */
    --cine-shadow-soft: 0 4px 24px rgba(92, 74, 61, 0.08);
    --cine-shadow-medium: 0 8px 32px rgba(92, 74, 61, 0.12);
    --cine-shadow-heavy: 0 16px 48px rgba(92, 74, 61, 0.18);
    
    /* Typography */
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--cine-charcoal);
}

/* ========================================
   ACCESSIBILITY - SKIP LINK
   ======================================== */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--cine-forest);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 8px 0;
    font-size: 0.9rem;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--cine-amber);
}

/* ========================================
   PAGE NAVIGATION DOTS
   ======================================== */
.cinematic-page-nav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
}

@media (min-width: 1200px) {
    .cinematic-page-nav {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

.cinematic-page-nav a {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(124, 106, 82, 0.25);
    border: 2px solid var(--cine-earth);
    transition: all 0.4s ease;
    position: relative;
    display: block;
}

.cinematic-page-nav a:hover,
.cinematic-page-nav a.active {
    background: var(--cine-earth);
    transform: scale(1.3);
}

.cinematic-page-nav a::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--cine-charcoal);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.cinematic-page-nav a:hover::after {
    opacity: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.cinematic-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cine-charcoal) 0%, var(--cine-dark) 100%);
    padding: 100px 24px 80px;
}

@media (max-width: 768px) {
    .cinematic-hero {
        min-height: auto;
        padding: 100px 16px 60px;
    }
}

/* Hero Background Image */
.cinematic-hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cinematic-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.5;
    filter: grayscale(20%);
}

.cinematic-hero-image.image-fallback {
    background: linear-gradient(135deg, var(--cine-earth-dark) 0%, var(--cine-charcoal) 100%);
}

.cinematic-hero-image.image-fallback img {
    display: none;
}

/* Overlays */
.cinematic-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(45, 45, 45, 0.6) 0%,
        rgba(92, 74, 61, 0.5) 50%,
        rgba(26, 26, 26, 0.85) 100%
    );
    z-index: 2;
}

.cinematic-hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 3;
}

/* Hero Content */
.cinematic-hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

/* Hero Badges */
.cinematic-hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.cinematic-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.cinematic-badge-era {
    background: var(--cine-amber);
    border-color: var(--cine-amber);
    color: var(--cine-charcoal);
    font-weight: 600;
}

.cinematic-badge-category {
    background: var(--cine-forest);
    border-color: var(--cine-forest);
    color: white;
}

.cinematic-hero-title {
    font-family: 'Outfit', var(--dnagenics-font-accent, sans-serif);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.15;
    color: white;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .cinematic-hero-title {
        font-size: 2rem;
    }
}

.cinematic-hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cinematic-hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Quick Facts Ribbon */
.cinematic-quick-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cinematic-quick-facts {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }
}

.quick-fact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.quick-fact i {
    color: var(--cine-amber);
}

.quick-fact-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .quick-fact-divider {
        display: none;
    }
}

/* Hero Actions */
.cinematic-hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cinematic-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cine-forest);
    color: white;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 24px rgba(74, 93, 72, 0.4);
}

.cinematic-btn-primary:hover {
    background: var(--cine-forest-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(74, 93, 72, 0.5);
    color: white;
    text-decoration: none;
}

.cinematic-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.cinematic-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
}

@media (max-width: 576px) {
    .cinematic-btn-primary,
    .cinematic-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* Scroll Indicator */
.cinematic-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    animation: bounce-gentle 2s infinite;
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
    .cinematic-scroll-indicator {
        display: none;
    }
}

/* ========================================
   SECTION BASE STYLES
   ======================================== */
.cinematic-section {
    padding: 100px 0;
    position: relative;
}

@media (max-width: 768px) {
    .cinematic-section {
        padding: 60px 0;
    }
}

.cinematic-section-light {
    background: var(--cine-cream);
}

.cinematic-section-dark {
    background: var(--cine-charcoal);
    color: white;
}

/* Blockquote styling for dark sections - ensure readable text on dark background */
.cinematic-section-dark blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--cine-amber);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 0 8px 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.cinematic-section-dark blockquote p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.cinematic-section-dark blockquote p:last-child {
    margin-bottom: 0;
}

.cinematic-section-dark blockquote strong {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

.cinematic-section-dark blockquote em {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.cinematic-section-parchment {
    background: linear-gradient(180deg, var(--cine-parchment) 0%, var(--cine-mist) 100%);
}

.cinematic-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-chapter {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cine-amber);
    margin-bottom: 16px;
}

.cinematic-section-dark .section-chapter {
    color: var(--cine-amber);
}

.cinematic-section-title {
    font-family: 'Outfit', var(--dnagenics-font-accent, sans-serif);
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .cinematic-section-title {
        font-size: 2rem;
    }
}

.cinematic-section-lead {
    font-size: 1.15rem;
    color: var(--cine-stone);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.cinematic-section-dark .cinematic-section-lead {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   OVERVIEW SECTION
   ======================================== */

/* Intro Text - Full Width, Centered */
.overview-intro {
    max-width: 700px;
    margin: 0 auto 48px;
}

.overview-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--cine-charcoal);
    max-width: 100%;
    margin: 0 auto;
}

.overview-text p {
    margin-bottom: 24px;
}

.overview-text p:first-of-type {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cine-earth-dark);
}

/* Key Facts Cards Grid - Identity Style */
.key-facts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.key-fact-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--cine-shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(124, 106, 82, 0.1);
}

.key-fact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cine-shadow-medium);
}

.key-fact-card-icon {
    width: 60px;
    height: 60px;
    background: var(--cine-forest-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.key-fact-card-icon i {
    font-size: 1.5rem;
    color: var(--cine-forest);
}

.key-fact-card-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cine-stone);
    margin-bottom: 12px;
    font-weight: 600;
}

.key-fact-card-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cine-charcoal);
    margin: 0;
}

/* Tags Section - Full Width */
.overview-tags-section {
    max-width: 1000px;
    margin: 0 auto 48px;
    padding-top: 32px;
    border-top: 1px solid var(--cine-mist);
}

.tags-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cine-stone);
    margin-bottom: 12px;
    display: block;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--cine-earth-light);
    color: var(--cine-earth-dark);
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tag-badge:hover {
    background: var(--cine-forest);
    color: white;
    text-decoration: none;
}

/* Mini Map - Full Width */
.overview-map {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--cine-shadow-soft);
}

.overview-map-container {
    height: 200px;
    width: 100%;
    background: var(--cine-mist);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .overview-intro {
        margin-bottom: 40px;
    }
    
    .key-facts-cards {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .overview-tags-section {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .key-facts-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .key-fact-card {
        padding: 24px;
    }
}

/* ========================================
   TIMELINE SECTION
   ======================================== */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

.cinematic-timeline {
    position: relative;
    padding-left: 60px;
}

.cinematic-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--cine-amber), var(--cine-forest));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--cine-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cine-forest);
    z-index: 1;
    box-shadow: var(--cine-shadow-soft);
}

.timeline-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--cine-shadow-soft);
    border-left: 4px solid var(--cine-amber);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--cine-shadow-medium);
    transform: translateX(4px);
}

.timeline-date {
    display: inline-block;
    background: var(--cine-amber);
    color: var(--cine-charcoal);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cine-charcoal);
    margin-bottom: 8px;
}

.timeline-description {
    color: var(--cine-stone);
    margin: 0;
    line-height: 1.7;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .cinematic-timeline {
        padding-left: 40px;
    }
    
    .cinematic-timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -30px;
        width: 36px;
        height: 36px;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

/* ========================================
   DYNAMIC SECTIONS
   ======================================== */
.content-section-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section-grid.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.content-section-grid.reverse .section-text {
    order: 2;
}

.content-section-grid.reverse .section-media {
    order: 1;
}

@media (max-width: 992px) {
    .content-section-grid,
    .content-section-grid.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .content-section-grid.reverse .section-text,
    .content-section-grid.reverse .section-media {
        order: unset;
    }
}

.content-section-layout {
    max-width: 920px;
    margin: 0 auto;
}

.content-section-layout .section-media {
    margin-top: 32px;
}

.section-text h3 {
    font-family: 'Outfit', var(--dnagenics-font-accent, sans-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--cine-charcoal);
    margin-bottom: 20px;
}

.section-text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cine-charcoal);
    max-width: 100%;
    margin: 0 auto;
}

.section-text-content p {
    margin-bottom: 16px;
}

.section-bullets {
    list-style: none;
    padding: 0;
    margin-top: 24px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.section-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--cine-charcoal);
}

.section-bullets li i {
    color: var(--cine-forest);
    margin-top: 4px;
}

.section-media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--cine-shadow-medium);
}

/* ========================================
   SAMPLES SECTION
   ======================================== */
.samples-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

/* Sample Catalog - View Toggle */
.spotlight-view-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.spotlight-view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(196, 149, 106, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spotlight-view-toggle-btn:hover {
    background: rgba(15, 20, 25, 0.8);
    border-color: rgba(196, 149, 106, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.spotlight-view-toggle-btn.active {
    background: linear-gradient(135deg, rgba(196, 149, 106, 0.2), rgba(196, 149, 106, 0.15));
    border-color: var(--cine-amber);
    color: var(--cine-amber);
}

.spotlight-view-toggle-btn i {
    font-size: 0.85rem;
}

/* Sample Catalog - Search and Count */
.spotlight-catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.spotlight-catalog-search {
    position: relative;
    flex: 1;
    max-width: 420px;
}

.spotlight-catalog-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.spotlight-catalog-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(196, 149, 106, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.spotlight-catalog-search input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.spotlight-catalog-search input:focus {
    border-color: var(--cine-amber);
}

.spotlight-catalog-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

/* Sample Catalog - Table */
.spotlight-ancient-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-ancient-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.spotlight-ancient-table thead {
    background: rgba(74, 93, 72, 0.3);
}

.spotlight-ancient-table th {
    padding: 14px 12px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cine-amber);
    border-bottom: 2px solid rgba(196, 149, 106, 0.3);
}

.spotlight-ancient-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.spotlight-ancient-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.spotlight-ancient-table td {
    padding: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    vertical-align: middle;
}

.spotlight-sample-portrait {
    position: relative;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
}

.spotlight-sample-portrait img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.spotlight-sample-name-cell strong {
    color: var(--cine-amber);
}

.spotlight-haplo-code {
    background: rgba(74, 93, 72, 0.3);
    color: #7ccc8f;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
}

.spotlight-sex-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.spotlight-sex-badge.male {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.spotlight-sex-badge.female {
    background: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
}

.spotlight-clickable-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.spotlight-clickable-row:hover {
    background: rgba(74, 93, 72, 0.05) !important;
}

.spotlight-table-loadmore {
    text-align: center;
    margin-top: 24px;
}

/* Sample Catalog - Cards Grid */
.spotlight-catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 992px) {
    .spotlight-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .spotlight-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.spotlight-sample-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(15, 20, 25, 0.5);
    border: 1px solid rgba(196, 149, 106, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.spotlight-sample-card:hover {
    background: rgba(196, 149, 106, 0.06);
    border-color: rgba(196, 149, 106, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.spotlight-sample-hidden {
    display: none !important;
}

.spotlight-card-portrait {
    width: 100%;
    aspect-ratio: 1;
    max-width: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.spotlight-card-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-sample-info {
    width: 100%;
    text-align: center;
}

.spotlight-sample-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cine-amber);
    margin-bottom: 4px;
}

.spotlight-sample-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.spotlight-sample-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.spotlight-sample-meta-item i {
    color: var(--cine-amber);
    margin-right: 4px;
}

.spotlight-sample-haplo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.spotlight-haplo-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.spotlight-haplo-badge.ydna {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.spotlight-haplo-badge.mtdna {
    background: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
}

.spotlight-catalog-loadmore {
    text-align: center;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .spotlight-view-toggle {
        flex-direction: column;
        gap: 8px;
    }
    
    .spotlight-view-toggle-btn {
        width: 100%;
        justify-content: center;
    }
    
    .spotlight-catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .spotlight-catalog-search {
        max-width: 100%;
    }
    
    .spotlight-ancient-table {
        min-width: 600px;
        font-size: 0.8rem;
    }
}

.samples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.sample-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    text-decoration: none;
    color: white;
    display: block;
}

.sample-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.sample-card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.sample-portrait {
    flex-shrink: 0;
}

.sample-portrait-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cine-amber);
}

.sample-portrait-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid var(--cine-amber);
}

.sample-portrait-placeholder.male {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.3));
    color: #93c5fd;
}

.sample-portrait-placeholder.female {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(219, 39, 119, 0.3));
    color: #f9a8d4;
}

.sample-info {
    flex: 1;
    min-width: 0;
}

.sample-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cine-amber);
    margin-bottom: 4px;
}

.sample-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sample-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.sample-meta-item i {
    color: var(--cine-amber);
    margin-right: 4px;
}

.sample-haplogroups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.haplo-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.haplo-badge.ydna {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.haplo-badge.mtdna {
    background: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
}

.samples-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   PUBLICATIONS SECTION
   ======================================== */
.publications-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publication-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--cine-shadow-soft);
    border: 1px solid rgba(124, 106, 82, 0.1);
    transition: all 0.3s ease;
}

.publication-card:hover {
    box-shadow: var(--cine-shadow-medium);
    transform: translateY(-2px);
}

.publication-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cine-charcoal);
    margin-bottom: 12px;
    line-height: 1.5;
}

.publication-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.publication-title a:hover {
    color: var(--cine-forest);
}

.publication-authors {
    font-size: 0.9rem;
    color: var(--cine-stone);
    margin-bottom: 12px;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--cine-stone);
    margin-bottom: 16px;
}

.publication-meta-item i {
    color: var(--cine-forest);
    margin-right: 6px;
}

.publication-abstract {
    padding-top: 16px;
    border-top: 1px solid var(--cine-mist);
}

.publication-abstract p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--cine-stone);
}

.btn-toggle-abstract {
    background: none;
    border: none;
    color: var(--cine-forest);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.btn-toggle-abstract:hover {
    color: var(--cine-earth);
}

/* ========================================
   AI ASSISTANT SECTION
   ======================================== */
.ai-section-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .ai-section-panel {
        padding: 28px;
    }
}

.ai-section-header {
    text-align: center;
    margin-bottom: 32px;
}

.ai-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ai-section-title small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
}

.ai-license-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ai-license-badge.licensed {
    background: var(--cine-forest);
    color: white;
}

.ai-license-badge.unlicensed {
    background: var(--cine-amber);
    color: var(--cine-charcoal);
}

.ai-info-alert {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.ai-info-alert i {
    color: var(--cine-amber);
    margin-right: 8px;
}

.ai-suggested-prompts {
    margin-bottom: 24px;
}

.ai-suggested-prompts-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-suggested-prompts-label i {
    color: var(--cine-amber);
}

.ai-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.ai-prompt-btn:hover {
    background: var(--cine-forest);
    border-color: var(--cine-forest);
}

.ai-prompt-btn i {
    color: var(--cine-amber);
}

.ai-custom-input {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ai-custom-input input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
}

.ai-custom-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ai-custom-input input:focus {
    outline: none;
    border-color: var(--cine-amber);
}

.ai-custom-input button {
    padding: 14px 24px;
    background: var(--cine-forest);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-custom-input button:hover {
    background: var(--cine-forest-dark);
}

.ai-main-action {
    text-align: center;
}

.ai-explain-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--cine-forest);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 24px rgba(74, 93, 72, 0.4);
}

.ai-explain-btn:hover {
    background: var(--cine-forest-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(74, 93, 72, 0.5);
}

.ai-explain-btn img {
    width: 24px;
    height: 24px;
}

.ai-results {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-results:empty {
    display: none;
}

.ai-result-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
}

.ai-result-content p {
    margin-bottom: 16px;
}

/* Unlicensed AI Sample */
.ai-sample-output {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.ai-sample-output h6 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-sample-output h6 i {
    color: var(--cine-amber);
}

.ai-sample-content {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
}

.ai-blur-overlay {
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(4px);
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
}

.ai-blur-overlay p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.ai-blur-overlay ul {
    color: rgba(255, 255, 255, 0.6);
    padding-left: 20px;
    margin: 0;
}

.ai-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--cine-forest);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ai-unlock-btn:hover {
    background: var(--cine-forest-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ========================================
   RELATED CULTURES SECTION
   ======================================== */
.related-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.related-carousel::-webkit-scrollbar {
    height: 8px;
}

.related-carousel::-webkit-scrollbar-track {
    background: var(--cine-mist);
    border-radius: 4px;
}

.related-carousel::-webkit-scrollbar-thumb {
    background: var(--cine-earth);
    border-radius: 4px;
}

.related-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--cine-shadow-soft);
    transition: all 0.4s ease;
    background: white;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cine-shadow-heavy);
    text-decoration: none;
    color: inherit;
}

.related-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.related-image .ac-placeholder-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.related-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.related-content {
    padding: 20px;
}

.related-era {
    font-size: 0.75rem;
    color: var(--cine-amber);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cine-charcoal);
    margin: 8px 0 0;
}

/* ========================================
   FOOTER CTA
   ======================================== */
.cinematic-footer-cta {
    background: linear-gradient(135deg, var(--cine-forest) 0%, var(--cine-earth-dark) 100%);
    padding: 80px 24px;
    color: white;
    text-align: center;
}

.cinematic-footer-cta h3 {
    font-family: 'Outfit', var(--dnagenics-font-accent, sans-serif);
    font-size: 2rem;
    margin-bottom: 16px;
}

.cinematic-footer-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */
.cinematic-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1250;
    background: rgba(36, 36, 36, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
}

.cinematic-bottom-nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 8px;
}

.cinematic-bottom-nav-item i {
    font-size: 1rem;
}

.cinematic-bottom-nav-item span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cinematic-bottom-nav-item:hover,
.cinematic-bottom-nav-item.active {
    color: var(--cine-amber);
    background: rgba(196, 149, 106, 0.15);
    text-decoration: none;
}

/* Adjust main content padding for bottom nav on mobile */
@media (max-width: 767.98px) {
    .cinematic-spotlight-page {
        padding-bottom: 90px;
    }
    
    .cinematic-footer-cta {
        padding-bottom: 100px;
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--cine-forest);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: var(--cine-shadow-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--cine-amber);
    color: var(--cine-charcoal);
    transform: translateY(-4px);
}

@media (min-width: 768px) {
    .back-to-top {
        bottom: 32px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .cinematic-scroll-indicator {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, var(--cine-mist) 25%, var(--cine-cream) 50%, var(--cine-mist) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .cinematic-page-nav,
    .cinematic-bottom-nav,
    .cinematic-scroll-indicator,
    .cinematic-hero-actions,
    .cinematic-footer-cta,
    .skip-link,
    .back-to-top,
    .ai-section-panel,
    .samples-actions,
    .btn-toggle-abstract {
        display: none !important;
    }
    
    .cinematic-section {
        page-break-inside: avoid;
        padding: 40px 0;
    }
    
    .cinematic-hero {
        min-height: auto;
        padding: 40px;
    }
    
    .cinematic-section-dark {
        background: white;
        color: black;
    }
    
    .sample-card {
        background: white;
        color: black;
        border: 1px solid #ddd;
    }
}
