/* ============================================================================
   KOLEKSİYON — Unity `KoleksiyonlarPaneli` sayfa portu (2026-08-22)

   ⚠️ `:root` token'ları YENİDEN TANIMLANMAZ — `style.css` sahibidir. Buradaki her renk
   oradan gelir: --bg-card · --frame-wood(-lt/-dk) · --ink(-soft/-muted) · --shadow-frame.
   Kit çerçeve imzası (diğer panellerle aynı): bg-card + 3px frame-wood + 20-24px radius
   + inset 2px frame-wood-lt.

   🔴 RENK TEK SİNYAL DEĞİLDİR (lig.css kuralı): kova/kademe ayrımı renk + ikon/şerit
   birlikte anlatılır — renk körlüğünde de okunabilsin.
   ============================================================================ */

.kol-sayfa {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.kol-baslik { text-align: center; margin: 4px 0 14px; }
.kol-baslik h1 {
  margin: 0;
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 700;
  color: var(--ink);
}
.kol-alt {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ── SEKME ÇUBUĞU ────────────────────────────────────────────────────────── */
.kol-sekmeler {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.kol-sekme {
  appearance: none;
  border: 3px solid var(--frame-wood);
  background: var(--bg-card);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--frame-wood-lt);
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.kol-sekme:hover { transform: translateY(-1px); }
.kol-sekme[aria-selected="true"] {
  background: var(--frame-wood);
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--frame-wood-dk);
}
/* Seçili sekme yalnız RENKLE anlatılmaz — alt çizgi ikinci sinyaldir. */
.kol-sekme[aria-selected="true"]::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .75);
}

