/* ==========================================================================
   Slovra - CANLI OYUN STİLLERİ (GAME.CSS) - FİNAL REVİZE (V4)
   ========================================================================== */

/* --- 1. ANİMASYONLAR --- */
@keyframes ringScale { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes slideInRank { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes growUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }

.pulse-ring {
    width: 60px; height: 60px; border-radius: 50%;
    border: 4px solid var(--color-green);
    margin: 0 auto 20px auto;
    animation: ringScale 2s infinite ease-out;
}

/* --- 2. GİRİŞ EKRANI (LOBBY) --- */
.live-join-box {
    background: var(--card-bg);
    padding: 30px 20px !important;
    width: 90% !important;
    max-width: 350px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important;
    margin: 30px auto !important;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.live-join-box h1 { font-size: 22px !important; margin-bottom: 15px !important; }

#live-pin-input {
    font-size: 28px !important;
    letter-spacing: 6px !important;
    text-align: center !important;
    font-weight: 900 !important;
    background: rgba(0,0,0,0.2) !important;
    border: 3px solid var(--color-cyan) !important;
    padding: 10px !important;
    height: 60px !important;
    border-radius: 18px !important;
    color: var(--color-cyan) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 10px 0 20px 0 !important;
    transition: 0.3s;
}
#live-pin-input:focus { 
    border-color: var(--color-green) !important; 
    box-shadow: 0 0 15px rgba(88, 204, 2, 0.3); 
}

#waiting-pin-display {
    font-size: 48px !important; font-weight: 900;
    margin: 10px 0 30px 0 !important; color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#student-wait-msg {
    color: var(--color-cyan) !important; font-size: 16px !important;
    margin-top: 20px !important; opacity: 0.8;
    animation: floatY 3s ease-in-out infinite;
}

/* --- 3. SÜRE BARI (YAPIŞKAN) --- */
#live-timer-wrapper {
    position: sticky; top: 75px; z-index: 60;
    background: rgba(255, 255, 255, 0.05) !important;
    width: 100%; height: 8px !important;
    border-radius: 4px; overflow: hidden; margin-bottom: 0;
}
#live-timer-bar {
    height: 100%; width: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff) !important;
    box-shadow: 0 0 10px #00c6ff; border-radius: 4px;
}

/* --- 4. OYUN ALANI & SORU METNİ --- */
#live-game-ui { padding-bottom: 120px !important; }

#live-q-text-container {
    min-height: auto !important; padding: 15px 10px !important; flex: 0 !important;
}
#live-q-text {
    font-size: 22px !important; margin: 10px 0 !important; font-weight: 900; line-height: 1.3;
}

/* --- 5. ŞIKLAR IZGARASI (GRID) --- */
#live-options-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 10px 80px 10px !important;
    max-width: 600px; margin: 0 auto;
    width: 100% !important;
    box-sizing: border-box;
}

/* --- 6. ŞIK KARTLARI --- */
.live-opt-card {
    min-height: 60px !important; padding: 10px !important;
    font-size: 16px !important; border-radius: 14px !important;
    font-weight: 800; color: white; text-align: center; cursor: pointer;
    box-shadow: 0 5px 0 rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    line-height: 1.2; transition: transform 0.1s; pointer-events: auto !important;
    width: 100% !important; box-sizing: border-box;
}
.live-opt-card:active { transform: translateY(4px); box-shadow: none; }

