/* --- CSS DEĞİŞKENLERİ (TEMA VE FONT AYARLARI İÇİN) --- */
:root {
    --bg-color: #f0f2f5;
    --container-bg: #faf9f6;
    --text-color: #2c3e50;
    --accent-color: #3498db;
    --card-border: #e2e8f0;
    --option-hover: #f0f8ff;
    --font-size-base: 16px;
    /* YENİ EKLENEN: VİDEO OYNATICI RENGİ */
    --plyr-color-main: #1673a6; 
}

/* --- ANTİK MISIR (EGYPT) MODU (KALICI TEMA) --- */
body.egypt-theme {
    --bg-color: #0D1117;
    --container-bg: rgba(20, 25, 30, 0.6); /* Ana menü için cam efekti */
    --text-color: #F4E4B0; /* Papirüs */
    --accent-color: #C9A84C; /* Altın/Kum */
    --card-border: rgba(201, 168, 76, 0.25);
    --option-hover: rgba(42, 122, 110, 0.15); /* Nil yeşili hover */
    --plyr-color-main: #C9A84C;
}

/* ODAK MODU (FOCUS MODE) - Sınav ve Okuma Sırasında */
body.egypt-theme.focus-mode {
    --container-bg: #111820; /* Düz renk, saydamlık yok (Göz yormaması için) */
    --card-border: rgba(201, 168, 76, 0.15);
}

/* Mısır Teması Klasör ve Kart Özelleştirmeleri (Menü Ekranı İçin) */
body.egypt-theme .folder-btn,
body.egypt-theme .intro-box,
body.egypt-theme .test-item-row,
body.egypt-theme .mat-card {
    background: linear-gradient(160deg, rgba(30,24,10,0.85) 0%, rgba(13,17,23,0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

body.egypt-theme .folder-btn:hover,
body.egypt-theme .test-item-row:hover,
body.egypt-theme .mat-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.15);
}

/* Odak Modunda Kartların Saydamlığını İptal Et (Okunabilirliği Artırır) */
body.egypt-theme.focus-mode .question-card,
body.egypt-theme.focus-mode .options label {
    background: #151A22; /* Düz koyu zemin */
    backdrop-filter: none;
    box-shadow: none;
}

/* Mısır Teması İkon ve Etiket Renkleri */
body.egypt-theme .u1-icon, body.egypt-theme .u2-icon, body.egypt-theme .u3-icon {
    background: rgba(201, 168, 76, 0.1); color: var(--accent-color);
}

/* Mısır Teması Butonlar */
body.egypt-theme .action-btn {
    background: linear-gradient(135deg, #2A7A6E 0%, #3BA898 100%);
    color: #F4E4B0;
    box-shadow: 0 4px 15px rgba(42, 122, 110, 0.3);
    border: 1px solid rgba(201, 168, 76, 0.3);
}
body.egypt-theme .action-btn:hover {
    background: linear-gradient(135deg, #1f6056 0%, #2A7A6E 100%);
    box-shadow: 0 6px 20px rgba(42, 122, 110, 0.5);
}

body.egypt-theme .back-btn {
    background: var(--option-hover);
    color: var(--text-color) !important;
    border: 1px solid var(--card-border);
}
body.egypt-theme .back-btn:hover {
    background: rgba(201, 168, 76, 0.15);
}

body.egypt-theme .tab-btn.active {
    background: linear-gradient(135deg, rgba(42,122,110,0.8), rgba(42,122,110,0.5));
    color: #F4E4B0;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: none;
}

body.egypt-theme .test-item-start-btn {
    background: rgba(42, 122, 110, 0.15);
    color: var(--accent-color);
    border-color: var(--card-border);
}
body.egypt-theme .test-item-start-btn:hover {
    background: var(--accent-color);
    color: #0D1117;
}

body.egypt-theme .robot-btn, body.egypt-theme .odev-btn {
    color: var(--accent-color);
    border-color: var(--card-border);
}
body.egypt-theme .robot-btn:hover, body.egypt-theme .odev-btn:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: var(--accent-color);
}

body.egypt-theme .nav-dot.answered { background: var(--accent-color); color: #0D1117; border-color: #E8A020; }

body.egypt-theme .sticky-header {
    background: color-mix(in srgb, #111820 90%, transparent);
    border-color: var(--card-border);
}

/* --- GENEL STİL VE MOBILE-FIRST RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color); 
    color: var(--text-color);
    margin: 0; padding: 15px; 
    user-select: none; 
    -webkit-tap-highlight-color: transparent;
    transition: background 0.3s ease, color 0.3s ease;
}

.container { 
    background: var(--container-bg);
    width: 100%; max-width: 900px; 
    margin: 0 auto; padding: 20px; 
    border-radius: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.06); 
    position: relative; z-index: 10;
}

@media (min-width: 768px) {
    body { padding: 30px; }
    .container { padding: 40px; }
}

h1, h2, h3 { text-align: center; color: var(--accent-color); font-weight: 700; letter-spacing: -0.5px; }
h1 { 
    border-bottom: 3px solid #27ae60;
    padding-bottom: 8px; 
    display: inline-block; 
    margin-bottom: 20px;
}

#progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 6px; background: transparent; z-index: 9999;
}
#progress-bar {
    width: 0%; height: 100%; background: #27ae60; border-radius: 0 3px 3px 0; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- MODERN YUVARLAK BUTONLAR --- */
.settings-panel {
    display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center;
    position: relative;
    z-index: 10500;
}
.settings-btn {
    background: rgba(13, 17, 23, 0.95) !important; 
    border: 1px solid rgba(201, 168, 76, 0.4) !important; 
    width: 46px; height: 46px; 
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; font-weight: 700; 
    color: #C9A84C !important; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important; 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.settings-btn.uzun-buton {
    width: auto !important; 
    border-radius: 25px !important; 
    padding: 0 20px !important; 
    gap: 8px !important;
}
.settings-btn:hover, .settings-btn:active { 
    transform: translateY(-3px) !important; 
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3) !important; 
    background: rgba(201, 168, 76, 0.15) !important;
    border-color: #C9A84C !important;
    color: #F4E4B0 !important;
}

.floating-btn {
    position: fixed; bottom: 25px; right: 25px;
    border-radius: 50%; width: 55px; height: 55px; 
    font-size: 24px; border: none; cursor: pointer; 
    z-index: 9998; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; align-items: center; justify-content: center;
}
.floating-btn:hover, .floating-btn:active { transform: scale(1.15) rotate(-10deg); }
/* --- 2026 GİRİŞ EKRANI FORMLARI --- */
.login-grid {
    display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 25px;
}
@media (min-width: 768px) { .login-grid { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 15px; }
.login-grid .form-group { margin-bottom: 0; }

label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-color); font-size: 14px;}

input, select, textarea { 
    width: 100%; padding: 15px 18px; border: 2px solid transparent; 
    background: var(--option-hover); color: var(--text-color);
    border-radius: 12px; font-size: 16px; font-family: 'Inter', sans-serif;
    transition: all 0.3s ease; outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-color); background: var(--container-bg); 
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2), 0 4px 15px rgba(0,0,0,0.05);
}
textarea { height: 140px; resize: vertical; }

