@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Poppins:wght@300;400;600&family=Rajdhani:wght@500;700&display=swap');

:root {
    --neon-blue: #00d2ff; --neon-purple: #9d50bb;
    --danger: #ff4757; --success: #2ed573;
    --dark-bg: #060b23; --card-bg: #111a36;
    --hacker-green: #00ff41;
    --gold: #ffd700;
}

body {
    font-family: 'Poppins', sans-serif; margin: 0; padding: 0;
    background-color: var(--dark-bg); color: #e0e0e0; transition: 0.5s;
    overflow-x: hidden;
}

.hacker-mode {
    filter: sepia(100%) hue-rotate(90deg) brightness(80%) contrast(120%) !important;
    background-color: #001000 !important;
}

.cyber-header {
    height: 450px; display: flex; align-items: center; justify-content: space-around;
    padding: 0 2%; border-bottom: 3px solid var(--neon-blue);
    background: linear-gradient(to bottom, #0a192f, #060b23);
}
.header-symbols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 2.5rem; }
.h-sym { cursor: pointer; transition: 0.3s; filter: drop-shadow(0 0 10px var(--neon-blue)); }
.h-sym:hover { transform: scale(1.3) rotate(15deg); filter: brightness(1.5) drop-shadow(0 0 20px var(--neon-blue)); }
.header-main h1 { font-family: 'Orbitron', sans-serif; font-size: 3.5rem; text-shadow: 0 0 30px var(--neon-blue); margin: 0; text-align: center; }

/* --- BURAYI TAMAMEN DEĞİŞTİR --- */
#content-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--dark-bg); 
    z-index: 20000; 
    display: none;
    flex-direction: column; 
    align-items: center; 
    
    /* KAYDIRMAYI AKTİF EDEN KISIM */
    justify-content: flex-start !important; 
    overflow-y: auto !important; 
    padding: 50px 10px;
    box-sizing: border-box;
}

.info-card-full {
    max-width: 900px; 
    width: 100%; 
    background: var(--card-bg);
    border: 3px solid var(--neon-blue); 
    border-radius: 30px;
    padding: 50px; 
    text-align: center; 
    box-shadow: 0 0 50px rgba(0,210,255,0.3);
    
    /* EKSTRA BOŞLUKLAR */
    height: auto !important; 
    margin-bottom: 50px !important; 
    position: relative;
}
/* --- DÜZELTME BİTTİ --- */
.back-btn {
    margin-top: 30px; padding: 15px 40px; background: var(--neon-purple);
    color: white; border: none; border-radius: 15px; cursor: pointer;
    font-family: 'Orbitron'; font-weight: bold; transition: 0.3s;
}
.back-btn:hover { transform: scale(1.1); box-shadow: 0 0 20px var(--neon-purple); }

.power-bar { 
    display: flex; 
    justify-content: center; 
    align-items: center; /* İkonların dikey hizada kalmasını sağlar */
    gap: 35px; 
    margin: -60px 0 50px; 
    position: relative; 
    z-index: 1000; 
}

.power-icon { 
    font-size: 4.5rem; 
    cursor: pointer; 
    transition: 0.4s; 
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); 
    line-height: 1; /* Emoji kaymalarını engeller */
}
.power-icon:hover { transform: scale(1.2); filter: drop-shadow(0 0 25px var(--neon-blue)); }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
    background: var(--card-bg); border-radius: 25px; overflow: hidden;
    border: 2px solid rgba(0,210,255,0.2); transition: 0.4s; cursor: pointer; position: relative;
}
.card:hover { transform: translateY(-10px); border-color: var(--neon-blue); box-shadow: 0 0 30px rgba(0,210,255,0.3); }
.card img { width: 100%; height: 250px; object-fit: cover; border-bottom: 2px solid var(--neon-blue); opacity: 0.8; }
.card-icon-overlay { position: absolute; top: 180px; right: 20px; font-size: 3rem; filter: drop-shadow(0 0 10px var(--neon-blue)); }

.panel { background: rgba(10, 20, 50, 0.98); border-radius: 35px; padding: 40px; display: none; border: 3px solid var(--neon-blue); margin-top: 30px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.opt-btn { padding: 15px; border: 2px solid var(--neon-blue); background: none; color: white; border-radius: 12px; cursor: pointer; font-size: 1.1rem; transition: 0.3s; width: 100%; text-align: left; }
.opt-btn:hover { background: rgba(0, 210, 255, 0.1); border-color: white; }
.correct { background: var(--success) !important; border-color: white !important; color: black !important; font-weight: bold; }
.wrong { background: var(--danger) !important; border-color: white !important; color: black !important; font-weight: bold; }

.info-section { 
    margin-bottom: 25px; padding: 20px; 
    border-left: 5px solid var(--neon-blue); 
    background: rgba(255,255,255,0.03); 
    border-radius: 0 20px 20px 0;
    text-align: left;
}
.info-section h4 { margin: 0 0 10px 0; color: var(--neon-blue); font-family: 'Orbitron'; display: flex; align-items: center; gap: 10px; }
.extra-info {
    margin-top: 15px; padding: 10px; background: rgba(157, 80, 187, 0.1);
    border-radius: 10px; border: 1px dashed var(--neon-purple); font-size: 0.95rem; color: #ccc;
}

/* OYUN KATMANI - KRİTİK DÜZELTME */
#game-overlay {
    position: fixed; top:0; left:0; width:100vw; height:100vh; 
    background: #ffffff; /* Siyah yerine beyaz yapıldı */
    z-index: 99999; display: none; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden;
}

#gameCanvas {
    background: #ffffff; /* Oyun zemini beyaz */
    border: 3px solid var(--neon-blue); 
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.2);
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
}

