/* --- CORE VARIABLES (RED/DARK SCHEME) --- */
:root {
    --primary-red: #a80000; 
    --dark-bg: #050505;
    --text-color: #e0e0e0;
    --glitch-color: #eb1111; /* Piros/Glitch szín */
    --inventory-border: #ff0a0a; 
    --logo-red: #cc0000; 
    
    /* ÚJ VÁLTOZÓK A VILÁGOS KÁRTYÁKHOZ */
    --feature-card-bg: #e0e0e0; /* Törtfehér háttér */
    --feature-card-border: #b0b0b0; /* Világosabb szürke keret */
    --feature-card-text: #333333; /* Sötétebb szöveg a kontraszt miatt */
    --feature-card-title-border: #888888; /* Szürke aláhúzás a címnek */
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Courier Prime', monospace;
    overflow-x: hidden; 
    cursor: crosshair;
}

/* --- FX LAYERS (Film Grain, Scanlines, Vignette) --- */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 999; 
    opacity: 0.2; 
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjMiIGRpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuMDUiLz48L2Z2ZyE+');
    animation: noise 0.5s steps(5) infinite;
}

.vignette { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    box-shadow: 0 0 80px rgba(0,0,0,0.7) inset; 
    pointer-events: none; z-index: 998; 
}

.scanlines { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.03) 50%); 
    background-size: 100% 2px;
    pointer-events: none; z-index: 997;
}

@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    50% { transform: translate(1%, 2%); }
    90% { transform: translate(-2%, 1%); }
}

/* --- NAVIGATION --- */
nav { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 2rem 4rem; 
    position: fixed; 
    width: 100%; 
    z-index: 100; 
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); 
    transition: transform 0.3s ease-out;
}

/* Navigáció elrejtése a képernyő tetején (görgetés lefelé) */
nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-links a { 
    /* ÁLLANDÓ OUTLINE STÍLUS (Szürke) */
    color: #888; 
    border: 1px solid #555;
    padding: 0.5rem 1rem; 
    box-shadow: 0 0 5px rgba(136, 136, 136, 0.2); 
    
    text-decoration: none; 
    margin-left: 2rem; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    transition: color 0.3s, text-shadow 0.3s, border 0.3s, padding 0.3s, box-shadow 0.3s, transform 0.3s;
}

/* Hover effektus: csak nagyítás */
.nav-links a:hover { 
    transform: scale(1.1); 
    text-shadow: 0 0 5px #fff; 
    color: #fff; 
}


/* --- ZENE KI/BEKAPCSOLÓ GOMB STÍLUS --- */
.music-toggle-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 0.5rem 1rem;
    margin-left: 2rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

/* Állapotjelző - Zene BE (aktív) */
.music-toggle-btn.active {
    border-color: var(--primary-red);
    color: var(--primary-red);
    box-shadow: 0 0 5px var(--primary-red);
}

/* Állapotjelző - Zene BE (aktív) - Hover */
.music-toggle-btn.active:hover {
    box-shadow: 0 0 10px var(--primary-red), 0 0 20px rgba(255, 0, 0, 0.2);
    color: #fff;
    border-color: #fff;
}

/* Állapotjelző - Zene KI (inaktív) */
.music-toggle-btn:not(.active):hover {
    border-color: #fff;
    color: #fff;
}

/* --- HERO SECTION --- */
header { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    position: relative;
    overflow: hidden; 
}

h1 {
    font-family: 'Cinzel', serif; font-size: 6vw; text-transform: uppercase;
    letter-spacing: 0.2em; color: #fff; margin-bottom: 0.5rem; position: relative;
    text-shadow: 0 0 30px rgba(0,0,0,0.9); animation: glitch-text 5s infinite alternate;
    text-align: center;
}
h1 span { color: var(--primary-red); display: block; font-size: 0.5em; letter-spacing: 0.5em; margin-top: 10px;}

.location-tag { font-size: 1rem; color: #666; letter-spacing: 5px; text-transform: uppercase; margin-top: 1rem; border-top: 1px solid #333; padding-top: 1rem; }

/* Megjelenési Dátum Stílusa */
.release-date {
    margin-top: 3rem; 
    padding: 1rem 3rem; 
    
    background: transparent;
    border: 2px solid var(--primary-red); 
    color: var(--primary-red);
    font-family: 'Courier Prime', monospace; 
    font-size: 1.2rem;
    text-transform: uppercase; 
    letter-spacing: 4px; 
    
    box-shadow: 0 0 15px var(--primary-red);
}

/* --- HERO LÁBLÉC SÁV (Ikonok) --- */
.hero-footer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    z-index: 50;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    border-top: 1px solid rgba(255, 0, 0, 0.1);
}