/* Sınav Robotu Açılır Menü (Dropdown) İçerik Renkleri */
select option {
    background-color: #0D1117; /* Antik Mısır Karanlık Zemin */
    color: var(--text-color);
    font-weight: 500;
}

.btn-login {
    background: linear-gradient(135deg, #3498db, #2c3e50) !important;
    width: 100%; max-width: 350px; font-size: 18px; padding: 18px; border-radius: 30px;
}

/* --- YENİ NESİL MODERN ANA MENÜ TASARIMI (CLEAN UI) --- */
.intro-box { 
    background-color: var(--container-bg); border: 1px solid var(--card-border); 
    padding: 20px; margin-bottom: 25px; border-radius: 16px; 
    font-size: 14px; line-height: 1.6; box-shadow: 0 8px 24px rgba(0,0,0,0.04); 
    display: flex; gap: 15px; align-items: flex-start;
}
.intro-icon { font-size: 24px; flex-shrink: 0; color: #f1c40f; }

.folder-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 15px; margin-top: 15px; margin-bottom: 15px;
}
@media (min-width: 600px) {
    .folder-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 20px; }
}

.folder-btn {
    background: var(--container-bg); color: var(--text-color);
    padding: 20px; border-radius: 16px; border: 1px solid var(--card-border);
    font-size: 15px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: row; align-items: center; gap: 16px; text-align: left;
    width: 100%;
}
.folder-btn:hover, .folder-btn:active {
    transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.06); border-color: var(--accent-color);
}

