/* ===========================================================================
 * Turonay — Açık Tema Düzeltme Katmanı (v65)
 * ===========================================================================
 * SORUN: Site teması `html.tur-light` sınıfıyla ve CSS değişkenleriyle
 * (--bg / --surface / --text …) çalışır. Ancak `prices.php`, `support.php` ve
 * `history.php` bu sistemi hiç kullanmıyor: sayfalar KOYU TEMAYA SABİT yazılmış
 * ham Tailwind sınıflarıyla dolu (`text-white`, `bg-[#151a25]`, `text-gray-400`,
 * `border-gray-800` …). Bu sınıflar `.tur-light` sınıfından etkilenmediği için
 * aydınlık moda geçilse bile bu üç sayfa karanlık kalıyordu.
 *
 * DOĞRULAMA (v65 taraması):
 *   prices.php   → `dark:` varyantı 0, `text-white` 23 kez
 *   support.php  → `dark:` varyantı 0, `text-white` 20 kez
 *   history.php  → `dark:` varyantı 0, `text-white`  7 kez
 *   orders.php   → `dark:` varyantı 62  (doğru yapılmış referans örnek)
 *
 * YAKLAŞIM: Üç büyük dosyada yüzlerce sınıfı elle `dark:` varyantına çevirmek
 * yüksek regresyon riski taşır. Bunun yerine admin panelindeki
 * `admin/assets/admin-overrides.css` ile AYNI yöntem kullanılır: açık tema
 * etkinken bu sabit renkleri tema değişkenlerine geri bağlayan bir katman.
 * Koyu temada bu dosyadaki hiçbir kural çalışmaz — mevcut görünüm birebir korunur.
 *
 * KALICI ÇÖZÜM: Sayfalar zamanla `orders.php` gibi `dark:` varyantlarına
 * taşınmalı. Bu katman o güne kadar köprü görevi görür; taşınan her sayfa
 * için buradaki kapsam daraltılabilir.
 * ======================================================================== */

/* --- Kapsam: yalnızca açık tema, yalnızca bu üç sayfa gövdesi ------------ */
html.tur-light body.tur-lightfix {
  background: var(--bg);
  color: var(--text);
}