/* Platform ikonok (Steam, Itch.io) */
.platform-icons, .social-icons {
    display: flex;
    align-items: center;
    font-size: 1.1rem; 
    letter-spacing: 1px;
}

/* FIX: Térköz hozzáadása a platform ikonok közé */
.platform-icons {
    gap: 2.5rem; /* Térköz a Steam és Itch.io között */
}

.platform-item {
    color: #888;
    /* margin-right: 2.5rem; <--- ELTÁVOLÍTVA: a gap kezeli */
}

.platform-item i {
    margin-right: 0.7rem;
    font-size: 1.6rem; 
    vertical-align: middle;
}

/* Social ikonok (Jobb oldalon) */
.social-icons {
    gap: 1.8rem; 
}

.social-icons a {
    color: #444;
    font-size: 1.6rem; 
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-red);
}

.follow-text {
    color: #666;
    margin-right: 1.5rem;
    font-size: 1rem; 
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

/* --- BACKGROUND SLIDER CSS (5 SECOND CYCLE) --- */
.bg-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; }

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: grayscale(100%) contrast(120%) brightness(0.35) sepia(20%) hue-rotate(-20deg); 
    opacity: 0; transform: scale(1);
    
    animation: imageCycle 15s infinite linear;
}

/* --- KÉPEK BEÁLLÍTÁSA (Cseréld le a saját útvonalaidra: 'assets/kep1.png') --- */
.slide-1 {
    background-image: url('kép1.png'); 
    animation-delay: 0s; 
}
.slide-2 {
    background-image: url('kép2.png'); 
    animation-delay: 5s; 
}
.slide-3 {
    background-image: url('kép3.png');
    animation-delay: 10s;
}

/* --- AZ 5 MP-ES VÁLTÁS ANIMÁCIÓJA --- */
@keyframes imageCycle {
    0% { opacity: 0; transform: scale(1); }
    6.66% { opacity: 1; }  
    33.33% { opacity: 1; } 
    40% { opacity: 0; transform: scale(1.15); } 
    100% { opacity: 0; transform: scale(1.15); }
}

/* --- STORY SECTION --- */
section.story { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    padding: 0; 
    min-height: 100vh; 
    background-color: #f0f0f0; 
    color: #333; 
    border-top: 1px solid #ccc; 
    border-bottom: 1px solid #ccc; 
    gap: 0; 
    flex-wrap: nowrap; 
    overflow: hidden; 
}

.story-image-container {
    flex: none; 
    width: 50%; /* Kép szélessége 50% */
    height: 100vh; 
    position: relative; 
    left: 0; 
    
    animation: imageSlideInFinal 1.5s ease-out forwards, imageHoverFinal 4s ease-in-out 1.5s infinite alternate;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none; 
    box-shadow: 5px 0 20px rgba(0,0,0,0.5); 
    filter: grayscale(20%) contrast(110%); 
}

/* Kép bemozgatása és mozgása animációk (KILÓGÁS NÉLKÜL) */
@keyframes imageSlideInFinal {
    0% { 
        transform: translateX(-100%); 
        box-shadow: none;
    }
    100% { 
        transform: translateX(0); /* Pontosan a 0%-ra beérkezik */
        box-shadow: 5px 0 20px rgba(0,0,0,0.5);
    }
}

@keyframes imageHoverFinal {
    0% { transform: translateY(0) translateX(0); } 
    100% { transform: translateY(-20px) translateX(0); } 
}

/* --- ELVÁLASZTÓ VONAL STÍLUSA --- */
.story-divider {
    width: 10px; /* Szélesség a vonalnak */
    height: 100vh; 
    background-color: #000; 
    position: relative;
    z-index: 5; 
    box-shadow: 0 0 5px rgba(0,0,0,0.7); 
    
    background-image: linear-gradient(rgba(0,0,0,0.8) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.8) 100%);
    border-left: 1px solid #222; 
    border-right: 1px solid #222; 
}
/* Kisebb, "mechanikus" díszítés hozzáadása */
.story-divider::before,
.story-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px; 
    background-color: #1a1a1a;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}