/* ── İÇERİK ──────────────────────────────────────────────────────────────── */
.kol-icerik {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.kol-kart {
  background: var(--bg-card);
  border: 3px solid var(--frame-wood);
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px var(--frame-wood-lt), var(--shadow-frame);
  padding: 14px 16px;
}

/* Özet kartı — Unity `InstantiateOzetKarti` */
.kol-ozet {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.kol-ozet-etiket { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.kol-ozet-deger { font-size: clamp(20px, 4vw, 26px); font-weight: 700; color: var(--ink); }

.kol-bolum-baslik {
  margin: 8px 2px 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.kol-bolum-baslik .kol-rozet {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, .06);
  border-radius: 999px;
  padding: 2px 9px;
}

.kol-bos {
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
  padding: 26px 12px;
}

/* ── HİKAYE SATIRI ───────────────────────────────────────────────────────── */
.kol-hikaye-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.kol-hikaye {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .035);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 100%;
  transition: border-color .12s ease, transform .12s ease;
}
.kol-hikaye:hover { border-color: var(--frame-wood-lt); transform: translateY(-1px); }
.kol-hikaye-kapak {
  width: 52px; height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 0, 0, .08);
}
.kol-hikaye-ad {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* ── KELİME KOVALARI ─────────────────────────────────────────────────────── */
.kol-kova-sayaclar { display: flex; gap: 10px; flex-wrap: wrap; }
.kol-kova-kutu {
  flex: 1 1 120px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .035);
  border-top: 4px solid var(--frame-wood-lt);   /* ikinci sinyal: üst şerit */
}
.kol-kova-kutu b { display: block; font-size: 22px; color: var(--ink); }
.kol-kova-kutu span { font-size: 12px; color: var(--ink-soft); }
.kol-kova-kutu.k-ogrenildi  { border-top-color: #3f9c5a; }
.kol-kova-kutu.k-tekrar     { border-top-color: #d99a2b; }
.kol-kova-kutu.k-ogrenilecek{ border-top-color: #7b8794; }

.kol-kelime-liste { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kol-kelime {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .05);
  color: var(--ink-soft);
}
.kol-kelime .kol-puan { font-size: 11px; opacity: .7; margin-left: 4px; }

/* ── İSTATİSTİK SATIRI ───────────────────────────────────────────────────── */
.kol-stat-satir {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px;
  font-size: 14px;
  border-bottom: 1px dashed rgba(0, 0, 0, .08);
}
.kol-stat-satir:last-child { border-bottom: none; }
.kol-stat-satir .kol-stat-ad { color: var(--ink-soft); }
.kol-stat-satir .kol-stat-deger { color: var(--ink); font-weight: 700; }

/* ── ÜÇ SEGMENTLİ BAR (kova yığını / kapsama) ────────────────────────────── */
/* Unity üç-yığın barının aynası. Segmentler `flex-grow` ile ORANTILIDIR;
   toplam 0 ise SON segment doldurulur (bölme hatası yerine "hiç yok" görünümü). */
.kol-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, .08);
  margin-top: 8px;
}
.kol-bar > i { display: block; height: 100%; }
.kol-bar .s1 { background: #3f9c5a; }
.kol-bar .s2 { background: #d99a2b; }
.kol-bar .s3 { background: #c9ccd1; }
.kol-bar-etiket {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-muted); margin-top: 4px;
}

@media (max-width: 480px) {
  .kol-sayfa { padding-left: 10px; padding-right: 10px; }
  .kol-hikaye-liste { grid-template-columns: 1fr; }
  .kol-sekme { padding: 7px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .kol-sekme, .kol-hikaye { transition: none; }
  .kol-sekme:hover, .kol-hikaye:hover { transform: none; }
}

/* Kelime çipinde ÇEVİRİ satırı (2026-08-23) — Unity KoleksiyonlarPaneli iki satır gösterir:
   üstte kaynak kelime (sourceWord), altında ana dildeki karşılığı (translatedWord).
   Site yalnız kaynak kelimeyi çiziyordu (o da bozuk alandan → '[object Object]'). */
/* ⚠️ `.kol-kelime` bir <span>'dir → varsayılan `display: inline`. Yalnız `flex-direction`
   yazmak SESSİZ bir no-op olurdu; kabın kendisi de flex yapılmalı. */
.kol-kelime { display: inline-flex; flex-direction: column; align-items: flex-start; }
.kol-kelime .kol-puan { margin-left: 0; align-self: flex-end; }
.kol-kelime-ceviri {
  display: block; font-style: normal; font-size: 11px;
  opacity: .72; margin-top: 1px; line-height: 1.25;
}

/* ── DİL SEKMESİ (2026-08-23, plan adım 45) ───────────────────────────────────────────
   Kart yerleşimi WEB'E ÖZGÜ; eşikler/oranlar Unity `DilAnaliz` yasasıdır. */
.kol-dil-kart { display: flex; flex-direction: column; gap: 10px; }
.kol-dil-rozet {
  margin-left: auto; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-green, #4caf50); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
}
.kol-dil-satir { display: flex; gap: 10px; flex-wrap: wrap; }
.kol-dil-kutu {
  flex: 1 1 90px; min-width: 90px; text-align: center;
  padding: 8px 6px; border-radius: 12px; background: rgba(0,0,0,.04);
}
.kol-dil-kutu b { display: block; font-size: 1.15rem; font-family: 'Fredoka', sans-serif; }
.kol-dil-kutu span { font-size: 11px; opacity: .75; }
.kol-dil-bar {
  display: flex; height: 12px; border-radius: 999px; overflow: hidden;
  background: rgba(0,0,0,.08);
}
.kol-dil-bar-ogr { background: var(--accent-green, #4caf50); }
.kol-dil-bar-kars { background: var(--accent-yellow, #f3c510); opacity: .75; }
.kol-dil-kapsama, .kol-dil-ters {
  margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-soft, #6b4a2b);
}
.kol-dil-ters { opacity: .8; }
.kol-dil-cefr { display: flex; flex-wrap: wrap; gap: 6px; }
.kol-dil-cefr-kutu {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,.05);
  font-size: 11px; line-height: 1.3;
}
.kol-dil-cefr-kutu b { font-size: 12px; }

/* ── STICKER ALBÜMÜ (2026-08-23, plan adım 44) ─────────────────────────────────────────
   Sticker = KARAKTER; kademe okuma/dinleme setlerinden türetilir (js/StickerMotoru.js). */
.kol-sticker-izgara {
  display: grid; gap: 8px; margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}
.kol-sticker {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 10px; border-radius: 14px;
  background: rgba(0,0,0,.05); border-top: 3px solid transparent;
}
.kol-sticker-ad { font-size: 13px; font-weight: 800; color: var(--ink, #3a2415);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kol-sticker-kademe { font-size: 11px; font-weight: 700; opacity: .8; }
.kol-sticker-ilerleme { font-size: 11px; opacity: .6; }
.kol-sticker.k-bronz { border-top-color: #b1774a; }
.kol-sticker.k-gumus { border-top-color: #9aa3ad; }
.kol-sticker.k-altin { border-top-color: #e0a828; background: rgba(224,168,40,.12); }
.kol-kova-kutu.kol-sticker-k-bronz { border-top-color: #b1774a; }
.kol-kova-kutu.kol-sticker-k-gumus { border-top-color: #9aa3ad; }
.kol-kova-kutu.kol-sticker-k-altin { border-top-color: #e0a828; }