.live-color-0 { background: #e21b3c; }
.live-color-1 { background: #1368ce; }
.live-color-2 { background: #d89e00; }
.live-color-3 { background: #26890c; }

/* Kilitli Durumlar (Cevap verildiğinde veya süre bittiğinde) */
#live-options-grid[style*="pointer-events: none"] .live-opt-card, 
.dimmed-card { 
    opacity: 0.3 !important; 
    pointer-events: none !important; 
}

/* SÜRE BİTİMİ (Solma Rengi Açıldı: 0.7) */
.grid-disabled-timeout .live-opt-card { 
    opacity: 0.7 !important; /* Çok kararmasın */
    filter: grayscale(90%); /* Siyah beyaz yap */
    pointer-events: none !important; 
}

/* --- 7. GERİ BİLDİRİM EFEKTLERİ --- */
.selected-waiting {
    opacity: 1 !important; transform: scale(0.98);
    border: 3px solid #fff !important; box-shadow: 0 0 15px rgba(255,255,255,0.4);
}
.selected-waiting::after { content: "⏳"; display: block; font-size: 14px; margin-left: 5px; }

.correct-instant {
    background-color: #d7ffb8 !important; border: 3px solid #58cc02 !important; color: #58cc02 !important;
    opacity: 1 !important; transform: scale(1.02); box-shadow: 0 0 15px rgba(88, 204, 2, 0.6) !important;
}
.correct-instant::after { content: "✅"; display: block; margin-left: 5px; }

.wrong-instant {
    background-color: #ffdfe0 !important; border: 3px solid #ff4b4b !important; color: #ff4b4b !important;
    opacity: 1 !important; transform: scale(0.95);
}
.wrong-instant::after { content: "❌"; display: block; margin-left: 5px; }

/* Cevap Gizleme (Öğretmen Modu) */
.blur-answer-mode .live-opt-card { border: none !important; opacity: 1 !important; }
.blur-answer-mode .checkmark-icon { display: none !important; }
.blur-answer-mode .live-opt-card.correct-answer-card::after {
    content: "★"; position: absolute; top: 5px; right: 10px; font-size: 10px; color: rgba(255,255,255,0.3);
}

/* --- 8. AÇIK UÇLU SORU --- */
.open-question-wrapper {
    grid-column: 1 / -1 !important;
    width: 90% !important; max-width: 500px !important;
    margin: 20px auto !important;
    transform: translateX(-17px) !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; text-align: center !important;
    box-sizing: border-box !important;
}

#live-text-answer, #submit-text-btn {
    width: 100% !important; max-width: 100% !important; 
    margin: 0 auto 15px auto !important; display: block !important;
    box-sizing: border-box;
}

/* --- 9. OYUNCU LİSTESİ (CHIPS) --- */
#live-player-list, #live-game-player-list {
    display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 8px !important;
}
#live-game-player-list > div, #live-player-list > div {
    padding: 5px 12px !important; font-size: 12px !important;
    border-radius: 20px !important; background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #ddd; white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.player-answered-badge {
    background: var(--color-green) !important; border-color: var(--color-green) !important; color: white !important;
}

/* --- 10. ÖĞRETMEN KONTROLLERİ --- */
#teacher-controls {
    width: 90% !important; max-width: 500px !important;
    margin: 20px auto !important; padding: 25px !important;
    background: var(--card-bg); border-radius: 20px; box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.1);
}

#teacher-start-btn {
    position: fixed !important; left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 110px !important;
    width: 90% !important; max-width: 350px !important;
    display: flex !important; justify-content: center !important;
    align-items: center !important; z-index: 9999 !important;
    pointer-events: none !important; padding: 0 !important; margin: 0 !important;
}
#teacher-start-btn button {
    pointer-events: auto !important; width: 100% !important; display: block !important; margin: 0 !important;
    box-shadow: 0 10px 30px rgba(88, 204, 2, 0.5) !important;
    border-radius: 50px !important; font-size: 18px !important; padding: 15px !important;
    animation: floatY 2s ease-in-out infinite;
}

#teacher-next-q-btn {
    position: fixed !important; bottom: 90px !important;
    left: 50% !important; transform: translateX(-50%) !important;
    width: auto !important; max-width: 95%; min-width: 200px;
    background: rgba(20, 20, 25, 0.95) !important; backdrop-filter: blur(15px);
    padding: 8px 12px !important; border-radius: 50px !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
    z-index: 10000 !important;
    display: flex !important; align-items: center !important; justify-content: center !important; gap: 12px !important;
}
#teacher-next-q-btn button {
    margin: 0 !important; border-radius: 25px !important; font-size: 14px !important;
    box-shadow: none !important; display: flex !important; align-items: center; justify-content: center;
}
#toggle-answer-btn {
    width: 40px !important; height: 40px !important; padding: 0 !important;
    border-radius: 50% !important; font-size: 18px !important; flex-shrink: 0;
}
#main-control-btn { padding: 10px 20px !important; white-space: nowrap; }

#teacher-next-q-btn.hidden, #teacher-start-btn.hidden {
    display: none !important; visibility: hidden !important; pointer-events: none !important;
}

