/* ============================================================================
   MIQNO — TEMA İSTEĞİ BÖLÜMÜ (#tema-istek, ANA-2 · 17 Eylül 2026)
   Yalnız index.html yükler. Ton: AÇIK (.tf-section--light tokenları: --l-*).
   Düzen: mockup — solda istek kutusu (tek satır girdi + Gönder), sağda "en çok
   istenenler" (oy sırası, ▲ oy düğmesi, durum rozeti). Mobilde tek sütun, aynı sıra.
   Kurallar: yeni !important yok; 44 px dokunma hedefi; liste yüksekliği önceden
   ayrılır (CLS); kullanıcı metni JS'te textContent ile basılır (bkz. tf-tema-istek.js).
   ========================================================================== */

/* ZEMİN: tf-light.css `.tf-section--light{background:var(--bg-2) !important}` boyar (ölçüldü: #FBF3E7).
   Kâğıt tonu (#katmanlar ile aynı --l-bg #F3EAD7) için değişken yerelde çevrilir -- yeni !important yok. */
#tema-istek.ti { --bg-2: var(--l-bg); padding: clamp(56px, 7vw, 96px) 0; }

#tema-istek .ti-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 3vw, 40px); align-items: start;
}
#tema-istek .ti-kutu {
  background: var(--l-panel); border: 1px solid var(--l-panel-line);
  border-radius: 18px; padding: clamp(20px, 2.6vw, 32px);
  box-shadow: 0 1px 2px rgba(10,17,40,.04), 0 12px 28px -20px rgba(10,17,40,.25);
}
#tema-istek .eyebrow { margin-bottom: 10px; }
#tema-istek h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 0 0 10px; }
#tema-istek .ti-lead { color: var(--l-muted); margin: 0 0 18px; line-height: 1.55; }

/* --- form --- */
#tema-istek .ti-etiket { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--l-gold-text); margin: 0 0 8px; }
#tema-istek .ti-satir { display: flex; gap: 10px; align-items: stretch; }
#tema-istek .ti-girdi {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px;
  font: inherit; font-size: 1rem; color: var(--l-heading);
  background: #FFFFFF; border: 1px solid var(--l-line); border-radius: 12px;
}
#tema-istek .ti-girdi::placeholder { color: var(--l-muted); opacity: .8; }
#tema-istek .ti-girdi:focus-visible { outline: none; border-color: var(--l-gold-fill); box-shadow: 0 0 0 3px rgba(201,134,43,.22); }
#tema-istek .ti-gonder { flex: 0 0 auto; height: 48px; padding: 0 22px; border-radius: 12px; white-space: nowrap; }
#tema-istek .ti-gonder[disabled] { opacity: .6; cursor: default; }
#tema-istek .ti-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#tema-istek .ti-mesaj { min-height: 1.4em; margin: 10px 0 0; font-size: .92rem; line-height: 1.4; color: var(--l-muted); }
#tema-istek .ti-mesaj.is-err { color: #9A2F2F; }
#tema-istek .ti-mesaj.is-ok { color: #2F6B3A; }

/* --- liste --- */
#tema-istek .ti-liste-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#tema-istek .ti-liste-bas h3 { font-size: 1.05rem; margin: 0; }
#tema-istek .ti-toplam { font-size: .82rem; color: var(--l-muted); white-space: nowrap; }
/* 5 satır × 56 px + 4 boşluk: liste dolmadan önce yer ayrılır -> kayma yok. */
#tema-istek .ti-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 312px; align-content: start; }
#tema-istek .ti-satir-istek {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 56px; padding: 6px 10px 6px 6px;
  background: #FFFFFF; border: 1px solid var(--l-panel-line); border-radius: 14px;
  transition: background-color .18s ease, border-color .18s ease;
}
#tema-istek .ti-oy {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 2px 8px; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 700; line-height: 1; color: var(--l-heading);
  background: var(--l-bg); border: 1px solid var(--l-line);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
#tema-istek .ti-oy-ok { font-size: .78rem; }
#tema-istek .ti-oy-say { font-size: .95rem; margin-top: 1px; }
#tema-istek .ti-oy:hover { border-color: var(--l-gold-graphic); }
#tema-istek .ti-oy:focus-visible { outline: 2px solid var(--l-gold-fill); outline-offset: 2px; }
/* Oy verilen satır BAL rengine döner; tekrar dokunmak geri alır. */
#tema-istek .ti-satir-istek.is-oyum { background: #FFF3DC; border-color: rgba(201,134,43,.55); }
#tema-istek .ti-satir-istek.is-oyum .ti-oy { background: var(--l-gold-fill); color: #241A20; border-color: var(--l-gold-fill); }
#tema-istek .ti-metin { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#tema-istek .ti-ad { font-weight: 600; color: var(--l-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tema-istek .ti-benim { font-size: .74rem; color: var(--l-gold-text); font-weight: 600; letter-spacing: .04em; }
#tema-istek .ti-rozet {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--l-bg-2); color: var(--l-gold-text); border: 1px solid var(--l-line);
}
#tema-istek .ti-rozet[data-durum="uretimde"] { background: #FFF3DC; color: #7A4D12; border-color: rgba(201,134,43,.5); }
#tema-istek .ti-rozet[data-durum="eklendi"] { background: #E6F3E8; color: #2F6B3A; border-color: rgba(47,107,58,.35); }
#tema-istek .ti-rozet[hidden] { display: none; }
#tema-istek .ti-bos { margin: 0; padding: 18px 4px; color: var(--l-muted); }
#tema-istek .ti-bos[hidden] { display: none; }

/* --- mobil: tek sütun, aynı sıra (form, sonra liste) --- */
@media (max-width: 900px) {
  #tema-istek .ti-grid { grid-template-columns: 1fr; }
  #tema-istek .ti-satir { flex-wrap: wrap; }
  #tema-istek .ti-girdi { flex-basis: 100%; }
  #tema-istek .ti-gonder { flex: 1 1 100%; }
  #tema-istek .ti-liste { min-height: 0; }
}