.icon-wrapper {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
}
.u1-icon { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.u2-icon { background: rgba(230, 126, 34, 0.1); color: #e67e22; }
.u3-icon { background: rgba(155, 89, 182, 0.1); color: #8e44ad; }

.folder-texts { display: flex; flex-direction: column; gap: 4px; }
.folder-title { font-weight: 800; font-size: 17px; }
.folder-desc { font-size: 13px; opacity: 0.7; font-weight: 500; }

/* -------------------------------------------------------- */

#sinavOdasi { animation: fadeIn 0.5s cubic-bezier(0.25, 1, 0.5, 1); margin-bottom: 25px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- MODERN GERİ BUTONLARI (Ana Sayfaya Dön vb.) --- */
.back-to-hall-btn {
    width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background-color: var(--option-hover); color: var(--text-color);
    border: none; padding: 10px 20px; border-radius: 20px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
    margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.back-to-hall-btn:hover, .back-to-hall-btn:active { background-color: var(--card-border); transform: translateX(-4px); }

.room-title { text-align: left; color: var(--text-color); font-size: 22px; margin-bottom: 20px; border-bottom: none;}

/* --- SEKME (TAB) TASARIMI --- */
.tab-container {
    display: flex; gap: 10px; margin-bottom: 20px; background: var(--container-bg); padding: 5px; border-radius: 12px; border: 1px solid var(--card-border);
}
.tab-btn {
    flex: 1; padding: 12px; border: none; background: transparent; color: var(--text-color); font-weight: 700; font-size: 15px; border-radius: 8px; cursor: pointer; transition: all 0.3s; opacity: 0.7; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tab-btn.active {
    background: var(--accent-color); color: white; opacity: 1; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

/* Materyal Grid */
.material-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 600px) { .material-grid { grid-template-columns: 1fr 1fr; } }
.mat-card {
    display: flex; align-items: center; gap: 15px; padding: 15px; background: var(--container-bg);
    border: 2px solid var(--card-border); border-radius: 12px; text-decoration: none; color: var(--text-color); transition: all 0.2s; cursor: pointer;
}
.mat-card:hover { border-color: var(--accent-color); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.05); }
.mat-icon { font-size: 24px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--option-hover); flex-shrink: 0;}
.mat-info { display: flex; flex-direction: column; gap: 4px; }
.mat-title { font-weight: 700; font-size: 15px; line-height: 1.3;}
.mat-type { font-size: 12px; opacity: 0.7; font-weight: 600;}

/* --- AKILLI ARAMA MOTORU --- */
.search-container { position: relative; margin-bottom: 20px; width: 100%; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; font-size: 18px; color: #95a5a6; pointer-events: none; }
.search-input { 
    width: 100%; padding: 14px 45px; border: 2px solid transparent; 
    background: var(--option-hover); color: var(--text-color);
    border-radius: 16px; font-size: 15px; font-family: 'Inter', sans-serif;
    transition: all 0.3s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); outline: none;
}
.search-input:focus {
    background: var(--container-bg); border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15), 0 4px 15px rgba(0,0,0,0.05);
}
.search-clear {
    position: absolute; right: 12px; background: #e74c3c; color: white;
    border: none; border-radius: 50%; width: 24px; height: 24px;
    font-size: 12px; font-weight: bold; cursor: pointer; display: none;
    align-items: center; justify-content: center; transition: all 0.2s;
}
.search-clear:hover { background: #c0392b; transform: scale(1.1); }

.konu-slider-wrapper {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px; width: 100%;
}
.scroll-arrow {
    background: var(--container-bg); color: var(--accent-color);
    border: 2px solid var(--card-border); border-radius: 50%;
    width: 40px; height: 40px; min-width: 40px; display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    font-size: 20px; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease; z-index: 5; user-select: none;
}
.scroll-arrow:hover { background: var(--accent-color); color: white; border-color: var(--accent-color); transform: scale(1.1); }
.scroll-arrow:active { transform: scale(0.95); }

.konu-secici {
    display: flex; gap: 12px; overflow-x: auto; padding: 5px 2px;
    scrollbar-width: none; flex: 1; -webkit-overflow-scrolling: touch; 
    cursor: grab; scroll-behavior: smooth;
}
.konu-secici.active { cursor: grabbing; }
.konu-secici::-webkit-scrollbar { display: none; }

.konu-chip {
    flex: 0 0 auto; white-space: nowrap; padding: 10px 20px; border-radius: 25px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
    background: var(--container-bg); color: var(--accent-color);
    border: 2px solid var(--accent-color); box-shadow: 0 3px 8px rgba(0,0,0,0.04); user-select: none;
}
.konu-chip:hover { background: var(--option-hover); transform: translateY(-2px); }
.konu-chip.active { background: var(--accent-color); color: white; box-shadow: 0 6px 15px rgba(52,152,219,0.3); }

.konu-chip.klasik { border-color: #e67e22; color: #e67e22; }
.konu-chip.klasik:hover { background: #fff3e0; }
.konu-chip.klasik.active { background: #e67e22; color: white; box-shadow: 0 6px 15px rgba(230,126,34,0.3); }

.test-list-container { display: flex; flex-direction: column; gap: 15px; }

.test-item-row {
    display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px;
    padding: 15px; background: var(--container-bg); border: 2px solid var(--card-border);
    border-radius: 16px; transition: all 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-left: 6px solid var(--accent-color);
}
.test-item-row:hover { transform: translateX(5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--accent-color); }
.test-item-row.klasik { border-left-color: #e67e22; }
.test-item-row.klasik:hover { border-color: #e67e22; }

.test-item-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.test-item-icon { font-size: 28px; color: var(--text-color); }
.test-item-info { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.test-item-title { font-weight: 700; font-size: 16px; color: var(--text-color); display: flex; align-items: center; flex-wrap: wrap; gap: 8px;}
.test-item-meta { font-size: 13px; opacity: 0.7; color: var(--text-color); line-height: 1.4; }

.test-item-start-btn {
    background: var(--option-hover); color: var(--accent-color); border: 2px solid var(--card-border);
    padding: 10px 16px; border-radius: 20px; font-weight: 700; font-size: 13px; cursor: pointer; 
    transition: all 0.2s; white-space: nowrap; width: auto; text-align: center; flex-shrink: 0;
}
.test-item-start-btn:hover, .test-item-start-btn:active { background: var(--accent-color); color: white; border-color: var(--accent-color); }

.test-item-row.klasik .test-item-start-btn { color: #e67e22; }
.test-item-row.klasik .test-item-start-btn:hover, .test-item-row.klasik .test-item-start-btn:active { background: #e67e22; color: white; border-color: #e67e22; }

@media (min-width: 600px) {
    .test-item-row { padding: 20px; gap: 15px; }
    .test-item-left { gap: 15px; }
    .test-item-start-btn { border-radius: 25px; padding: 12px 25px; font-size: 15px; }
}

/* GLASSMORPHISM STICKY HEADER */
.sticky-header { 
    position: sticky; top: 0; z-index: 100; 
    background: color-mix(in srgb, var(--container-bg) 85%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 15px 5px; 
    border-bottom: 1px solid var(--card-border); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px;
}
@media (min-width: 768px) {
    .sticky-header { margin-left: -40px; margin-right: -40px; padding-left: 40px; padding-right: 40px; }
}

.timer-box { font-size: 26px; font-weight: 800; color: #e74c3c; text-align: center; margin-bottom: 15px; letter-spacing: 1px;}

.nav-map { display: flex; justify-content: flex-start; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.nav-map::-webkit-scrollbar { display: none; }
.nav-map.active { cursor: grabbing; }
.nav-dot { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; background: var(--option-hover); border: 2px solid var(--card-border); display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; color: var(--text-color); font-weight: 700; transition: all 0.2s; }
.nav-dot:hover { transform: translateY(-2px); border-color: var(--accent-color); }
.nav-dot.answered { background: var(--accent-color); color: white; border-color: #2980b9; }
.nav-dot.flagged { background: #f39c12; color: white; border-color: #d35400; }

.question-card { 
    background: var(--container-bg); border: 2px solid var(--card-border); padding: 25px 20px; margin-bottom: 25px; border-radius: 16px; position: relative; scroll-margin-top: 200px; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.question-text { font-size: var(--font-size-base); margin-bottom: 20px; font-weight: 600; line-height: 1.7; }

.question-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--card-border); padding-bottom: 10px;}
.question-number { font-weight: 800; color: var(--accent-color); font-size: 18px; }
.flag-btn { background: transparent; border: 2px solid #f39c12; color: #f39c12; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.flag-btn:active, .flag-btn.active { background: #f39c12; color: white; transform: scale(0.95);}

/* TOUCH-FRIENDLY OPTIONS */
.options label { 
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 15px; margin-bottom: 12px; cursor: pointer; border-radius: 12px; 
    border: 2px solid var(--card-border); transition: all 0.2s ease; 
    font-size: var(--font-size-base); background: var(--container-bg);
    line-height: 1.5;
}
.options label:hover, .options label:active { 
    background-color: var(--option-hover); border-color: var(--accent-color); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); transform: translateX(2px);
}
.options input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent-color); cursor: pointer; }

.action-btn { 
    padding: 16px 30px; background-color: #27ae60; color: white; border: none; border-radius: 30px; cursor: pointer; font-size: 16px; font-weight: 700; transition: all 0.3s ease; box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3); letter-spacing: 0.5px; margin-top: 15px; width: 100%;
}
@media (min-width: 600px) { .action-btn { width: auto; min-width: 250px; } }
.action-btn:hover, .action-btn:active { background-color: #219150; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4); }

/* --- GHOST STYLE GENEL GERİ BUTONU --- */
.back-btn { background-color: var(--option-hover); color: var(--text-color) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.back-btn:hover, .back-btn:active { background-color: var(--card-border); color: var(--text-color) !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.08); }

.btn-center { display: block; margin: 25px auto; }

.footer { margin-top: 40px; text-align: center; font-size: 13px; color: var(--text-color); opacity: 0.7; border-top: 1px solid var(--card-border); padding-top: 20px; font-weight: 600; margin-bottom: 20px;}
.hidden { display: none !important; }

.explanation-card { padding: 20px; margin-bottom: 15px; border-radius: 12px; border-left: 6px solid var(--card-border); background: var(--option-hover); color: var(--text-color); font-size: 15px; line-height: 1.6;}
.explanation-card.correct { border-left-color: #27ae60; background-color: rgba(39, 174, 96, 0.08); }
.explanation-card.wrong { border-left-color: #e74c3c; background-color: rgba(231, 76, 60, 0.08); }

/* GLASSMORPHISM MODAL */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-content { 
    background-color: var(--container-bg); padding: 30px 20px; border-radius: 12px; width: 90%; max-width: 500px; text-align: center; box-shadow: 0 15px 40px rgba(0,0,0,0.5); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-height: 90vh; overflow-y: auto; color: var(--text-color);
    border-top: 6px solid var(--accent-color) !important;
    border: 1px solid var(--card-border);
}
@media (min-width: 600px) { .modal-content { padding: 40px; } }

.modal-btn-group { display: flex; flex-direction: column; gap: 12px; justify-content: center; margin-top: 25px; }
@media (min-width: 480px) { .modal-btn-group { flex-direction: row; } }
.modal-content { overflow-x: hidden; }
.modal-content .action-btn { min-width: unset; flex: 1; }

.modal-stat { font-size: 18px; margin: 12px 0; color: var(--text-color); font-weight: 500;}

#kavramListesi::-webkit-scrollbar { width: 8px; }
#kavramListesi::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 4px; }
.kavram-item { padding: 15px; border-bottom: 1px solid var(--card-border); text-align: left; font-size: 15px; line-height: 1.5; }
.kavram-item:last-child { border-bottom: none; }
.kavram-baslik { color: var(--accent-color); font-weight: 800; display: block; margin-bottom: 6px; font-size: 16px; }

/* --- SINAV ROBOTU & ÖDEV BUTONLARI (MISIR REVİZYONU) --- */
.robot-btn, .odev-btn {
    background-color: transparent; color: var(--accent-color); cursor: pointer; padding: 18px 20px; width: 100%;
    border: 1px solid var(--card-border); text-align: center; outline: none; font-size: 16px; transition: 0.4s;
    border-radius: 16px; font-weight: 800; display: flex; justify-content: center; align-items: center;
    box-shadow: none; gap: 10px;
}
.robot-btn { margin-top: 5px; }
.odev-btn { margin-top: 15px; }
.robot-btn:hover, .robot-btn:active, .odev-btn:hover, .odev-btn:active { 
    transform: translateY(-3px); box-shadow: 0 8px 20px rgba(201,168,76,0.1); border-color: var(--accent-color); background-color: rgba(201, 168, 76, 0.05); 
}

/* --- YAZDIRMA EKRANI (PRINT CSS) --- */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .container { box-shadow: none !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    .settings-panel, #progress-container, .floating-btn, .action-btn, #navMap, .timer-box { display: none !important; }
    .sticky-header { position: static !important; background: transparent !important; box-shadow: none !important; border: none !important; margin: 0 !important; padding: 0 0 20px 0 !important; }
    .sticky-header button { display: none !important; }
    #testBaslik { display: block !important; font-size: 24px !important; text-align: center !important; border-bottom: 2px solid #000 !important; padding-bottom: 10px !important; margin-bottom: 20px !important; width: 100% !important; }
    .question-card { border: none !important; border-bottom: 1px solid #ccc !important; box-shadow: none !important; border-radius: 0 !important; margin-bottom: 15px !important; padding: 10px 0 !important; page-break-inside: avoid; }
    .options label { border: none !important; background: transparent !important; box-shadow: none !important; padding: 5px 0 !important; margin-bottom: 2px !important; }
    body > * { display: none !important; }
    body > .container { display: block !important; }
    #girisEkrani, #menuEkrani, #sonucEkrani, .modal { display: none !important; }
    #testEkrani { display: block !important; }
    .question-header .flag-btn { display: none !important; }
}

.upload-area { border: 2px dashed var(--card-border); padding: 30px; text-align: center; border-radius: 16px; margin-bottom: 15px; cursor: pointer; transition: all 0.3s; background: var(--option-hover); }
.upload-area:hover { border-color: #27ae60; background: rgba(39, 174, 96, 0.05); }
.file-list { text-align: left; font-size: 13px; max-height: 150px; overflow-y: auto; margin-bottom: 15px; border-radius: 8px; }
.file-item { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid var(--card-border); color: var(--text-color); }
.file-item:last-child { border-bottom: none; }
.file-item .status { font-weight: bold; }
.status.waiting { color: #f39c12; } .status.uploading { color: #3498db; } .status.success { color: #27ae60; } .status.error { color: #e74c3c; }
.progress-bar-bg { width: 100%; height: 8px; background: var(--card-border); border-radius: 4px; overflow: hidden; margin-top: 10px; display: none; }
.progress-bar-fill { height: 100%; background: #27ae60; width: 0%; transition: width 0.3s; }

/* --- SPOTIFY TARZI PODCAST OYNATICI CSS --- */
.audio-player-container {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: color-mix(in srgb, var(--container-bg) 90%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--card-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9997; /* İletişim butonunun altında kalsın diye */
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 25px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(150%);
}
.audio-player-container.active { transform: translateY(0); }
.player-info { display: flex; align-items: center; gap: 15px; min-width: 200px; }
.player-icon-box { width: 45px; height: 45px; border-radius: 10px; background: rgba(155, 89, 182, 0.1); color: #9b59b6; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink:0; }
.player-text { display: flex; flex-direction: column; text-align: left;}
.player-title { font-weight: 800; font-size: 15px; color: var(--text-color); line-height: 1.2; }
.player-subtitle { font-size: 12px; opacity: 0.7; color: var(--text-color); font-weight: 600; margin-top:2px;}
.player-audio-element { flex: 1; margin: 0 20px; max-width: 600px; display: flex; align-items:center; }
audio { width: 100%; height: 40px; outline: none; }
.close-player-btn { background: transparent; border: none; color: var(--text-color); font-size: 24px; cursor: pointer; opacity: 0.6; transition: 0.2s; padding:5px; min-width: 40px;}
.close-player-btn:hover { opacity: 1; transform: scale(1.1) rotate(90deg); color: #e74c3c; }

@media (max-width: 768px) {
    .audio-player-container { flex-direction: column; padding: 12px; gap: 12px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));}
    .player-audio-element { margin: 0; max-width: 100%; width: 100%; }
    .close-player-btn { position: absolute; top: 12px; right: 15px; }
    .player-info { width: 100%; padding-right: 30px; }
}

/* --- 3 BOYUTLU FLASHCARD (MISIR REVİZYONU) --- */
.flashcard-modal { display: none; position: fixed; z-index: 11005; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(10px); }
.flashcard-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 85%; max-width: 400px; height: 450px; perspective: 1200px; }
.flashcard { width: 100%; height: 100%; position: relative; transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; cursor: pointer; }
.flashcard.is-flipped { transform: rotateY(180deg); }
.flashcard-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.4); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.flashcard-front { background: linear-gradient(160deg, rgba(30,24,10,0.95) 0%, rgba(13,17,23,0.97) 100%); color: var(--accent-color); border: 1px solid var(--card-border); }
.flashcard-back { background: #F4E4B0; color: #0D1117; border: 4px solid var(--accent-color); }
.flashcard-term { font-size: 32px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.5);}
.flashcard-back .flashcard-def { font-size: 18px; font-weight: 600; line-height: 1.6; color: #111820; }
.flashcard-controls { position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); display: flex; gap: 20px; align-items: center; width: 100%; justify-content: center;}
.fc-btn { background: rgba(201,168,76,0.15); color: var(--accent-color); border: 1px solid rgba(201,168,76,0.3); width: 55px; height: 55px; border-radius: 50%; font-size: 22px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center;}
.fc-btn:hover { background: var(--accent-color); color: #0D1117; transform: scale(1.1); }
.fc-counter { color: var(--accent-color); font-weight: 700; font-size: 16px; letter-spacing: 2px; }
.fc-close { position: absolute; top: 20px; right: 25px; color: var(--accent-color); font-size: 35px; cursor: pointer; opacity: 0.7; transition: 0.3s; z-index: 10002;}
.fc-close:hover { opacity: 1; transform: scale(1.2); color: #E8A020; }
.fc-hint { position: absolute; bottom: 25px; font-size: 13px; opacity: 0.7; color: var(--accent-color); font-weight: 600;}

/* --- MOBİL GÖRÜNÜM FERAHLATMA (YENİ EKLENEN) --- */
@media (max-width: 600px) {
    body { padding-bottom: 90px; }
    .settings-btn { width: 40px; height: 40px; font-size: 15px; }
    .settings-btn.uzun-buton { padding: 0 15px; font-size: 13px; }
    .intro-box { padding: 15px; font-size: 13px; flex-direction: column; text-align: center; align-items: center; }
    .intro-icon { margin-bottom: -5px; }
    .test-item-icon { font-size: 24px; }
    .test-item-title { font-size: 14px; }
}
/* --- YENİ DUYURU BİLDİRİM ROZETİ --- */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border: 2px solid #fff;
    animation: pulse-red 2s infinite;
    z-index: 5;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* --- HTML'DEN TAŞINAN YENİ STİLLER (KAPORTA VE BOYA) --- */

/* HAMBURGER MENÜ (DROPDOWN) STİLLERİ */
.dropdown-menu-container { position: relative; display: inline-flex; align-items: center; }
.glass-dropdown {
    position: absolute; right: 0; top: 55px; width: 220px;
    background: var(--container-bg, rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex; flex-direction: column; gap: 5px; padding: 10px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}
.glass-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    background: transparent; border: none; color: var(--text-color);
    padding: 12px 15px; text-align: left; font-size: 14px; font-weight: 600;
    border-radius: 10px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    font-family: 'Inter', sans-serif;
}
.dropdown-item:hover { background: rgba(22, 115, 166, 0.1); color: #1673a6; transform: translateX(5px); }
.dropdown-item i { width: 20px; text-align: center; font-size: 16px; }

/* İLETİŞİM BUTONU (FLOATING) STİLLERİ */
#iletisimBtnFloating {
    background: rgba(13, 17, 23, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 168, 76, 0.4) !important;
    color: var(--accent-color) !important;
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}
#iletisimBtnFloating:hover {
    opacity: 1;
    background: rgba(201, 168, 76, 0.15) !important;
    color: #F4E4B0 !important;
    border-color: var(--accent-color) !important;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.2) !important;
}

/* MODERN FOOTER STİLLERİ */
.modern-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; margin-top: 30px; border-radius: 12px;
    background: transparent; border: none; box-shadow: none;
    color: var(--text-color); font-size: 13px; font-weight: 500;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.version-badge { background: #0D1117; color: white; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
.footer-right { display: flex; align-items: center; gap: 15px; opacity: 0.9; }
.footer-mail-btn { color: var(--accent-color); font-size: 18px; transition: transform 0.2s; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: rgba(201, 168, 76, 0.1); border-radius: 50%; border: 1px solid rgba(201, 168, 76, 0.2); }
.footer-mail-btn:hover { transform: scale(1.15); background: var(--accent-color); color: #0D1117; }
@media (max-width: 768px) {
    .modern-footer { flex-direction: column; text-align: center; gap: 12px; }
    .footer-right { flex-direction: column; gap: 10px; }
}

/* GLASS PLAYER (YENİ PODCAST OYNATICI) STİLLERİ */
.glass-player {
    position: fixed; bottom: -150px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 450px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 10px 40px rgba(0,0,0,0.15); border-radius: 24px;
    padding: 15px 20px; display: flex; flex-direction: column; gap: 12px; z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; visibility: hidden;
}
.glass-player {
    position: fixed; bottom: -150px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 450px;
    background: rgba(13, 17, 23, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border); box-shadow: 0 10px 40px rgba(0,0,0,0.5); border-radius: 24px;
    padding: 15px 20px; display: flex; flex-direction: column; gap: 12px; z-index: 1000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; visibility: hidden;
}
.glass-player.active { bottom: 25px; opacity: 1; visibility: visible; }
@keyframes pulse-ring-custom {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(201, 168, 76, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}
.player-icon-custom.playing i { animation: pulse-ring-custom 2s infinite; color: var(--accent-color); }
.player-top-row { display: flex; justify-content: space-between; align-items: center; }
.player-info-custom { display: flex; align-items: center; gap: 12px; overflow: hidden; flex: 1; }
.player-icon-custom { width: 45px; height: 45px; border-radius: 14px; background: rgba(201, 168, 76, 0.1); color: var(--accent-color); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; transition: 0.3s; border: 1px solid rgba(201,168,76,0.2); }
.player-text-custom { display: flex; flex-direction: column; overflow: hidden; }
.player-title-custom { font-weight: 700; color: var(--text-color); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-subtitle-custom { font-size: 12px; color: var(--text-color); opacity: 0.6; }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 25px; margin-top: -5px; }
.ctrl-btn { background: none; border: none; color: var(--text-color); font-size: 20px; cursor: pointer; opacity: 0.7; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.ctrl-btn:hover { opacity: 1; color: var(--accent-color); transform: scale(1.1); }
.play-btn { width: 50px; height: 50px; background: linear-gradient(135deg, #2A7A6E 0%, #3BA898 100%); color: #F4E4B0 !important; border-radius: 50%; font-size: 20px; opacity: 1; box-shadow: 0 4px 15px rgba(42, 122, 110, 0.3); border: 1px solid rgba(201,168,76,0.3); }
.play-btn:hover { transform: scale(1.05); background: linear-gradient(135deg, #1f6056 0%, #2A7A6E 100%); }
.progress-container { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--text-color); opacity: 0.8; }
.progress-bar-custom { flex: 1; height: 6px; background: rgba(201, 168, 76, 0.15); border-radius: 3px; cursor: pointer; position: relative; overflow: hidden; }
.progress-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--accent-color); width: 0%; border-radius: 3px; transition: width 0.1s linear; }
/* --- LEAFLET HARİTA AÇIKLAMA (LEGEND) VE POPUP MISIR TEMASI --- */
.info, .legend, .leaflet-control-layers {
    background: rgba(13, 17, 23, 0.85) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(201,168,76,0.4) !important;
    color: var(--text-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5) !important;
}

.info h4, .legend h4 {
    color: var(--accent-color) !important;
    border-bottom: 1px solid rgba(201,168,76,0.2) !important;
    padding-bottom: 5px !important;
    margin-bottom: 8px !important;
}

/* Haritada Tıklanınca Açılan Pencereler (Pop-up) */
.leaflet-popup-content-wrapper {
    background: rgba(13, 17, 23, 0.95) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--accent-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6) !important;
}

.leaflet-popup-tip {
    background: rgba(13, 17, 23, 0.95) !important;
    border: 1px solid var(--accent-color) !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--accent-color) !important;
    font-weight: bold !important;
}
/* --- YENİ ŞERİT PODCAST OYNATICI STİLLERİ --- */
.bottom-audio-bar {
    position: fixed;
    bottom: -100px; /* Kapalıyken ekranın altında gizlenir */
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(201, 168, 76, 0.3);
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
}

.bottom-audio-bar.active {
    bottom: 0; /* Oynatıldığında yukarı kayar */
}

/* İlerleme çubuğu şeridin tam üst çizgisi oldu */
.bottom-audio-bar .progress-bar-custom {
    width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1);
    cursor: pointer; position: absolute; top: 0; left: 0;
}
.bottom-audio-bar .progress-fill {
    height: 100%; background: var(--accent-color); width: 0%; transition: width 0.1s linear;
}

.bottom-bar-content {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; gap: 15px;
}

.bottom-audio-bar .player-info-custom {
    display: flex; align-items: center; gap: 12px; flex: 1; overflow: hidden;
}
.bottom-audio-bar .player-icon-custom { color: var(--accent-color); font-size: 24px; flex-shrink: 0; }
.bottom-audio-bar .player-text-custom { display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; }
.bottom-audio-bar .player-title-custom { font-weight: 700; color: var(--text-color); font-size: 14px; text-overflow: ellipsis; overflow: hidden; }
.bottom-audio-bar .player-subtitle-custom { font-size: 11px; opacity: 0.7; color: var(--text-color); }

.bottom-audio-bar .player-controls {
    display: flex; align-items: center; gap: 20px; flex: 1; justify-content: center;
}
.bottom-audio-bar .ctrl-btn { background: none; border: none; color: var(--text-color); font-size: 18px; cursor: pointer; transition: 0.2s; }
.bottom-audio-bar .ctrl-btn:hover { color: var(--accent-color); transform: scale(1.1); }
.bottom-audio-bar .play-btn {
    background: var(--accent-color); color: #0D1117; width: 45px; height: 45px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.bottom-audio-bar .play-btn:hover { background: #F4E4B0; }

.bottom-audio-bar .player-right-actions {
    display: flex; align-items: center; gap: 15px; flex: 1; justify-content: flex-end;
}
.bottom-audio-bar .time-display { font-size: 12px; color: var(--text-color); font-family: 'Inter', sans-serif; font-weight: 500; }
.bottom-audio-bar .close-btn { color: var(--accent-color); font-size: 24px; }

/* MOBİL UYUM (ÖNEMLİ) */
@media (max-width: 768px) {
    .bottom-bar-content { padding: 8px 15px; gap: 10px; }
    .bottom-audio-bar .player-controls { gap: 12px; }
    .bottom-audio-bar .play-btn { width: 38px; height: 38px; font-size: 16px; }
    .bottom-audio-bar .player-right-actions { flex: 0; }
    .bottom-audio-bar .time-display { display: none; /* Mobilde yerden tasarruf için zaman gizlenir */ }
    .bottom-audio-bar .player-title-custom { font-size: 13px; }
}
/* ==========================================================================
   10. SINIF (OTTOMAN THEME) SIFIR HATA REVİZYONLARI
   (Sadece body.ottoman-theme aktifken devreye girer, 9. Sınıfı etkilemez)
   ========================================================================== */

/* 1. Tema Renk Tanımlamaları (Menülerin siyah/altın olması için) */
body.ottoman-theme {
    --bg-color: #0D1117;
    --container-bg: rgba(13, 17, 23, 0.95);
    --text-color: #F4E4B0;
    --accent-color: #C9A84C;
    --card-border: rgba(201, 168, 76, 0.4);
    --option-hover: rgba(139, 26, 26, 0.2);
}

/* 2. Giriş Sayfasını Tek Kareye Sığdırma (Scroll Engelleme) */
body.ottoman-theme .container.login-mode {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    padding: 10px !important;
}

body.ottoman-theme .login-box {
    margin: auto !important;
    padding: 20px 25px !important;
    max-width: 350px !important;
}

/* 3. Giriş Ekranındaki Menüyü (Hamburger) ve İkonları Temaya Sabitleme */
body.ottoman-theme .settings-panel,
body.ottoman-theme .menu-btn {
    background: rgba(13, 17, 23, 0.95) !important;
    border: 1px solid rgba(201, 168, 76, 0.3) !important;
    color: #C9A84C !important;
}

/* 4. Giriş Yap Butonunu Bordo ve Altın Yapma */
body.ottoman-theme .login-btn {
    background: linear-gradient(135deg, #8B1A1A, #A83232) !important;
    color: #F4E4B0 !important;
    border: 1px solid #C9A84C !important;
    box-shadow: 0 4px 10px rgba(139, 26, 26, 0.3) !important;
    text-shadow: none !important;
}

body.ottoman-theme .login-btn:hover {
    background: linear-gradient(135deg, #A83232, #A83232) !important;
    box-shadow: 0 6px 15px rgba(201, 168, 76, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* 5. Modal Pencerelerin Menü Üstünde Açılması (Z-Index Fix) */
body.ottoman-theme .modal {
    z-index: 9999 !important;
}
/* === MÜZİK PANELİ – BUZLU CAM TASARIMI === */
.muzik-panel {
    position: fixed; top: 0; right: -400px; width: 350px; height: 100vh;
    background: rgba(13, 17, 23, 0.85); backdrop-filter: blur(15px);
    border-left: 1px solid var(--accent-color); box-shadow: -5px 0 30px rgba(0,0,0,0.6);
    z-index: 9998; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}

.muzik-panel.aktif { right: 0; }

.muzik-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--card-border); background: rgba(0,0,0,0.2); }
.muzik-panel-header h3 { margin: 0; color: var(--text-color); font-family: 'Marcellus', serif; font-size: 18px; }
.muzik-kapat-btn { background: none; border: none; color: var(--accent-color); font-size: 22px; cursor: pointer; transition: 0.2s; }
.muzik-kapat-btn:hover { transform: rotate(90deg); color: #fff; }

.muzik-liste-container { flex: 1; overflow-y: auto; padding: 15px; }
.muzik-liste-item {
    display: flex; align-items: center; padding: 12px; margin-bottom: 10px;
    background: rgba(255,255,255,0.05); border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.muzik-liste-item:hover { background: rgba(201,168,76,0.15); transform: translateX(5px); }
.muzik-liste-item.caliyor { border-left: 4px solid var(--accent-color); background: rgba(201,168,76,0.1); }

.muzik-kontrol-alani { padding: 20px; background: rgba(0,0,0,0.4); border-top: 1px solid var(--card-border); }
.calan-bilgi { text-align: center; margin-bottom: 15px; }
#calanSarkiBaslik { color: var(--accent-color); font-weight: 700; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-bilgi { color: var(--text-color); opacity: 0.6; font-size: 11px; margin-top: 4px; display: block; }

.muzik-butonlar { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 15px; }
.m-ctrl-btn { background: none; border: none; color: var(--text-color); font-size: 18px; cursor: pointer; transition: 0.2s; }
.m-play-btn { width: 45px; height: 45px; border-radius: 50%; background: var(--accent-color); color: #000; display: flex; justify-content: center; align-items: center; font-size: 18px; }

.muzik-ilerleme { width: 100%; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; cursor: pointer; position: relative; }
.muzik-dolgu { height: 100%; width: 0%; background: var(--accent-color); transition: width 0.1s linear; }
/* === KAVRAM KARTLARI 3D DÖNÜŞÜM DÜZELTMESİ === */
.flashcard {
    transform-style: preserve-3d !important;
    -webkit-transform-style: preserve-3d !important;
}

.flashcard-face {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}

.flashcard-back {
    transform: rotateY(180deg) !important;
    -webkit-transform: rotateY(180deg) !important;
}