/* --- 11. OYUN SONU --- */
.podium-container {
    display: flex; justify-content: center; align-items: flex-end; height: 250px; gap: 15px; margin-bottom: 30px;
}
.podium-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 80px; }
.podium-bar {
    width: 100%; border-radius: 10px 10px 0 0; display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); animation: growUp 1s ease-out forwards; transform-origin: bottom;
}
.place-1 { height: 180px; background: linear-gradient(45deg, #ffd700, #ffec8b); border: 3px solid #e6c200; z-index: 2; }
.place-2 { height: 130px; background: linear-gradient(45deg, #c0c0c0, #e0e0e0); border: 3px solid #a8a8a8; }
.place-3 { height: 90px; background: linear-gradient(45deg, #cd7f32, #edafa0); border: 3px solid #b06b2a; }
.podium-name { color: white; font-weight: 800; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); font-size: 14px; text-align: center; }
.podium-score { background: #333; color: var(--color-cyan); padding: 4px 8px; border-radius: 10px; font-size: 11px; font-weight: bold; margin-top: 5px; }

#live-ranking-list { display: flex; flex-direction: column; gap: 10px; max-width: 500px; margin: 0 auto; }
.live-rank-item {
    background: #202f36; padding: 15px 20px; border-radius: 16px;
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid #37464f; box-shadow: 0 4px 10px rgba(0,0,0,0.2); animation: slideInRank 0.5s ease-out;
}
.live-rank-item:nth-child(1) { border: 2px solid #ffd700; background: rgba(255, 215, 0, 0.1); }
.live-rank-item:nth-child(2) { border: 2px solid #c0c0c0; background: rgba(192, 192, 192, 0.1); }
.live-rank-item:nth-child(3) { border: 2px solid #cd7f32; background: rgba(205, 127, 50, 0.1); }

/* --- 12. PC / PROJEKTÖR MODU --- */
@media (min-width: 768px) {
    #live-options-grid { gap: 20px !important; max-width: 800px !important; padding-bottom: 50px !important; }
    .live-opt-card { min-height: 80px !important; font-size: 24px !important; border-width: 3px !important; }
    #live-q-text { font-size: 32px !important; margin-bottom: 20px !important; }
    .open-question-wrapper b { font-size: 34px !important; }
    #live-text-answer { font-size: 20px !important; padding: 20px !important; }
    #live-ranking-list { max-width: 650px; }
    .live-rank-item { padding: 20px 30px; font-size: 18px; }
    .place-1 { height: 220px; } .place-2 { height: 160px; } .place-3 { height: 120px; }
}

/* --- 13. MOBİL ÖZEL AYARLAR --- */
@media (max-width: 600px) {
    #teacher-controls, .live-join-box { width: 88% !important; margin: 20px auto !important; }
    .content-padding { padding-left: 15px !important; padding-right: 15px !important; }
    .auth-logo img, .logo img { max-width: 60px !important; margin-bottom: 10px !important; }
    #live-q-text { font-size: 18px !important; }
    #live-options-grid { gap: 8px !important; }
    .live-opt-card { min-height: 55px !important; font-size: 14px !important; padding: 5px !important; }
    
    .open-question-wrapper {
        transform: none !important; margin: 20px auto !important; width: 92% !important; 
        grid-column: 1 / -1 !important; justify-self: center !important;
    }
    #live-text-answer, #submit-text-btn { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
    #live-timer-wrapper { top: 65px; }
}

/* Şık Kartları */
.live-opt-card {
    /* Varsayılan: Tıklanabilir */
    pointer-events: auto !important; 
    cursor: pointer;
    /* ... Diğer stiller aynı ... */
}

/* --- KİLİTLİ DURUMLAR (KESİN ÇÖZÜM) --- */

/* 1. Eğer grid (kapsayıcı) kilitliyse, içindeki tüm kartların tıklanmasını engelle */
#live-options-grid[style*="pointer-events: none"] .live-opt-card {
    pointer-events: none !important;
    cursor: default;
    opacity: 0.3 !important; 
}

/* 2. Seçilmeyen kartlar silikleşir ve tıklanamaz */
.dimmed-card { 
    opacity: 0.3 !important; 
    pointer-events: none !important; 
}

/* 3. Süre bittiğinde kilitlenir */
.grid-disabled-timeout .live-opt-card { 
    opacity: 0.7 !important; /* Kullanıcı istediği gibi açık renk */
    filter: grayscale(90%); 
    pointer-events: none !important; 
}


/* ==========================================================================
   BÖLÜM 14: AÇIK TEMA (LIGHT MODE) UYUMLULUĞU
   ========================================================================== */

body.light-mode .live-join-box {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    color: #333 !important;
}

body.light-mode .live-join-box h1 {
    color: #222 !important;
}

body.light-mode #live-pin-input {
    background: #f3f4f6 !important;
    border-color: #ccc !important;
    color: #222 !important;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05) !important;
}

body.light-mode #live-pin-input:focus {
    border-color: var(--color-green) !important;
    background: #fff !important;
}

body.light-mode #waiting-pin-display {
    color: #222 !important;
    text-shadow: none !important;
}

body.light-mode #student-wait-msg {
    color: #555 !important;
}

/* Soru Metni ve Alanı */
body.light-mode #live-q-text {
    color: #111 !important;
    text-shadow: none !important;
}

/* Oyuncu Listesi (Chips) */
body.light-mode #live-player-list > div, 
body.light-mode #live-game-player-list > div {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
}

/* Şık Kartları (Renkler kalır, gölgeler yumuşar) */
body.light-mode .live-opt-card {
    box-shadow: 0 4px 0 rgba(0,0,0,0.15) !important;
    border-color: rgba(0,0,0,0.1) !important;
}
body.light-mode .live-opt-card:active {
    box-shadow: none !important;
}

/* Açık Uçlu Soru */
body.light-mode #live-text-answer {
    background: #fff !important;
    border: 2px solid #ccc !important;
    color: #333 !important;
}

/* Liderlik Tablosu (Sıralama) */
body.light-mode .live-rank-item {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #eee !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

/* Podium İsimleri */
body.light-mode .podium-name {
    color: #333 !important;
    text-shadow: none !important;
}

/* Öğretmen Kontrolleri */
body.light-mode #teacher-controls {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    color: #333 !important;
}

body.light-mode #teacher-next-q-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    color: #333 !important;
}
body.light-mode #teacher-next-q-btn button {
    color: #333 !important;
}

