/* ============================================
   Disclosure 51 - Dark Theme Stylesheet
   Serious, professional UFO / UAP community aesthetic
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --border: #2a2a3a;
    --border-accent: #00ff9d33;
    --text-primary: #e8e8ed;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent: #00ff9d;
    --accent-dim: #00cc7a;
    --accent-glow: rgba(0, 255, 157, 0.15);
    --danger: #ff4d6a;
    --warning: #ffc857;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --radius: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --max-width: 1100px;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-dim);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    z-index: 9999;
    border-radius: var(--radius);
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon svg {
    display: block;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========== LAYOUT ========== */
#main-content {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.content-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    padding: 80px 20px 60px;
    text-align: center;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(0, 255, 157, 0.08) 0%, transparent 60%),
        var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0f;
}

.btn-primary:hover {
    background: var(--accent-dim);
    color: #0a0a0f;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== SECTION HEADERS ========== */
.section-header {
    margin-bottom: 32px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

/* ========== CARDS / GRID ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s ease;
}

.card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image svg {
    opacity: 0.3;
}

.card-body {
    padding: 20px;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-meta .tag {
    color: var(--accent);
    font-weight: 500;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card h3 a {
    color: var(--text-primary);
}

.card h3 a:hover {
    color: var(--accent);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ========== NEWS LIST ========== */
.news-list {
    list-style: none;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-display);
    line-height: 1.1;
}

.news-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.news-content h3 a {
    color: var(--text-primary);
}

.news-content h3 a:hover {
    color: var(--accent);
}

.news-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.timeline-item h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.timeline-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== STATS ========== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== PAGE TITLE ========== */
.page-header {
    padding: 48px 20px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 157, 0.05) 0%, transparent 50%);
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 48px 20px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-meta {
    margin-top: 6px;
}

.footer-meta a {
    color: var(--text-muted);
}

.footer-meta a:hover {
    color: var(--accent);
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        padding: 12px 16px;
        font-size: 1rem;
        text-align: center;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 48px 16px 40px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .container {
        padding: 28px 16px;
    }

    .content-box {
        padding: 20px 16px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        gap: 8px;
    }

    .news-date {
        width: auto;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .news-date .day {
        font-size: 1.1rem;
        display: inline;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .footer-col li {
        margin-bottom: 0;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Center everything on mobile */
    .section-header,
    .page-header,
    .hero {
        text-align: center;
    }

    .card-body,
    .news-content {
        text-align: center;
    }

    .card-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-info {
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
}
