/* BLACKBOX UFO Database - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --purple-primary: #8b5cf6;
    --purple-secondary: #a855f7;
    --purple-light: #c4b5fd;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #f59e0b;
    --border: #374151;
    --border-light: #4b5563;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(196, 181, 253, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--purple-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::after {
    content: '// DATABASE';
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--purple-light);
}

.nav-link.active {
    color: var(--purple-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--purple-primary);
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 6rem;
}

.hero h1, .hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 50%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 0.9;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Page Titles */
.page-title {
    color: var(--purple-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Section Titles */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--purple-primary);
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-secondary));
    border-radius: 2px;
}

/* Stats */
.stats, .quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.stat, .fact-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat:hover, .fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
    border-color: var(--purple-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--purple-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label, .fact-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

/* Cards */
.card, .content-section, .article-card, .report-card, .category-card {
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before, .article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover, .article-card:hover, .report-card:hover, .category-card:hover {
    border-color: var(--purple-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.card:hover::before, .article-card:hover::before {
    opacity: 1;
}

.card-title, .article-title, .report-title, .category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-title, .category-title {
    color: var(--purple-primary);
    font-size: 1.5rem;
}

.card-subtitle, .report-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.card-content, .article-description, .report-description, .category-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Grid Layouts */
.grid, .article-grid, .reports-grid, .document-categories {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.grid-2, .article-grid { 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
}

.grid-3 { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.grid-4 { 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

.reports-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.document-categories {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    margin-bottom: 3rem;
}

/* Buttons */
.btn, .view-btn, .browse-btn {
    background: var(--purple-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover, .view-btn:hover, .browse-btn:hover {
    background: var(--purple-light);
    color: var(--bg-primary);
}

/* Status Banner */
.status-banner, .highlight-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid var(--purple-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.status-banner::before, .highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple-primary);
    margin-bottom: 1rem;
}

.status-details {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Progress Bar */
.progress-bar {
    background: var(--bg-tertiary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-secondary));
    height: 100%;
    width: 11.0%;
    border-radius: 4px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Links */
a {
    color: var(--purple-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--purple-primary);
}

.article-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--purple-light);
}

/* Lists */
ul, ol {
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.document-list {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.document-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.document-list li::before {
    content: '▶';
    color: var(--purple-primary);
    position: absolute;
    left: 0;
}

li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

li strong {
    color: var(--purple-light);
    font-weight: 600;
}

li em {
    color: var(--text-secondary);
    font-style: italic;
}

/* FAQ Question Styling */
.question-title {
    font-size: 1.2rem;
    color: var(--purple-light);
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border);
    border-left: 4px solid var(--purple-primary);
    border-radius: 8px;
}

/* Article Meta */
.article-meta, .report-stats, .category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    gap: 1rem;
    flex-wrap: wrap;
}

.report-stats, .category-stats {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.article-type {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--purple-primary);
    color: white;
    border-color: var(--purple-primary);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--purple-primary), var(--purple-secondary));
}

.timeline-event {
    position: relative;
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -2.2rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--purple-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

/* Classification Notice */
.classification-notice {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid var(--purple-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

/* Update Indicator */
.update-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--purple-primary);
}

.footer-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

/* Featured Documents */
.featured-documents {
    margin-top: 3rem;
}

.featured-title {
    color: var(--purple-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.featured-doc {
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.featured-doc:hover {
    border-color: var(--purple-primary);
}

.doc-title {
    color: var(--purple-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.doc-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.doc-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0 4rem;
    }

    .stats, .quick-facts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-grid, .reports-grid {
        grid-template-columns: 1fr;
    }

    .document-categories {
        grid-template-columns: 1fr;
    }

    .articles-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-event::before {
        left: -1.7rem;
    }

    .filters {
        justify-content: center;
    }
}

.mega-faq-directory {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--purple-primary);
}

.mega-faq-directory h2 {
    text-align: center;
    color: var(--purple-primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.faq-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-column h3 {
    color: var(--purple-secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--purple-primary);
    font-size: 1.2rem;
}

.faq-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.faq-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.faq-links a:hover {
    background: var(--bg-tertiary);
    color: var(--purple-light);
    border-left-color: var(--purple-primary);
    transform: translateX(5px);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .header, .nav-link, .status-banner::before, .update-indicator {
        display: none;
    }
}