/* Oyun liderlik tablosu stilleri (includes/game-leaderboard.php).
   6 Agu 2026'da include'un govdesindeki iki <style> blogundan buraya alindi.
   Onceden bu 5 KB, liderlik tablosu olan 16 oyun sayfasinin HER BIRINDE
   HTML'in icinde tekrar tekrar iniyordu; artik tek dosya, 1 yil onbellekli.
   Oyun sayfalari bunu $page_css dizisinde KENDI CSS'lerinden SONRA bildirir —
   sira eskisiyle ayni kalsin diye (once sayfa, sonra liderlik). */

/* ===== Liderlik tablosu (stroop-testi ile aynı tasarım) ===== */
.lb-container {
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
    /* Font bilerek tanımlanmadı — sayfanın global Poppins'i miras alınır (assets/global.css --font) */
    text-align: left;
}

/* Başlık — stroop hero-lb h3 */
.lb-head {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 14px; font-size: 1.05em; font-weight: 700; color: #0f172a;
}
/* Gri metinler #94a3b8'den #64748b'ye alındı: beyaz üstünde #94a3b8
   kontrastı 2.55:1 (WCAG AA küçük metin için 4.5:1 gerekir), #64748b 4.76:1.
   Görsel olarak hâlâ "soluk gri", ama okunabilir. */
.lb-head small { font-weight: 500; color: #64748b; font-size: .78em; margin-left: auto; }
.lb-head-ic { flex-shrink: 0; color: #d97706; }
.lb-row .lb-rank .lb-madalya { display: block; margin: 0 auto; filter: drop-shadow(0 2px 3px rgba(15,23,42,.15)); }

/* Zorluk sekmeleri (yalnız zorluk seviyesi olan oyunlarda görünür) */
.lb-tabs { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
/* Zaman penceresi (Tüm Zamanlar / Bu Ay): zorluk sekmelerinin aksine her
   oyunda görünür; iki eşit parçalı anahtar gibi çizilir ki zorluk
   pillerinden ayrışsın. */
.lb-period { display: flex; margin-bottom: 8px; }
.lb-period .lb-tab { flex: 1; text-align: center; }
.lb-tab {
    flex: 1 1 auto; min-width: 0; padding: 7px 8px; border: 1px solid #e2e8f0; background: #fff;
    border-radius: 10px; font-family: inherit; font-size: .8em; font-weight: 600; color: #64748b;
    cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .15s;
}
.lb-tab:hover { border-color: #c4b5fd; color: #6d28d9; }
.lb-tab.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }

/* Liste — stroop st-lb-list */
.lb-list { border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; }
.lb-row {
    display: flex; align-items: center; gap: 10px; padding: 5px 14px;
    font-size: .88em; font-weight: 500; color: #475569;
    border-bottom: 1px solid #eef2f7; background: #fff;
}
.lb-row:last-child { border-bottom: none; }
.lb-row .lb-rank { width: 30px; flex-shrink: 0; font-weight: 700; color: #64748b; text-align: center; font-size: 1.35em; line-height: 1; }
.lb-row .lb-nm { flex: 1; color: #0f172a; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .lb-sc { text-align: right; font-weight: 700; color: #7c3aed; flex-shrink: 0; white-space: nowrap; }
.lb-row.me { background: #f5f3ff; box-shadow: inset 3px 0 0 #7c3aed; }
.lb-empty { padding: 16px; text-align: center; color: #64748b; font-size: .88em; font-weight: 500; line-height: 1.5; }

/* "Sen" satırı — ilk 5'e giremeyen oyuncu için tablonun altına eklenir.
   Kesik çizgi, listenin devamı olduğunu ama bitişik sıra olmadığını anlatır. */
.lb-row.lb-me-out {
    border-top: 2px dashed #e2e8f0; border-bottom: none;
    background: #faf7ff;
}
.lb-row.lb-me-out .lb-rank { font-size: 1em; color: #7c3aed; }
.lb-me-total { font-weight: 500; color: #64748b; font-size: .82em; margin-left: 6px; }

/* Adınız çubuğu (isim kayıtlıysa) */
.lb-my-name-bar {
    display: none; align-items: center; gap: 10px;
    background: #faf7ff; border: 1px solid #ede9fe; border-radius: 12px;
    padding: 8px 12px; margin-bottom: 12px; font-size: .84em; font-weight: 500; color: #475569;
}
.lb-my-name-bar strong { color: #0f172a; font-weight: 700; }
.lb-edit-btn-new {
    margin-left: auto; background: none; border: none; color: #7c3aed;
    font-weight: 600; cursor: pointer; font-size: .95em; font-family: inherit; padding: 2px 4px;
}
.lb-edit-btn-new:hover { color: #6d28d9; text-decoration: underline; }

/* İsim girme kutusu (Anonim skor varsa) — stroop st-save-box benzeri */
.lb-name-prompt {
    display: none; background: #faf7ff; border: 1px solid #ede9fe; border-radius: 10px;
    padding: 10px; text-align: center; margin-bottom: 12px;
}
.lb-name-prompt p { margin: 0 0 8px; color: #6d28d9; font-weight: 500; font-size: .8em; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-input-group { display: flex; gap: 6px; }
.lb-input {
    flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: .82em; outline: none; font-family: inherit; color: #334155;
}
.lb-input:focus { border-color: #a78bfa; box-shadow: 0 0 0 2px rgba(124,58,237,.1); }
.lb-btn {
    padding: 7px 14px; background: #7c3aed; color: #fff; border: none; border-radius: 8px;
    font-weight: 500; cursor: pointer; font-size: .82em; font-family: inherit; transition: background .18s;
    flex-shrink: 0;
}
.lb-btn:hover { background: #6d28d9; }