.story-divider::before {
    top: 20%;
    background-image: repeating-linear-gradient(90deg, #1a1a1a, #1a1a1a 1px, transparent 1px, transparent 3px); 
    background-size: 100% 2px;
}
.story-divider::after {
    bottom: 20%;
    background-image: repeating-linear-gradient(90deg, #1a1a1a, #1a1a1a 1px, transparent 1px, transparent 3px); 
    background-size: 100% 2px;
}


.story-content {
    flex: 1; 
    max-width: 50%; /* Max. 50% szélesség */
    padding: 0 3%; 
    z-index: 10; 
    position: relative; 
}

.report-header { 
    font-size: 0.9rem; 
    color: #666; 
    margin-bottom: 2rem; 
    border-bottom: 1px dashed #999; 
    padding-bottom: 1rem; 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 1rem; 
}

.typewriter { 
    font-size: 1.4rem; 
    line-height: 1.8; 
    color: #333; 
}
.cursor { 
    display: inline-block; 
    width: 10px; 
    height: 1.4rem; 
    background-color: var(--primary-red); 
    animation: blink 1s infinite; 
    vertical-align: text-bottom; 
}

/* --- SHOWCASE SZEKCIÓ (CÍM ÉS HÁTTÉR) --- */
section.showcase {
    /* Koszos, texturált háttér (csak itt) */
    background-color: #1e1e1e;
    /* Zaj/Textúra hozzáadása (koszos textúra) */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuODUuODUiIG51bU9jdGF2ZXM9IjIiIGRpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9IjAuMDUiLz48L2Z2ZyI+'), linear-gradient(145deg, #181818 0%, #333333 50%, #181818 100%);
    background-blend-mode: overlay; 

    padding: 4rem 0; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: center;
    color: #ccc;
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
    overflow: hidden; 
}

/* SHOWCASE CÍM (JAVÍTOTT: ALAP LÁTHATATLAN) */
.showcase-header {
    font-family: 'Cinzel', serif;
    color: #b0b0b0; 
    margin-bottom: 4rem;
    letter-spacing: 8px; 
    text-transform: uppercase;
    font-size: 2.2rem; 
    position: relative;
    overflow: hidden;
    width: 0ch; 
    white-space: nowrap;
    border-right: none; 
    margin-left: auto;
    margin-right: auto;
    transition: width 3s steps(15) forwards, border-right 0s 3s; 
}
/* Az animáció, ami lefut, ha az osztályt a JS hozzáadja */
.showcase-header.animate-in {
    width: 15ch; 
    border-right: 2px solid #b0b0b0; 
    animation: typeHeader 3s steps(15) forwards, 
               blink-cursor 0.7s infinite step-end;
}
@keyframes typeHeader {
    from { width: 0; }
    to { width: 15ch; } 
}
@keyframes blink-cursor {
    50% { border-right-color: transparent; }
}

/* Karusszel konténer */
.card-carousel-container {
    max-width: 100vw;
    overflow-x: hidden; 
    scroll-behavior: smooth; 
    padding-bottom: 3rem;
    position: relative;
}

/* KÁRTYÁK KÖZÖTTI ELVÁLASZTÓ ELTÁVOLÍTVA */
.card-carousel-container::after {
    content: none; 
}


.card-carousel {
    display: flex;
    gap: 60px; 
    padding: 0 calc(50vw - 350px); 
    transition: transform 0.5s ease-in-out;
}

/* Kártya stílusok */
.showcase-card {
    flex: 0 0 auto; 
    width: 700px; 
    height: 400px; 
    position: relative;
    background: #000;
    border: 1px solid #555;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
    transition: filter 0.3s;
}

/* Kártya infó réteg */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    justify-content: flex-start; 
    align-items: center;
}

.card-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem; 
    color: #fff;
    margin: 0;
    margin-left: 20px; 
}

.card-id {
    position: static; 
    color: #ccc;
    font-size: 1.1rem; 
    letter-spacing: 2px;
    margin-right: 20px;
    padding: 5px 0;
    border-right: 1px solid #777;
    padding-right: 20px;
}

/* --- NAVIGÁCIÓS GOMBOK ÉS KIJELZŐ STÍLUSAI --- */
.carousel-nav {
    margin-top: 2rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.slide-counter {
    font-size: 1.5rem; 
    color: #888;
    letter-spacing: 2px;
}

.nav-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 0.8rem 1.2rem; 
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    border-color: var(--primary-red);
    color: var(--primary-red);
    box-shadow: 0 0 5px var(--primary-red);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}