/* --- Metin renkleri ------------------------------------------------------ */
html.tur-light body.tur-lightfix .text-white { color: var(--text) !important; }
html.tur-light body.tur-lightfix .text-gray-100,
html.tur-light body.tur-lightfix .text-gray-200,
html.tur-light body.tur-lightfix .text-gray-300 { color: #1f2937 !important; }
html.tur-light body.tur-lightfix .border-gray-600 { border-color: var(--border2) !important; }
html.tur-light body.tur-lightfix .text-gray-400,
html.tur-light body.tur-lightfix .text-gray-500 { color: var(--muted) !important; }
html.tur-light body.tur-lightfix .text-gray-600 { color: #6b7280 !important; }

/* Marka yeşili açık zeminde çok parlak kalıyor — bir ton koyulaştır. */
html.tur-light body.tur-lightfix .text-green-400 { color: #15803d !important; }
html.tur-light body.tur-lightfix .text-green-500 { color: #16a34a !important; }

/* --- Yüzeyler (panel / kart / satır) ------------------------------------ */
html.tur-light body.tur-lightfix .bg-\[\#0b0f1a\] { background-color: var(--bg) !important; }
html.tur-light body.tur-lightfix .bg-\[\#0e1320\],
html.tur-light body.tur-lightfix .bg-\[\#151a25\] { background-color: var(--surface) !important; }
html.tur-light body.tur-lightfix .bg-\[\#1a2030\] { background-color: var(--surface3) !important; }

html.tur-light body.tur-lightfix .bg-gray-900,
html.tur-light body.tur-lightfix .bg-gray-800 { background-color: var(--surface2) !important; }

/* Koyu temada "hafif aydınlatma" için kullanılan beyaz tint'ler açık zeminde
   görünmez oluyor; siyah tint'e çevrilir. */
html.tur-light body.tur-lightfix .bg-white\/5  { background-color: rgba(0,0,0,.03) !important; }
html.tur-light body.tur-lightfix .bg-white\/10 { background-color: rgba(0,0,0,.06) !important; }
html.tur-light body.tur-lightfix .bg-white\/20 { background-color: rgba(0,0,0,.08) !important; }
html.tur-light body.tur-lightfix .hover\:bg-white\/5:hover  { background-color: rgba(0,0,0,.04) !important; }
html.tur-light body.tur-lightfix .hover\:bg-white\/10:hover { background-color: rgba(0,0,0,.07) !important; }

/* KRİTİK — siyah tint'ler (support.php form alanları ve panelleri bunları kullanır).
   Bunlar kapsam dışı kalırsa metin koyulaşırken zemin koyu kalır ve sonuç
   "koyu üstüne koyu" olur; yani düzeltmeden ÖNCEKİNDEN daha kötü görünür.
   O yüzden bu sayfalardaki TÜM koyu zemin yardımcıları burada karşılanır. */
html.tur-light body.tur-lightfix .bg-black\/20 { background-color: rgba(0,0,0,.03) !important; }
html.tur-light body.tur-lightfix .bg-black\/40 { background-color: #ffffff !important; }
html.tur-light body.tur-lightfix .bg-black\/80,
html.tur-light body.tur-lightfix .bg-black\/90 { background-color: rgba(255,255,255,.94) !important; }
html.tur-light body.tur-lightfix .bg-gray-700  { background-color: var(--surface3) !important; }
html.tur-light body.tur-lightfix .bg-black     { background-color: var(--surface) !important; }

/* Koyuya sabit gradient paneller (from-[#151a25] to-[#0b0f1a] gibi) */
html.tur-light body.tur-lightfix [class*="from-\[\#151a25\]"],
html.tur-light body.tur-lightfix [class*="from-\[\#0b0f1a\]"] {
  background-image: none !important;
  background-color: var(--surface) !important;
}

/* --- Kenarlıklar --------------------------------------------------------- */
html.tur-light body.tur-lightfix .border-gray-700,
html.tur-light body.tur-lightfix .border-gray-800,
html.tur-light body.tur-lightfix .border-gray-900 { border-color: var(--border2) !important; }
html.tur-light body.tur-lightfix .divide-gray-800 > * + *,
html.tur-light body.tur-lightfix .divide-gray-700 > * + * { border-color: var(--border2) !important; }
html.tur-light body.tur-lightfix .border-white\/5,
html.tur-light body.tur-lightfix .border-white\/10 { border-color: rgba(0,0,0,.10) !important; }

/* --- Form elemanları ----------------------------------------------------- */
html.tur-light body.tur-lightfix input,
html.tur-light body.tur-lightfix select,
html.tur-light body.tur-lightfix textarea {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border2) !important;
}
html.tur-light body.tur-lightfix input::placeholder,
html.tur-light body.tur-lightfix textarea::placeholder { color: var(--muted2) !important; }

/* --- Gölgeler ------------------------------------------------------------ */
/* Koyu temada derinlik veren siyah gölge, açık zeminde kirli bir leke gibi
   duruyor; yumuşatılır. */
html.tur-light body.tur-lightfix .shadow-2xl,
html.tur-light body.tur-lightfix .shadow-xl,
html.tur-light body.tur-lightfix .shadow-lg {
  box-shadow: 0 6px 24px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04) !important;
}

/* --- Durum rozetleri ----------------------------------------------------- */
/* 10% opaklıklı tint'ler açık zeminde neredeyse görünmez; kontrastı yükselt. */
html.tur-light body.tur-lightfix .bg-green-500\/10  { background-color: rgba(22,163,74,.12) !important; }
html.tur-light body.tur-lightfix .bg-red-500\/10    { background-color: rgba(220,38,38,.10) !important; }
html.tur-light body.tur-lightfix .bg-amber-500\/10,
html.tur-light body.tur-lightfix .bg-yellow-500\/10 { background-color: rgba(217,119,6,.12) !important; }
html.tur-light body.tur-lightfix .bg-blue-500\/10   { background-color: rgba(37,99,235,.10) !important; }
html.tur-light body.tur-lightfix .bg-gray-500\/10   { background-color: rgba(0,0,0,.05) !important; }

html.tur-light body.tur-lightfix .text-red-500,
html.tur-light body.tur-lightfix .text-red-400    { color: #dc2626 !important; }
html.tur-light body.tur-lightfix .text-amber-500,
html.tur-light body.tur-lightfix .text-yellow-500 { color: #b45309 !important; }
html.tur-light body.tur-lightfix .text-blue-500,
html.tur-light body.tur-lightfix .text-blue-400   { color: #2563eb !important; }

/* --- Tablolar ------------------------------------------------------------ */
html.tur-light body.tur-lightfix thead tr { background-color: var(--surface2) !important; }
html.tur-light body.tur-lightfix tbody tr:hover { background-color: rgba(0,0,0,.02) !important; }