/* Süre Barı */
body.light-mode #live-timer-wrapper {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Geri Bildirim Kutuları (Correct/Wrong Instant) */
body.light-mode .correct-instant {
    background-color: #e6ffda !important; /* Daha açık yeşil */
    border-color: #4caf50 !important;
    color: #2e7d32 !important;
}

body.light-mode .wrong-instant {
    background-color: #ffebee !important; /* Daha açık kırmızı */
    border-color: #ef5350 !important;
    color: #c62828 !important;
}

/* ==========================================================================
   BÖLÜM 15: GÖRSEL İYİLEŞTİRMELER (HEADER & KARTLAR)
   ========================================================================== */

/* --- 1. ÜST BİLGİ BARI (Header) --- */
.live-game-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    margin-bottom: 10px;
    /* Dark Mode (Varsayılan) */
    background: transparent; /* Arka planı kaldırdık, ferah durması için */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#live-q-counter {
    color: var(--color-cyan);
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

.live-info-right {
    font-size: 13px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-ans-badge {
    background: var(--color-green);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(88, 204, 2, 0.3);
}

/* --- LIGHT MODE (AÇIK TEMA) İÇİN HEADER --- */
body.light-mode .live-game-info-bar {
    background: #ffffff !important; /* Temiz beyaz */
    border-bottom: 1px solid #eee !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); /* Çok hafif gölge */
}

body.light-mode #live-q-counter {
    color: #0072ff !important; /* Açık temada mavi yazı */
    text-shadow: none !important;
}

body.light-mode .live-info-right {
    color: #666 !important; /* Gri yazı */
}

/* --- 2. SÜRE BİTTİĞİNDE / CEVAP VERİLDİĞİNDE KART GÖRÜNÜMÜ --- */

/* DARK MODE: Sönük Kartlar */
.grid-disabled-timeout .live-opt-card,
.dimmed-card {
    opacity: 0.2 !important; /* Çok daha silik olsun */
    filter: grayscale(100%) brightness(0.5) !important; /* Renkleri tamamen öldür ve karart */
    transform: scale(0.98);
}

/* DARK MODE: Doğru Cevap (Parlasın) */
.grid-disabled-timeout .live-opt-card.correct-answer-card {
    opacity: 1 !important;
    filter: none !important;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(88, 204, 2, 0.6) !important;
    z-index: 10;
}

/* --- LIGHT MODE: Sönük Kartlar (KİRLİ GÖRÜNTÜ DÜZELTMESİ) --- */
body.light-mode .grid-disabled-timeout .live-opt-card,
body.light-mode .dimmed-card {
    opacity: 1 !important; /* Şeffaflık YOK (Arkadaki beyaz karışmasın) */
    background: #f3f4f6 !important; /* Dümdüz gri arka plan */
    color: #9ca3af !important; /* Silik gri yazı */
    border: 1px solid #e5e7eb !important; /* İnce gri çerçeve */
    box-shadow: none !important;
    filter: none !important; /* Grayscale kullanmıyoruz, direkt gri yaptık */
    cursor: default !important;
}