#game-bg-deco {
    position: absolute; width: 100%; height: 100%; 
    background: linear-gradient(transparent 70%, rgba(0, 210, 255, 0.05) 100%),
                repeating-linear-gradient(90deg, rgba(0, 210, 255, 0.05) 0px, rgba(0, 210, 255, 0.05) 1px, transparent 1px, transparent 100px);
    pointer-events: none;
    z-index: 1;
}

#game-ui {
    position: absolute; top: 20px; left: 20px; z-index: 110; /* UI öne alındı */
    display: none; align-items: center; gap: 20px;
}

.quit-game-btn {
    padding: 10px 20px; background: rgba(255, 71, 87, 0.1); border: 2px solid var(--danger);
    color: var(--danger); border-radius: 10px; cursor: pointer; font-family: 'Orbitron';
    font-weight: bold; transition: 0.3s;
}
.quit-game-btn:hover { background: var(--danger); color: white; box-shadow: 0 0 15px var(--danger); }

#game-lives {
    font-family: 'Orbitron'; color: var(--danger); text-shadow: 0 0 10px rgba(255,0,0,0.3);
    letter-spacing: 5px; background: rgba(0,0,0,0.05); padding: 5px 15px; border-radius: 10px;
    font-size: 2rem;
}

#game-score {
    position: absolute; top: 20px; right: 40px; 
    font-family: 'Orbitron'; font-size: 4rem; color: #333; /* Beyazda koyu renk daha iyi görünür */
    text-shadow: 0 0 10px rgba(0,0,0,0.1); z-index: 110;
}

/* GİRİŞ EKRANI - TAM EKRAN DÜZENLEMESİ */
#game-intro { 
    position: fixed; /* Tam ekran kaplaması için */
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 20, 50, 0.98); 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: white; z-index: 200; /* En üstte durması için */
    text-align: center;
}

#scan-line { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: var(--neon-blue); display: none; z-index: 11000; box-shadow: 0 0 20px var(--neon-blue); }
#boost-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.95); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 11000; }
.bar-container { width: 400px; height: 30px; border: 2px solid var(--neon-blue); border-radius: 15px; overflow: hidden; margin-top: 20px; }
.bar-fill { height: 100%; width: 0%; background: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); }
.v-btn { background: var(--neon-purple); border: none; color: white; padding: 10px 20px; border-radius: 10px; cursor: pointer; font-family: Orbitron; transition: 0.3s; }

.final-score { font-family: 'Orbitron'; color: gold; font-size: 2rem; margin: 20px 0; text-shadow: 0 0 10px gold; }

.hacker-avatar-container {
    width: 260px; height: 260px; border-radius: 50%; border: 4px solid #00ff41;
    overflow: hidden; box-shadow: 0 0 40px #00ff41; margin-bottom: 20px;
    animation: hackerPulse 2s infinite ease-in-out;
}
.hacker-avatar-container img {
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(120%);
}
@keyframes hackerPulse {
    0% { transform: scale(1); box-shadow: 0 0 20px #00ff41; }
    50% { transform: scale(1.05); box-shadow: 0 0 50px #00ff41; }
    100% { transform: scale(1); box-shadow: 0 0 20px #00ff41; }
}

.hacker-typewriter {
    max-width: 850px; background: rgba(0,20,0,0.85); padding: 25px;
    border: 1px solid #00ff41; border-radius: 15px; font-size: 1.1rem;
    line-height: 1.6; text-align: justify; margin-bottom: 20px;
    font-family: 'Courier New', monospace; color: #00ff41; min-height: 120px;
}

.hacker-btn {
    padding: 12px 25px; background: #004400; border: 1px solid #00ff41;
    color: #00ff41; cursor: pointer; font-family: 'Orbitron'; transition: 0.3s;
}
.hacker-btn:hover { background: #00ff41; color: #000; }
.exit-btn { border-color: #ff4757; color: #ff4757; background: rgba(255, 71, 87, 0.1); }
.exit-btn:hover { background: #ff4757; color: #fff; }

.puan-aldi { color: var(--success); animation: scoreAnim 0.8s ease-out; }
.puan-alamadi { color: var(--danger); animation: scoreAnim 0.8s ease-out; }

@keyframes scoreAnim {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
/* --- VİDEO SİSTEMİ ÖZEL STİLLERİ --- */

/* Videonun içinde durduğu ana kutu */
.video-window {
    width: 100%;
    border: 3px solid var(--neon-blue);
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.2);
    margin-bottom: 15px;
    position: relative;
}

/* Video oynatıcının kendisi */
#main-video-player {
    display: block;
    outline: none;
}

/* Video seçim butonlarının (Ders 1, 2, 3) kapsayıcısı */
.video-selector-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

/* Tekil Ders Butonları */
.v-tab {
    flex: 1;
    padding: 12px;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Üzerine gelince */
.v-tab:hover {
    background: rgba(0, 210, 255, 0.2);
    box-shadow: 0 0 15px var(--neon-blue);
    transform: translateY(-2px);
}

/* Aktif olan ders butonu (o an izlenen) */
.v-tab.active {
    background: var(--neon-blue);
    color: var(--dark-bg);
    font-weight: bold;
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Mobil uyum için */
@media (max-width: 768px) {
    .video-selector-tabs {
        flex-direction: column;
    }
}
/* Aktif olan butonun stili */
.lesson-btn.active {
    background: #00e5ff; /* Parlak mavi */
    color: #000;        /* Siyah yazı */
    box-shadow: 0 0 15px #00e5ff; /* Parlama efekti */
    border-color: #fff;
}
