/* =====================================================
   OWL DOJ Epstein Analysis - Premium Investigative Platform
   Design: NYT Investigations / ProPublica / The Intercept
   ===================================================== */

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors */
    --color-black: #0A0A0F;
    --color-gold: #D4A847;
    --color-red: #8B0000;
    --color-blue: #2563EB;
    --color-white: #F5F5F5;
    
    /* Grayscale */
    --gray-50: #FAFAFA;
    --gray-100: #F4F4F5;
    --gray-200: #E4E4E7;
    --gray-300: #D4D4D8;
    --gray-400: #A1A1AA;
    --gray-500: #71717A;
    --gray-600: #52525B;
    --gray-700: #3F3F46;
    --gray-800: #27272A;
    --gray-900: #18181B;
    
    /* Dark Theme */
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-hover: #22222e;
    --text-primary: #F5F5F5;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --border: rgba(212, 168, 71, 0.1);
    --border-strong: rgba(212, 168, 71, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.8);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-card: #F4F4F5;
    --bg-hover: #E4E4E7;
    --text-primary: #18181B;
    --text-secondary: #52525B;
    --text-muted: #71717A;
    --border: rgba(24, 24, 27, 0.1);
    --border-strong: rgba(24, 24, 27, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 40px 100px rgba(0, 0, 0, 0.15);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold);
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ===== Landing Intro ===== */
.landing-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0A0A0F 0%, #1a1a24 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.landing-intro.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.intro-logo {
    margin-bottom: 2rem;
    animation: fadeInScale 1s ease;
}

.intro-title {
    font-size: 3.5rem;
    font-family: var(--font-display);
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease 0.2s both;
}

.intro-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.intro-stat {
    padding: 1.5rem;
    background: rgba(212, 168, 71, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.intro-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    font-family: var(--font-mono);
}

.intro-stat .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.intro-progress {
    width: 100%;
    height: 2px;
    background: rgba(212, 168, 71, 0.1);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.8s both;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold), var(--color-blue));
    border-radius: 2px;
    width: 0;
    animation: progressFill 3s ease-in-out forwards;
}

.enter-button {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    background: var(--color-gold);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease 1s both;
    box-shadow: 0 4px 20px rgba(212, 168, 71, 0.3);
}

.enter-button:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 71, 0.4);
}

/* ===== Navigation ===== */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

[data-theme="light"] .main-nav {
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-gold);
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-button:hover {
    background: var(--bg-hover);
    color: var(--color-gold);
    border-color: var(--color-gold);
}

/* ===== Search Overlay ===== */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-base);
    max-height: 500px;
    overflow-y: auto;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container input {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.search-container input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.search-results {
    max-width: 800px;
    margin: 1rem auto 0;
    display: grid;
    gap: 0.5rem;
}

.search-result-item {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-result-item:hover {
    background: var(--bg-hover);
    border-color: var(--color-gold);
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 8rem 0 6rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(212, 168, 71, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 168, 71, 0.1);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
}

.hero-stat {
    text-align: left;
}

.hero-stat .stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-gold);
    font-family: var(--font-mono);
    line-height: 1;
}

.hero-stat .stat-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ===== Section Styles ===== */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Stats Grid ===== */
.stats-section {
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.stat-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.stat-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.stat-card-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ===== Verdict Section ===== */
.verdict-section {
    background: linear-gradient(135deg, #1a0000 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.verdict-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="1" height="1" fill="rgba(139,0,0,0.05)"/></svg>');
    opacity: 0.5;
}

.verdict-content {
    position: relative;
    z-index: 1;
}

.verdict-header {
    text-align: center;
    margin-bottom: 4rem;
}

.verdict-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--color-red);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.verdict-title {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    color: var(--color-red);
    letter-spacing: 0.05em;
    text-shadow: 0 4px 20px rgba(139, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.verdict-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
}

.charges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.charge-card {
    padding: 2rem;
    background: rgba(139, 0, 0, 0.05);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.charge-card:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--color-red);
    transform: translateY(-4px);
}

.charge-statute {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.charge-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.charge-verdict {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.charge-evidence {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.verdict-quote {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background: rgba(212, 168, 71, 0.05);
    border-left: 4px solid var(--color-gold);
    border-radius: 8px;
}

.verdict-quote blockquote p {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.verdict-quote cite {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: normal;
}

.sentence-recommendation {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border: 2px solid var(--color-red);
    border-radius: 8px;
}

.sentence-recommendation h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.sentence-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-red);
}

/* ===== Network Section ===== */
.network-section {
    background: var(--bg-secondary);
}

.network-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.network-search {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.network-search:focus {
    outline: none;
    border-color: var(--color-gold);
}

.network-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.network-container {
    position: relative;
    width: 100%;
    height: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.network-graph {
    width: 100%;
    height: 100%;
}

.network-legend {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ===== Node Detail Panel ===== */
.node-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 2rem;
    z-index: 2000;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all var(--transition-base);
}

.node-detail.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.node-detail.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--color-red);
}

/* ===== Timeline ===== */
.timeline-section {
    overflow: hidden;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-track {
    position: relative;
    padding: 2rem 0;
}

.timeline-event {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-left: 4px solid var(--color-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.timeline-event:hover {
    background: var(--bg-hover);
    transform: translateX(8px);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Persons Section ===== */
.persons-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-body);
}

.search-input {
    flex: 1;
    min-width: 300px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.filter-select {
    cursor: pointer;
}

.persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.person-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.person-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.person-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.person-role {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.person-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(212, 168, 71, 0.1);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
}

.person-badge.guilty {
    background: rgba(139, 0, 0, 0.2);
    border-color: var(--color-red);
    color: var(--color-red);
}

.person-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.person-stat {
    flex: 1;
}

.person-stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
}

.person-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Evidence Section ===== */
.evidence-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
    background: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.evidence-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.evidence-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-blue);
}

.evidence-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.evidence-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.evidence-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.evidence-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.footer-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.footer-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

.modal-body {
    padding: 3rem;
    overflow-y: auto;
    max-height: 90vh;
}

/* ===== Animations ===== */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    from { width: 0; }
    to { width: 100%; }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

.fade-in {
    animation: fadeIn 0.8s ease both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
    
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .network-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .intro-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .verdict-title {
        font-size: 3.5rem;
    }
    
    .stats-grid,
    .charges-grid,
    .persons-grid,
    .evidence-grid {
        grid-template-columns: 1fr;
    }
    
    .network-container {
        height: 400px;
    }
    
    .persons-filters {
        flex-direction: column;
    }
    
    .search-input {
        min-width: 100%;
    }
}

/* ===== Print Styles ===== */
@media print {
    .main-nav,
    .nav-actions,
    .enter-button,
    .landing-intro,
    .search-overlay,
    .footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }
    
    .hero-section {
        background: white;
    }
    
    .stat-card,
    .charge-card,
    .person-card,
    .evidence-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .network-container {
        height: 600px;
    }
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-gold);
}

.text-red {
    color: var(--color-red);
}

.text-blue {
    color: var(--color-blue);
}

.font-mono {
    font-family: var(--font-mono);
}
