/* --- GENEL AYARLAR --- */
* { box-sizing: border-box; }

html, body {
    height: 100%; margin: 0; padding: 0;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: #000000; color: #ffffff;
    font-size: 16px; line-height: 1.5;
    display: flex; flex-direction: column;
}

/* --- LİNK (BAĞLANTI) AYARLARI --- */
/* Metin içindeki linkler sarı ve altı çizili olsun (Yüksek Kontrast) */
a:not(.konu-baslik-butonu):not(.test-link):not(.ana-menu-karti):not(.sik-butonu):not(.nav-buton):not(.site-linki):not(.skip-link) {
    color: #ffff00;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.2rem;
    transition: all 0.2s;
}

a:not(.konu-baslik-butonu):not(.test-link):not(.ana-menu-karti):not(.sik-butonu):not(.nav-buton):not(.site-linki):not(.skip-link):hover {
    background-color: #ffff00;
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
}

/* ERİŞİLEBİLİRLİK VE ODAKLANMA */
.skip-link {
    position: absolute; top: -100px; left: 0;
    background: #ffff00; color: #000; padding: 10px; z-index: 3000;
    font-weight: bold; text-decoration: none; border: 2px solid #fff;
}
.skip-link:focus { top: 0; }

/* NVDA Odaklanma Çerçevesi */
a:focus, button:focus, summary:focus, input:focus {
    outline: 3px solid #ffff00 !important; outline-offset: 2px; z-index: 100;
}

