/* Import IBM Plex Serif */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* Variables */
:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --muted-color: #a0a0a0;
    --accent-color: #ffffff;
    --border-color: #333333;
    --max-width: 680px;
}

/* Base Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "IBM Plex Serif", Georgia, serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 300;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0 20px;
    position: relative;
}

/* Subtle Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 1.2s ease-in-out;
}

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

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 0 100px;
}

/* Header & Navigation */
.site-header {
    margin-bottom: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    position: relative;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-color);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* Typography */
.title-section {
    margin-bottom: 50px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.author-subtitle {
    font-size: 1.1rem;
    color: var(--muted-color);
    font-style: italic;
    margin-bottom: 0;
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    margin-top: 50px;
}

p {
    margin-bottom: 25px;
    color: var(--text-color);
}

.manifesto-content p:first-of-type::first-letter {
    font-size: 3.5rem;
    float: left;
    margin-right: 12px;
    line-height: 1;
    margin-top: -6px;
    color: var(--accent-color);
}

/* Video Player */
.video-container {
    margin: 60px 0;
    width: 100%;
}

video {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #000; /* Dark background while loading */
    display: block;
}

.video-caption {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--muted-color);
    text-align: center;
    font-style: italic;
}

/* Updates Timeline */
.timeline {
    position: relative;
    margin-top: 40px;
}

.update-entry {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.update-entry:last-child {
    border-bottom: none;
}

.update-meta {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.update-day {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}

.update-date {
    font-size: 0.9rem;
    color: var(--muted-color);
    font-style: italic;
}

.update-media {
    margin-top: 25px;
}

.update-media img, .update-media video {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* About Page */
.about-section {
    margin-top: 20px;
}

.about-content {
    margin-top: 30px;
}

.about-content p {
    font-size: 1.05rem;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    body {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .container {
        padding: 20px 0 60px;
    }

    .site-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 50px;
        border-bottom: none;
    }

    .lang-switcher {
        position: static;
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-top: 30px;
        margin-bottom: 40px;
        font-size: 1.1rem;
        opacity: 0.8;
    }

    .site-title {
        margin-bottom: 25px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
    }

    h1 {
        font-size: 2.2rem;
    }
    
    .manifesto-content p:first-of-type::first-letter {
        font-size: 3rem;
        margin-top: -4px;
        margin-right: 10px;
    }
}

/* Language Switcher & Display Logic */
body.lang-en [lang="pl"] {
    display: none !important;
}

body.lang-pl [lang="en"] {
    display: none !important;
}

.lang-switcher {
    position: absolute;
    right: 0;
    top: -40px;
    font-size: 0.75rem;
    color: var(--muted-color);
    display: flex;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lang-switcher:hover {
    opacity: 1;
}

.lang-switcher a {
    color: var(--muted-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-switcher a:hover {
    color: var(--accent-color);
}

.lang-switcher a.active {
    color: var(--accent-color);
    font-weight: 600;
}
