/* ====================================================
   1. KARANLIK VE AYDINLIK MOD RENK MOTORU
   ==================================================== */
:root {
    --bg-color: #090d16;
    --card-bg: rgba(19, 26, 38, 0.75);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --header-bg: rgba(9, 13, 22, 0.95);
    --border-color: rgba(255, 255, 255, 0.05);
    --neon-blue: #00d2ff;
}

:root[data-theme="light"] {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --header-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-main) !important;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.cyber-card, .matrix-box, .tech-card, .tactic-card, .recovery-card, .lab-card, .bio-card, .quiz-card, .login-card {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.question-block h4, .login-card h2, .tech-steps h5, h1, h2, h3, h4 {
    color: var(--text-main) !important;
}

/* ====================================================
   2. HEADER, LİNKLER VE AÇILIR MENÜ (DROPDOWN)
   ==================================================== */
header {
    background: var(--header-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    transition: transform 0.4s ease-in-out, background-color 0.4s;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; box-sizing: border-box;
}

.header-hidden { transform: translateY(-100%); }

nav ul { display: flex; align-items: center; gap: 25px; list-style: none; margin: 0; padding: 0; }
nav ul li a { color: var(--text-main); text-decoration: none; font-size: 1rem; font-weight: 500; transition: 0.3s; }
nav ul li a:hover { color: var(--neon-blue); }

.dropdown { position: relative; padding: 10px 0; }
.dropdown-content {
    display: none; position: absolute; top: 100%; left: -20px;
    background: var(--card-bg); min-width: 240px;
    box-shadow: 0px 15px 30px rgba(0,0,0,0.6); border-radius: 14px;
    border: 1px solid var(--border-color); backdrop-filter: blur(15px);
    padding: 10px 0; z-index: 1001;
}
.dropdown:hover .dropdown-content { display: block; animation: dropAnim 0.3s ease; }
@keyframes dropAnim { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-content a {
    padding: 12px 20px; display: flex; align-items: center; gap: 12px;
    color: var(--text-muted); font-size: 0.95rem; transition: 0.3s;
}
.dropdown-content a:hover {
    background: rgba(0, 210, 255, 0.05); color: var(--neon-blue); padding-left: 25px;
}

.btn-randevu {
    background: linear-gradient(90deg, #00c6ff, #0072ff) !important;
    padding: 10px 20px !important; border-radius: 50px !important;
    color: white !important; font-weight: bold !important;
}
.btn-randevu:hover {
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* ====================================================
   3. MOBİL UYUMLULUK (HAMBURGER MENÜ)
   ==================================================== */
.hamburger-btn { display: none; font-size: 2rem; color: var(--text-main); background: none; border: none; cursor: pointer; z-index: 9999; }

@media (max-width: 1024px) {
    .hamburger-btn { display: block; }
    nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--header-bg); backdrop-filter: blur(15px);
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out;
        border-bottom: 1px solid var(--border-color);
    }
    nav.menu-acik { max-height: 600px; overflow-y: auto; }
    nav ul { flex-direction: column; padding: 20px 0; gap: 15px; }
    .dropdown-content {
        position: relative; top: 0; left: 0; background: transparent;
        box-shadow: none; border: none; padding: 0; min-width: 100%;
    }
}