/* LIGHT MODE: Doğru Cevap (Canlı Yeşil) */
body.light-mode .grid-disabled-timeout .live-opt-card.correct-answer-card {
    background: #dcfce7 !important; /* Çok açık yeşil zemin */
    color: #166534 !important; /* Koyu yeşil yazı */
    border: 2px solid #22c55e !important;
    opacity: 1 !important;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3) !important;
}

/* ==========================================================================
   DÜZELTME: HEADER VE ALT ALAN (GÖRÜNTÜ KESME SORUNU GİDERİLDİ)
   ========================================================================== */

/* --- 1. ÜST HEADER BAR --- */
.live-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    /* Dark Mode Varsayılan: Hafif şeffaf siyah, keskin değil */
    background: rgba(0, 0, 0, 0.2); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); /* Hafif bulanıklık efekti */
}

/* Header içindeki sağ kısım (Cevaplayan yazısı) */
.live-info-right {
    font-size: 13px; 
    color: #ccc; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

/* Cevaplayan Badge (Yeşil kutu) */
.live-ans-badge {
    background: var(--color-green); 
    color: white; 
    padding: 3px 10px; 
    border-radius: 12px; 
    font-weight: bold; 
    font-size: 14px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- 2. ALT ALAN (PLAYER STATUS) --- */
/* O siyah gradyanı (görüntüyü kesen kısmı) tamamen kaldırdık */
#live-player-status-area {
    padding: 20px; 
    padding-bottom: 100px; /* Alt boşluk */
    background: transparent !important; /* Gradyan YOK */
    border-top: none; /* Çizgi YOK */
}

/* --- 3. LIGHT MODE (AÇIK TEMA) AYARLARI --- */

/* Light Mode: Header */
body.light-mode .live-header-bar {
    background: #ffffff !important; /* Temiz Beyaz */
    border-bottom: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Light Mode: Soru Sayacı Yazısı */
body.light-mode #live-q-counter {
    color: #0072ff !important; /* Mavi renk (Okunabilirlik için) */
    text-shadow: none !important;
}

/* Light Mode: "Cevaplayan" yazısı */
body.light-mode .live-info-right {
    color: #666 !important;
}

/* Light Mode: Alt Alan (Player Status) */
body.light-mode #live-player-status-area {
    background: #f8f9fa !important; /* Çok açık gri zemin */
    border-top: 1px solid #e0e0e0 !important; /* Üstüne ince bir çizgi */
}

/* Light Mode: Oyuncu İsimleri (Chips) */
body.light-mode #live-game-player-list > div {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ==========================================================================
   DÜZELTME: LIGHT MODE (AÇIK TEMA) DETAYLARI - V2
   ========================================================================== */

/* --- 1. AÇIK UÇLU SORU CEVAP KUTUSU (Öğretmen Ekranı) --- */
/* Koyu görünme sorununu çözer, beyaz ve temiz yapar */
body.light-mode .open-question-wrapper {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333333 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
    border-radius: 16px !important;
}

/* Cevabın kendisi (Kalın yazı) */
body.light-mode .open-question-wrapper b {
    color: #0072ff !important; /* Dikkat çekmesi için mavi */
    text-shadow: none !important;
    font-weight: 800 !important;
}

/* --- 2. OYUNCU "CEVAPLANDI" ROZETİ (Kullanıcı Ekranı) --- */
/* Beyaz modda beyaz yazı okunmadığı için stil değiştirildi */
/* Yeni Stil: Çok açık yeşil zemin üzerine Koyu yeşil yazı */
body.light-mode .player-answered-badge {
    background: #dcfce7 !important; /* Açık Yeşil */
    color: #14532d !important;      /* Koyu Yeşil (Okunaklı) */
    border: 1px solid #86efac !important;
    box-shadow: none !important;
}

/* Genel (Beyaz Mod) için zorunlu siyah renk */
.player-answered-badge span {
    color: #333 !important; /* Siyah/Koyu Gri yap ve inline stili ez */
}

/* Karanlık Mod (Dark Mode) aktifken beyaz olsun */
/* Not: Karanlık mod sınıfınız 'dark-mode' veya 'dark-theme' ise ona göre düzenleyin */
body.dark-mode .player-answered-badge span {
    color: #fff !important;
}