/* --- FEATURES SECTION: STACKED CARD VIEW --- */
section.features { 
    padding: 8rem 5%; 
    min-height: 600px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: #050505; 
}
/* Features cím hozzáadása vizuális elválasztóként */
section.features::before {
    content: "SYSTEM MODULES";
    font-family: 'Cinzel', serif;
    color: #fffdfd;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.features-stack-container {
    width: 100%;
    max-width: 800px;
    height: 450px; 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kártya stílusok a Stackben (VILÁGOS, TEXTURÁLT) */
.feature-card {
    opacity: 1; 
    transform: none;
    clip-path: none; 
    
    width: 700px; 
    height: 400px;
    position: absolute;
    top: 0;
    left: 50%;
    
    /* ÚJ HÁTTÉR SZÍN ÉS TEXTÚRA */
    background: var(--feature-card-bg); /* Törtfehér/világosszürke */
    /* Finom zaj textúra hozzáadása */
    background-image: 
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MTIiIGhlaWdodD0iNTEyIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjIiIGRpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSIpIG9wYWNpdHk9IjAuMTUiLz48L2Z2ZyI+'), /* Finom zaj */
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px), /* Finom rács */
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px); /* Finom rács */
    background-size: 100% 100%, 20px 20px, 20px 20px;
    background-blend-mode: overlay, multiply, multiply; /* Textúra keverési módok */


    border: 1px solid var(--feature-card-border); /* Világosabb keret */
    padding: 2.5rem; 
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); /* Lágyabb árnyék */
    
    transform: translateX(-50%) scale(0.9);
    z-index: 1;
}

.feature-card h3 { 
    font-family: 'Cinzel', serif; 
    margin-bottom: 1.5rem; 
    color: var(--feature-card-text); /* Sötétebb cím szöveg */
    font-size: 1.8rem;
    border-bottom: 1px solid var(--feature-card-title-border); /* Szürke aláhúzás */
    padding-bottom: 10px; 
}

.feature-card p { 
    color: var(--feature-card-text); /* Sötétebb szöveg */
    font-size: 1rem; 
    line-height: 1.6; 
}

/* --- FOOTER --- */
footer { 
    text-align: center; 
    padding: 3rem 2rem; 
    color: #444; 
    font-size: 0.8rem; 
    background: #020202; 
    border-top: 1px solid #111; 
}
.footer-icon-placeholder { 
    width: 60px; 
    height: 60px; 
    margin: 0 auto 1rem; 
    content: ''; 
}
.footer-icon-placeholder img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}
.warning { 
    color: var(--primary-red); 
    font-weight: bold; 
    margin-top: 0.5rem; 
}

/* --- ANIMATIONS --- */
@keyframes glitch-text {
    0% { text-shadow: 3px 0px var(--primary-red), -3px 0px var(--glitch-color); }
    2% { text-shadow: -3px 0px var(--primary-red), 3px 0px var(--glitch-color); }
    4% { text-shadow: none; }
    100% { text-shadow: none; }
}
@keyframes blink-cursor {
    50% { border-right-color: transparent; }
}

/* --- MEDIA QUERIES (Reszponzivitás) --- */
@media (max-width: 900px) {
    .showcase-card {
        width: 80vw;
        height: 50vw;
        min-height: 250px;
    }
    .card-carousel {
        padding: 0 10vw; 
    }
    .story-image-container {
        width: 100%; 
        height: 50vh;
        transform: translateX(0); 
        margin-bottom: 2rem;
        animation: imageSlideInSmall 1.5s ease-out forwards;
    }
    @keyframes imageSlideInSmall {
        0% { transform: translateX(-100%); box-shadow: none; }
        100% { transform: translateX(0); box-shadow: 5px 0 20px rgba(0,0,0,0.5); }
    }
    @keyframes imageHoverFinal { 
        0% { transform: translateY(0) translateX(0); } 
        100% { transform: translateY(0) translateX(0); } 
    }
    .story-divider { display: none; } 

    .story-content {
        max-width: 100%;
        padding: 0 5%;
    }

    /* Features Stack (mobil) */
    .features-stack-container {
        height: 450px;
    }
    .feature-card {
        width: 90vw;
        height: 400px;
        left: 50%;
        transform: translateX(-50%) !important; 
    }
}
@media (max-width: 768px) {
    nav {
        justify-content: center;
        padding: 1rem 2rem;
    }
    
    .hero-footer-bar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 2rem;
    }
    .platform-icons {
        margin-bottom: 0.5rem;
        /* Visszaállítás flex-re, ha a fő konténer flex-direction: column */
        flex-direction: column; 
        gap: 0.5rem;
    }
    .social-icons {
        justify-content: center;
        width: 100%;
    }
    .follow-text {
        display: none;
    }

    section.story {
        flex-direction: column; 
        padding: 4rem 5%;
        gap: 2rem;
        min-height: auto;
    }
    .story-image-container {
        max-width: 100%; 
    }
}