/* --- ANA KAPSAYICI --- */
.container {
    width: 100%; max-width: 1100px; margin: 20px auto; padding: 0 20px;
    flex: 1; display: flex; flex-direction: column; justify-content: flex-start;
}
/* --- YENİ ANA SAYFA TASARIMI --- */
.ana-sayfa-body { background-color: #4a0000 !important; }

.modern-header {
    background-color: #b30000;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 3px solid #ffffff;
}

.header-sabit-sol, .header-sabit-sag {
    font-size: 2rem; font-weight: 900; color: rgba(255,255,255,0.7);
    min-width: 120px;
}

.header-merkez { text-align: center; flex: 1; }
.site-baslik { margin: 0; font-size: 2.2rem; font-weight: 800; color: #fff; }
.site-url { font-size: 1.2rem; color: #fff; }

.ust-kapsayici { width: 90%; max-width: 1200px; margin: 20px auto; }
.hosgeldin-metni { text-align: center; margin-bottom: 20px; color: #fff; }

.tam-genislik-buton { width: 100%; margin-bottom: 30px !important; }

.ana-izgara-sistemi {
align-content: start;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90%; max-width: 1200px;
    margin: 0 auto;
    position: relative;
    gap: 60px;
}

.dikey-ayrac {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 4px;
    background-color: #ffff00;
    transform: translateX(-50%);
}

.sol-sutun, .sag-sutun { display: flex; flex-direction: column; gap: 15px; }

/* Ana Sayfa Buton Odaklanma Efekti */
.ana-sayfa-body .ana-menu-karti {
    background-color: rgba(0,0,0,0.4);
    border: 2px solid #ffffff;
    color: #ffffff !important;
    padding: 25px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
}

.ana-sayfa-body .ana-menu-karti:focus, 
.ana-sayfa-body .ana-menu-karti:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
    outline: 5px solid #ffff00;
}

/* Netlify Footer Ayarı */
.ana-footer { text-align: center; padding: 40px; border-top: 1px solid #fff; margin-top: 50px; }
.netlify-link { 
    color: #ffff00 !important; 
    text-decoration: underline; 
    font-size: 1rem; 
    font-weight: normal !important;
}
/* --- TEST SAYFALARI BAŞLIĞI (SADE) --- */
.ana-baslik-kutusu {
    background-color: #000; width: 100%; padding: 15px 0;
    text-align: center; border-bottom: 1px solid #333; margin-top: 4px;
}
.ana-baslik-kutusu h1 {
    margin: 0; font-size: 2rem; font-weight: 800;
    text-transform: uppercase; color: #ffff00; letter-spacing: 1px;
}
.yil-etiketi { color: #fff; margin-left: 10px; font-weight: 300; }

/* --- EKPSS IZGARA (GRID) TASARIMI (Test Listesi - KIRMIZI KUTULAR) --- */
.konu-listesi-kapsayici {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Eşit Sütun */
    gap: 20px; /* Kutular arası boşluk */
    align-items: start;
    margin-top: 20px;
}

/* Kırmızı Ana Konu Butonları */
.konu-baslik-butonu {
    background-color: #cc0000 !important; /* Kırmızı Zemin */
    color: #ffffff !important; /* Beyaz Yazı */
    border: 2px solid #ffffff;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    text-align: center;
    border-radius: 8px;
    outline: none;
    transition: background 0.3s;
    width: 100%;
}

.konu-baslik-butonu:hover, .konu-baslik-butonu:focus {
    background-color: #ff0000 !important;
}

/* Ok işaretini gizle */
.konu-baslik-butonu::-webkit-details-marker { display: none; }

/* Açılan Mavi/Siyah Alan */
.test-linkleri-alani {
    background-color: #000000;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    border: 2px solid #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Test Linkleri (Kırmızı Yazı, Beyaz Şerit) */
.test-link {
    color: #cc0000 !important; /* Kırmızı Yazı */
    background-color: #fff;
    border: 2px solid #fff;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.test-link:hover, .test-link:focus {
    background-color: #ffff00; /* Odaklanınca Sarı */
    color: #000 !important;
    transform: translateX(5px);
}

/* Tam Genişlik (Karma Testler İçin) */
.tam-genislik { grid-column: 1 / -1; }

/* --- TEST ÇÖZME EKRANI STİLLERİ --- */
.test-ust-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 1.1rem; color: #888; }
.test-ust-bar span { color: #ffff00; }

.soru-kutusu {
    background-color: #000; border: 1px solid #fff; padding: 30px;
    border-radius: 12px; text-align: left; margin-bottom: 20px;
}

#soru-metni { font-size: 1.6rem; line-height: 1.5; color: #fff; font-weight: 500; }

.oncul-kapsayici {
    background-color: #0a0a0a; border-left: 4px solid #ffff00;
    padding: 15px 20px; margin: 20px 0; border-radius: 0 10px 10px 0;
}
.oncul-satir { display: flex; align-items: baseline; margin-bottom: 8px; font-size: 1.4rem; }
.oncul-no { font-weight: 900; color: #ffff00; min-width: 35px; margin-right: 10px; text-align: right; }

.siklar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; width: 100%; }
.siklar-grid.tek-sutun { grid-template-columns: 1fr; }

.sik-butonu {
    background-color: #000 !important; color: #fff !important;
    border: 1px solid #ffff00 !important; border-radius: 10px;
    padding: 15px 20px; font-weight: 600; font-size: 1.25rem;
    cursor: pointer; text-align: left; display: flex; align-items: center;
    transition: all 0.2s; min-height: 60px;
}
.sik-butonu.dogru { background-color: #008000 !important; color: #fff !important; border: 2px solid #fff !important; }
.sik-butonu.yanlis { background-color: #b30000 !important; color: #fff !important; border: 2px solid #fff !important; }
.navigasyon-alani { display: flex; gap: 20px; margin-top: 20px; }
.nav-buton { flex: 1; padding: 15px; font-size: 1.1rem; font-weight: bold; background-color: #000; color: #fff; border: 1px solid #ffff00; border-radius: 10px; cursor: pointer; }

footer { text-align: center; padding: 20px; border-top: 1px solid #333; font-size: 0.9rem; color: #777; margin-top: auto; }

/* --- TÜRKÇE PARAGRAF SORULARINA ÖZEL DÜZENLEME (UZUN SORULAR İÇİN) --- */
/* Bu ayar, sadece script.js'in eklediği 'uzun-soru' sınıfına sahip
   olan konteynerler için çalışır. Diğer dersleri etkilemez. */
.container.uzun-soru #soru-metni {
    /* Soru metni alanını küçült ve kaydırılabilir yap */
    max-height: 250px; /* Maksimum yükseklik sınırı */
    overflow-y: auto; /* Dikey kaydırma çubuğu ekle */
    padding-right: 15px; /* Kaydırma çubuğu için boşluk */
    margin-bottom: 20px !important;
    border-bottom: 1px dashed #555;
}

/* 769px ve üzeri ekranlar için optimizasyon (Bilgisayar/Tablet) */
@media screen and (min-width: 769px) {
    .container.uzun-soru .soru-kutusu {
        /* Soru kutusunun içindeki boşluğu azalt */
        padding: 20px;
    }
    
    /* Şıklar alanı 2 sütunlu kalır, böylece daha kompakt görünür */
    .container.uzun-soru .siklar-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 10px; 
    }
}
/* MOBİL UYUM */
@media screen and (max-width: 768px) {
    /* 1. SARI ŞERİDİ YOK EDER: Ortadaki çizgiyi mobilde gizleyen satır budur */
    .dikey-ayrac { display: none !important; }

    /* 2. OKANHOCA YAZISINI DÜZELTİR: Başlık kutusunu mobilde serbest bırakan satır budur */
    .modern-header {
        height: auto !important; 
        flex-direction: column !important; 
        padding: 15px !important;
    }
    
    /* 3. ALT ALTA SIRALAMA: Linklerin ve şıkların üst üste binmemesi için gerekli satır */
    .ana-izgara-sistemi, .konu-listesi-kapsayici, .siklar-grid { 
        grid-template-columns: 1fr !important; 
    }
}
/* --- GENEL SIRALAMA TABLOSU (KÖRCÜL DOSTU) --- */
.genel-siralama-kapsayici {
    margin-top: 30px;
    border: 4px solid #ffffff;
    background-color: #8B0000; /* Koyu Kırmızı */
    padding: 10px;
    border-radius: 8px;
}

.siralama-baslik {
    background-color: #000000;
    color: #ffff00;
    padding: 15px;
    margin: -10px -10px 10px -10px;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 2px solid #ffffff;
}

.siralama-tablosu {
    width: 100%;
    border-collapse: collapse;
    color: #ffffff;
    font-size: 1.3rem;
}

.siralama-tablosu th {
    border-bottom: 2px solid #ffffff;
    padding: 12px;
    background-color: #5a0000;
}

.siralama-tablosu td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.siralama-tablosu tr:last-child td { border-bottom: none; }