/* CSS Variables for Dark Minimalist Theme */
:root {
    --primary-bg: #0D0D0D;
    --text-primary: #EAE7DC;
    --text-secondary: rgba(234, 231, 220, 0.7);
    --accent-primary: #9BAF87;
    --accent-secondary: #6F8A6D;
    --card-bg: rgba(234, 231, 220, 0.03);
    --border-color: rgba(234, 231, 220, 0.1);
    --hover-bg: rgba(234, 231, 220, 0.08);
    --error-color: #E74C3C;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --glow-color: rgba(155, 175, 135, 0.3);
    --newspaper-light: #eae7dc;
    --newspaper-dark: #0d0d0d;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
    position: relative;
}

/* Animated Background for All Pages */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(155, 175, 135, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(111, 138, 109, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(155, 175, 135, 0.07) 0%, transparent 60%);
    animation: backgroundDrift 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--accent-primary);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-link.active::after {
    width: 100%;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

.particle-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle-2 {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 30s;
}

.particle-3 {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle-4 {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 28s;
}

.particle-5 {
    left: 50%;
    animation-delay: 8s;
    animation-duration: 26s;
}

.particle-6 {
    left: 60%;
    animation-delay: 10s;
    animation-duration: 24s;
}

.particle-7 {
    left: 70%;
    animation-delay: 12s;
    animation-duration: 32s;
}

.particle-8 {
    left: 80%;
    animation-delay: 14s;
    animation-duration: 20s;
}

.particle-9 {
    left: 90%;
    animation-delay: 16s;
    animation-duration: 27s;
}

.particle-10 {
    left: 15%;
    animation-delay: 18s;
    animation-duration: 29s;
}

.particle-11 {
    left: 25%;
    animation-delay: 20s;
    animation-duration: 23s;
}

.particle-12 {
    left: 35%;
    animation-delay: 22s;
    animation-duration: 31s;
}

.particle-13 {
    left: 45%;
    animation-delay: 24s;
    animation-duration: 25s;
}

.particle-14 {
    left: 55%;
    animation-delay: 26s;
    animation-duration: 33s;
}

.particle-15 {
    left: 65%;
    animation-delay: 28s;
    animation-duration: 21s;
}

.particle-16 {
    left: 75%;
    animation-delay: 30s;
    animation-duration: 26s;
}

.particle-17 {
    left: 85%;
    animation-delay: 32s;
    animation-duration: 30s;
}

.particle-18 {
    left: 95%;
    animation-delay: 34s;
    animation-duration: 24s;
}

.particle-19 {
    left: 5%;
    animation-delay: 36s;
    animation-duration: 28s;
}

.particle-20 {
    left: 12%;
    animation-delay: 38s;
    animation-duration: 22s;
}

.particle-21 {
    left: 22%;
    animation-delay: 40s;
    animation-duration: 26s;
}

.particle-22 {
    left: 32%;
    animation-delay: 42s;
    animation-duration: 30s;
}

.particle-23 {
    left: 42%;
    animation-delay: 44s;
    animation-duration: 24s;
}

.particle-24 {
    left: 52%;
    animation-delay: 46s;
    animation-duration: 28s;
}

.particle-25 {
    left: 62%;
    animation-delay: 48s;
    animation-duration: 32s;
}

/* Header Particles */
.header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.header-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: headerFloat 15s infinite linear;
}

.header-particle-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.header-particle-2 {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 22s;
}

.header-particle-3 {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 16s;
}

.header-particle-4 {
    left: 40%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.header-particle-5 {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 24s;
}

.header-particle-6 {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 19s;
}

.header-particle-7 {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 21s;
}

.header-particle-8 {
    left: 80%;
    animation-delay: 7s;
    animation-duration: 17s;
}

.header-particle-9 {
    left: 90%;
    animation-delay: 8s;
    animation-duration: 23s;
}

.header-particle-10 {
    left: 15%;
    animation-delay: 9s;
    animation-duration: 25s;
}

.header-particle-11 {
    left: 25%;
    animation-delay: 10s;
    animation-duration: 18s;
}

.header-particle-12 {
    left: 35%;
    animation-delay: 11s;
    animation-duration: 22s;
}

.header-particle-13 {
    left: 45%;
    animation-delay: 12s;
    animation-duration: 16s;
}

.header-particle-14 {
    left: 55%;
    animation-delay: 13s;
    animation-duration: 20s;
}

.header-particle-15 {
    left: 65%;
    animation-delay: 14s;
    animation-duration: 24s;
}

/* Animations */
@keyframes backgroundDrift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-20px) translateY(-10px);
    }
    50% {
        transform: translateX(20px) translateY(-20px);
    }
    75% {
        transform: translateX(-10px) translateY(10px);
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes headerFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes subtleShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-15px) translateY(-5px);
    }
    50% {
        transform: translateX(15px) translateY(-15px);
    }
    75% {
        transform: translateX(-5px) translateY(5px);
    }
}

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

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-15px, -60px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translate(30px, -90px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes floatPageParticle {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--rotation, 0deg));
        opacity: 0.4;
    }
    25% {
        transform: translate(25px, -35px) rotate(calc(var(--rotation, 0deg) + 90deg));
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, -70px) rotate(calc(var(--rotation, 0deg) + 180deg));
        opacity: 0.55;
    }
    75% {
        transform: translate(35px, -45px) rotate(calc(var(--rotation, 0deg) + 270deg));
        opacity: 0.8;
    }
}

@keyframes diagonalShift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    33% {
        transform: translate(15px, -20px) rotate(0.5deg);
        opacity: 0.8;
    }
    66% {
        transform: translate(-10px, 15px) rotate(-0.5deg);
        opacity: 1.2;
    }
}

/* Page-specific styles */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(13, 13, 13, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Bias Tags - Used across multiple pages */
.bias-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid;
    background: transparent;
}

.bias-tag.mixed {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.bias-tag.unknown {
    border-color: #555;
    color: #555;
}

.bias-tag.left-lean,
.bias-tag.left {
    border-color: #3498DB;
    color: #3498DB;
}

.bias-tag.right-lean,
.bias-tag.right {
    border-color: #E74C3C;
    color: #E74C3C;
}

.bias-tag.neutral,
.bias-tag.center {
    border-color: #555;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .page-container {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
}
