:root {
    --bg-dark: #0a0a0c;
    --bg-charcoal: #141517;
    --bg-lighter: #1d1e21;
    --text-main: #d9d9d9;
    --text-muted: #888;
    --accent-red: #c62828;
    --accent-red-hover: #e53935;
    --dark-green: #1a251a;
    --font-heading: 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle grain effect */
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-red);
    color: #fff;
    padding: 8px;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.section-padding { padding: 80px 0; }
.dark-bg { background-color: var(--bg-charcoal); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--accent-red);
    margin: 0 auto 30px auto;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    color: #fff;
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.4);
}

.btn-secondary {
    background-color: var(--bg-lighter);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #2a2b30;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid var(--text-muted);
}

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

.btn.disabled, .btn-outline.disabled, .social-link.disabled, a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    background: rgba(10, 10, 12, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

.logo img {
    height: 40px;
    width: auto;
}

.alpha-badge {
    position: absolute;
    top: -5px;
    right: -40px;
    background-color: var(--accent-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    margin-right: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-red);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a:focus::after {
    width: 100%;
}

.nav-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--text-muted);
}

.social-link:hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: var(--transition);
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-charcoal);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(10,10,12,0.2) 0%, rgba(10,10,12,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--accent-red);
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #bbb;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

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

/* QUICK FACTS */
.quick-facts {
    background-color: var(--accent-red);
    padding: 20px 0;
}

.facts-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.fact-item {
    text-align: center;
    color: #fff;
}

.fact-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
}

.fact-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* TRAILER SECTION */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(229, 57, 53, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-container iframe, .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 2px;
}

/* FEATURE SECTIONS */
.feature-row {
    display: flex;
    min-height: 500px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-charcoal);
    position: relative;
}

.feature-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.feature-row.reverse .feature-img::after {
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.world-bg { background: repeating-linear-gradient(45deg, var(--bg-charcoal), var(--bg-charcoal) 10px, var(--bg-dark) 10px, var(--bg-dark) 20px); }
.survival-bg { background: repeating-linear-gradient(-45deg, var(--bg-charcoal), var(--bg-charcoal) 10px, var(--bg-dark) 10px, var(--bg-dark) 20px); }
.inventory-bg { background: repeating-linear-gradient(45deg, #18191c, #18191c 10px, var(--bg-dark) 10px, var(--bg-dark) 20px); }
.infected-bg { background: repeating-linear-gradient(-45deg, #18191c, #18191c 10px, var(--bg-dark) 10px, var(--bg-dark) 20px); }
.conditions-bg { background: repeating-linear-gradient(45deg, var(--bg-charcoal), var(--bg-charcoal) 10px, var(--bg-dark) 10px, var(--bg-dark) 20px); }

.feature-content {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* PAGE HEADER */
.page-header {
    padding: 150px 0 60px;
    background: linear-gradient(to bottom, var(--bg-charcoal), var(--bg-dark));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--accent-red);
    letter-spacing: 2px;
    font-family: var(--font-heading);
}

/* GAME INFO (INFORMACJE.PHP) */
.info-block {
    background-color: var(--bg-charcoal);
    border-left: 4px solid var(--accent-red);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.info-block:hover {
    transform: translateX(10px);
}

.info-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.info-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 10px;
    list-style-type: square;
    color: var(--text-muted);
}

.info-content strong {
    color: var(--text-main);
}

/* UPDATES (AKTUALIZACJE.PHP) */
.updates-filters .btn-filter {
    padding: 8px 16px;
    background: var(--bg-lighter);
    color: var(--text-muted);
    margin: 5px;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.updates-filters .btn-filter.active, .updates-filters .btn-filter:hover {
    background: var(--accent-red);
    color: #fff;
}

.update-card {
    background-color: var(--bg-charcoal);
    padding: 30px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.update-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.update-date {
    color: var(--text-muted);
}

.update-category {
    font-weight: bold;
    letter-spacing: 1px;
}

.cat-world { color: #4caf50; }
.cat-gameplay { color: #2196f3; }
.cat-content { color: #ff9800; }
.cat-performance { color: #9c27b0; }
.cat-fix { color: #f44336; }
.cat-development { color: #00bcd4; }

.update-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.update-summary {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.update-content {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-left: 2px solid #555;
}

.btn-readmore {
    background: none;
    border: none;
    color: var(--accent-red);
    font-family: var(--font-heading);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.btn-readmore:hover {
    text-decoration: underline;
}

/* GALLERY (MEDIA.PHP) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ABOUT PROJECT (O-PROJEKCIE.PHP) */
.about-grid {
    display: flex;
    gap: 50px;
}

.about-content {
    flex: 2;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-sidebar {
    flex: 1;
}

.info-panel {
    background-color: var(--bg-charcoal);
    padding: 30px;
    border-top: 4px solid var(--accent-red);
}

.info-panel h3 {
    margin-bottom: 20px;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-val {
    font-weight: bold;
}

/* FAQ (FAQ.PHP) */
.faq-item {
    background-color: var(--bg-charcoal);
    margin-bottom: 15px;
    border-radius: 4px;
}

.faq-question {
    padding: 20px;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    margin: 0;
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
}

.faq-answer a {
    color: var(--accent-red);
    text-decoration: underline;
}

/* FOOTER */
.site-footer {
    background-color: var(--bg-charcoal);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.brand-col {
    flex: 2;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-muted);
    font-style: italic;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-col a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-info span {
    display: inline-block;
    margin-right: 15px;
}

/* ANIMATIONS */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
    }
    
    .feature-img::after {
        background: linear-gradient(to bottom, transparent, var(--bg-dark)) !important;
    }
    
    .feature-content {
        padding: 40px 20px;
    }
    
    .about-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 12, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        padding: 20px;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        margin-right: 0;
        margin-bottom: 30px;
        align-items: center;
        font-size: 1.5rem;
    }
    
    .nav-socials {
        justify-content: center;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title, .page-title {
        font-size: 2rem;
    }
    
    .facts-grid {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
