/* 0. GENEL KUTU MODELİ (TAŞMALARI ÖNLER) */
* { box-sizing: border-box; }

/* 1. MOBİL SABİTLEME VE ARKA PLAN (KESİK HATASI BURADA ÇÖZÜLDÜ) */
html, body {
    min-height: 100vh; /* height:100% yerine min-height yapıldı */
    margin: 0;
    padding: 0;
    background-color: #0f172a;
    overflow-x: hidden; /* Sadece yatay taşmayı engelle, dikey serbest kalsın */
}

body {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    background-attachment: fixed; /* Arka planı sabitle, kaydırınca kesilmesin */
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Ortalama yerine üstten başlatıyoruz */
    padding-top: 20px; 
    padding-bottom: 30px; 
}

.quiz-container {
    max-width: 500px;
    width: 92%;
    z-index: 10;
}

/* 2. SKOR PANELI */
.score-board {
    display: flex; justify-content: space-between; margin-bottom: 10px;
    color: #94a3b8; font-weight: 600; font-size: 0.85rem; padding: 0 10px;
}
.score-value { color: #38bdf8; font-size: 1.15rem; font-weight: 700; }

/* 3. SORU KARTI */
.soru-karti {
    border-radius: 28px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05); background-color: #1e293b; overflow: hidden;
}
.kart-ust { background-color: rgba(15, 23, 42, 0.6); border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 12px 20px; }
.kategori-baslik { font-weight: 700; color: #f1f5f9; font-size: 0.85rem; }
.soru-metni-kutu { min-height: 70px; display: flex; align-items: center; padding: 15px 20px; }
.soru-metni { font-weight: 600; color: #f8fafc; font-size: 1.15rem; line-height: 1.4; margin: 0; }

/* 4. ŞIKLAR VE HARF KUTUSU */
.secenek-btn {
    border-radius: 16px !important; border: 1px solid rgba(255, 255, 255, 0.1);
    background: #334155; color: #e2e8f0; text-align: left; padding: 12px 18px;
    font-size: 0.95rem; transition: all 0.2s ease !important; display: flex;
    align-items: center; width: 100%; margin-bottom: 10px; cursor: pointer; outline: none;
}
.secenek-btn:hover:not(:disabled) { background: #475569 !important; border-color: #38bdf8 !important; color: #ffffff !important; }
.secenek-btn:hover:not(:disabled) .harf-kutusu { background-color: #38bdf8; color: #0f172a; }

.harf-kutusu {
    width: 32px; height: 32px; background-color: #1e293b; color: #94a3b8;
    border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; margin-right: 12px; flex-shrink: 0; transition: all 0.2s ease;
}
.secenek-metin { text-align: left; flex-grow: 1; }

/* 5. CEVAP RENKLERİ VE DURUMLARI */
.cevap-dogru { background: #059669 !important; border-color: #10b981 !important; color: white !important; }
.cevap-yanlis { background: #dc2626 !important; border-color: #ef4444 !important; color: white !important; }
.cevap-pasif { opacity: 0.5 !important; background: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.1) !important; color: #94a3b8 !important; }

/* 6. SONRAKİ SORU BUTONU */
.sonraki-btn {
    background: #38bdf8; color: #0f172a; border: none; padding: 16px; border-radius: 18px;
    font-weight: 700; width: 100%; font-size: 1rem; box-shadow: 0 10px 15px -3px rgba(56, 189, 248, 0.3);
    margin-top: 15px; margin-bottom: 5px; cursor: pointer; display: block; transition: all 0.3s ease;
}
.sonraki-btn:hover { background: #0284c7; color: #ffffff !important; box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.4); }
.sonraki-btn:active { transform: scale(0.98); }

/* 7. KATEGORİ KUTULARI (INDEX.PHP - 3'lü Sütun Uyumlu) */
.kategori-kutu {
    background-color: #1e293b; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px;
    padding: 15px 10px; text-align: center; text-decoration: none !important; display: flex;
    flex-direction: column; align-items: center; justify-content: center; transition: all 0.3s ease;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.4); height: 100%;
}
.kategori-kutu:hover, .kategori-kutu:active {
    transform: translateY(-5px); background-color: #334155; border-color: #38bdf8; box-shadow: 0 10px 20px -5px rgba(56, 189, 248, 0.2);
}
.kategori-icon { color: #38bdf8; transition: all 0.3s ease; }
.kategori-kutu:hover .kategori-icon { transform: scale(1.1); }
.kategori-isim { color: #f8fafc; font-weight: 600; margin: 0; }

.kategori-hepsi { background: linear-gradient(135deg, #1e293b 0%, #0ea5e9 100%); border-color: #38bdf8; padding: 20px; }
.kategori-hepsi .kategori-isim, .kategori-hepsi .kategori-icon { color: #ffffff; }

/* 8. YENİ UYGULAMAYI İNDİR BANNERI */
.download-banner {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}