/* ==========================================
   WHERZIT T?KETM MODU & STOR PERDE STLLER
========================================== */

.tuketim-wrapper {
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

/* Neon Rozet Butonu */
.tuketim-rozet-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  z-index: 5;
}

.tuketim-rozet-btn {
  background: #171717;
  border: 1px solid #333;
  border-top: none;
  color: #a3a3a3;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.02em;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tuketim-rozet-btn.active {
  background: #022c22;
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.18);
}

.tuketim-rozet-btn.acil:not(.active) {
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.25);
}

/*  SAYA? SA ALT K?EYE ALINDI */
.tuketim-aciliyet-badge {
  position: absolute;
  top: auto;
  bottom: -4px;
  right: -6px;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #0a0a0a;
  pointer-events: none;
  z-index: 31;
}

.tuketim-centik-btn {
  position: absolute;
  bottom: -16px;
  width: 32px;
  height: 20px;
  background: #171717;
  border: 1px solid #333;
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/*  Bombe, pil aktifken tam olarak ayn lazer (yeil) renginde yansn */
.tuketim-centik-btn.active {
  background: #022c22;
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.18);
}

/* Stor Perde Kapsaycs */
.stor-perde-panel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #0a0a0a;
  border: 1px solid #262626;
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: hidden;
  height: 0;
  opacity: 0;
  clip-path: inset(0 50% 100% 50%);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
}

#tuketimKartListesi {
  padding-bottom: 24px !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#tuketimKartListesi::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.stor-perde-panel.asama-1 {
  height: 240px;
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.stor-perde-panel.asama-2 {
  height: 50vh;
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* ?? FIX ("2. kademede rnler dizilmiyor, tek sra kalyor"): asama-1'de
   panel ksa (240px) olduu iin tek satr flex doru grnyordu. Ama
   asama-2 ok daha uzun (50vh) olmasna ramen liste hl TEK satrlk
   flex kalyordu  stte kalan onca bo alan boa gidiyordu ve kart says
   arttka sadece yatayda uzuyordu. Artk asama-2'de liste bir IZGARAYA
   (CSS grid, grid-auto-flow:column) dnyor: kartlar 2 satr halinde alt
   alta dizilir, yeni rnler saa doru yeni bir "stun" aar  yani hem
   alt alta hem saa kaydrlabilir grnm eski haline dnyor. (Not:
   display:grid iin !important gerekiyor nk index.html'de
   #tuketimKartListesi'nin kendi satr-ii style="display:flex" tanm var,
   o her zaman snf seicisini ezer.) Yatay kaydrma (fare tekerlei 
   saa kayma) zaten tuketimYatayFareTekerlegiKur() ile
   #tuketimKartListesi'nin scrollLeft'ini kullanyor, bu deiiklikten
   etkilenmeden ayn ekilde almaya devam eder. */
.stor-perde-panel.asama-2 #tuketimKartListesi {
  display: grid !important;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 160px);
  grid-auto-columns: 300px;
  align-content: start;
  overflow-x: auto;
  overflow-y: hidden;
}

/*  3D KART ?EVRME & SCROLLBAR GZLEME */
.tuketim-kart-sahne {
  perspective: 1000px;
  width: 300px;
  height: 160px;
  flex-shrink: 0;
}

.tuketim-kart-govde {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 16px;
  background: #181818;
  border: 1px solid #2a2a2a;
  box-sizing: border-box;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.2s ease;
  transform-style: preserve-3d;
}

/* Kartn i?indeki H?BR ALANDA scrollbar g?r?nmesin */
.tuketim-kart-govde * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.tuketim-kart-govde *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.tuketim-kart-govde.flipped {
  transform: rotateY(180deg);
}

/* ?n ve Arka Y?z Mutlak Konumlama & G?r?n?rl?k */
.kart-on, .ilac-kutu-on, .kart-arka {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  background: #171717;
}

/* 🐛 FIX (kart arkasındaki dişli/çöp butonları bazen çalışmıyor/geç
   çalışıyordu): backface-visibility:hidden SADECE görünürlüğü gizliyor,
   tıklama/dokunuşu garanti engellemiyor — özellikle 0.6s'lik çevirme
   animasyonu sürerken, hangi yüzün "önde" sayılacağı tarayıcıya göre
   değişebiliyor ve dokunuş yanlış (o an görünmeyen) yüze gidebiliyordu.
   Çözüm: hangi yüzün tıklanabilir olduğunu backface-visibility'nin
   yorumuna bırakmak yerine, .flipped durumuna göre AÇIKÇA belirtiyoruz.
   Bu desen zaten style.css'te .modal-skt-fields / .modal-standard-fields
   geçişinde kullanılıyor — aynı yaklaşım burada da uygulanıyor. */
.kart-arka { pointer-events: none; }
.tuketim-kart-govde.flipped .kart-on,
.tuketim-kart-govde.flipped .ilac-kutu-on { pointer-events: none; }
.tuketim-kart-govde.flipped .kart-arka { pointer-events: auto; }

/*  STANDART KART Y?KSEKL (Gda + la?)
   NOT: style.css i?inde eski/miras kalm ".tuketim-kart-govde > .kart-on"
   kural height:auto uyguluyor ve 2-class ?zg?ll?? y?z?nden bizim tekil
   ".kart-on"/".ilac-kutu-on" kurallarmz eziyor. Ayn ?zg?ll?kte fakat
   bu dosya style.css'ten SONRA y?klendii i?in kazanan kural burada ? 
   b?ylece iki kart tipi de kartn tamamn doldurup buton/tklama alan
   birebir ayn hizada oluyor. style.css'e dokunmuyoruz. */
.tuketim-kart-govde > .kart-on,
.tuketim-kart-govde > .ilac-kutu-on {
  height: 100%;
  box-sizing: border-box;
}

.kart-on {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.kart-arka {
  transform: rotateY(180deg);
  background: #121212;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 2px solid #333;
  box-sizing: border-box;
}

/* Arka Y?z Detay Kaydrma Alan */
.kart-arka-detay {
  flex: 1;
  overflow-y: auto;
  margin-top: 6px;
}

.kart-arka-satir {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding: 3px 0;
  border-bottom: 1px dashed #2a2a2a;
}
.kart-arka-satir .etiket { color: #888; }
.kart-arka-satir .deger { color: #eee; text-align: right; }
.kart-arka-bos { color: #666; font-size: 11px; text-align: center; padding: 10px 0; }

.kart-arka-baslik {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kart-arka-kategori { font-size: 11px; font-weight: 700; color: #ccc; }
.kart-arka-foto { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; cursor: pointer; }

.kart-arka-check { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #aaa; margin-top: 6px; }

.kart-arka-aksiyonlar { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; }

.kart-icon-btn {
  background: #222;
  border: 1px solid #3a3a3a;
  color: #ccc;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}
.kart-icon-btn.sil { color: #ef4444; border-color: #ef444455; }
.kart-icon-btn.geri { color: #9ca3af; }
.kart-icon-btn.ayar { color: #9ca3af; }
.kart-icon-btn.ayar:hover { color: #34d399; border-color: #10b98155; background: #0a1f18; }
.kart-icon-btn svg { width: 14px; height: 14px; vertical-align: middle; }

/* Durum Renkleri */
.kart-acil { border-color: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.3); }
.kart-yakinda { border-color: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.3); }
.kart-normal { border-color: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }

/* --- SKT uyar balonu kartlar --- */
.skt-alert-kart-sahne {
  perspective: 1200px;
  width: 100%;
  min-height: 128px;
  margin-bottom: 10px;
}

.skt-alert-kart-govde {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 16px;
  background: #181818;
  border: 1px solid #2a2a2a;
  box-shadow: 0 0 0 1px var(--skt-alert-renk, #333), 0 0 14px rgba(0, 0, 0, 0.3);
}

.skt-alert-kart-govde.flipped {
  transform: rotateY(180deg);
}

.skt-alert-kart-on,
.skt-alert-kart-arka {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 15px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.skt-alert-kart-arka {
  transform: rotateY(180deg);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

#skt-alert-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================
   SKT KAPS?L ROZET (Eya Ekleme Modali)
========================================== */

#modalOverlay .modal-content {
  position: relative;
  overflow: visible;
}

#modalOverlay .modal-content-inner {
  max-height: 90vh;
  min-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#modalOverlay .modal-content-inner::-webkit-scrollbar {
  display: none;
}

.skt-capsule-badge-anchor {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -100%);
  transition: transform 0.2s ease;
  z-index: 20;
}

.skt-capsule-badge-anchor:hover {
  transform: translate(-50%, -100%) translateX(-3px);
}

.skt-capsule-badge {
  transform: rotate(-90deg);
  transform-origin: 50% 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 6px 6px 0 0;
  background: #171717;
  border: 1px solid #00ff8755;
  border-bottom: none;
  color: #6ee7b7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 3px rgba(0, 255, 135, 0.12);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.skt-capsule-badge-anchor:hover .skt-capsule-badge {
  box-shadow: 0 0 5px rgba(0, 255, 135, 0.2);
}

.skt-capsule-badge.active {
  border-color: #00ff87;
  color: #eafff5;
  background: #062418;
  box-shadow: 0 0 4px rgba(0, 255, 135, 0.22);
}

#modalOverlay .modal-fields-stage {
  display: grid;
  /* 🐛 FIX (tüketim moduna geçerken alanlar "Yeni Kayıt Ekle" başlığının
     üzerine biniyordu): Bu sarmalayıcıda position TANIMLI DEĞİLDİ, sadece
     display:grid vardı. İçindeki .modal-skt-fields (ve geçiş sırasında
     .modal-standard-fields) 'position:absolute; inset:0' kullanıyor —
     konumlanmış bir ata olmadığı için bu, sarmalayıcıya değil daha
     yukarıdaki #modalOverlay .modal-content'e (position:relative) göre
     çözümleniyordu. Sonuç: alanlar modal kutusunun TAMAMINA yayılıp
     yukarıdaki başlığın ve diğer öğelerin üzerine biniyordu.
     position:relative eklendiğinde inset:0 artık doğru şekilde bu
     sarmalayıcının sınırlarına hizalanıyor. Tek satır, tamamen görsel;
     grid düzeni, animasyonlar ve JS mantığı birebir aynı kalıyor. */
  position: relative;
}

#modalOverlay .modal-standard-fields,
#modalOverlay .modal-skt-fields {
  grid-column: 1;
  grid-row: 1;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              visibility 0.35s;
  will-change: transform, opacity;
}

#modalOverlay .modal-skt-fields {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(16px, 0, 0) scale(0.98);
}

#modalOverlay .modal-content.skt-transformed .modal-standard-fields {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-16px, 0, 0) scale(0.98);
}

#modalOverlay .modal-content.skt-transformed .modal-skt-fields {
  position: static;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

/* 🐛 FIX (tüketim moduna geçerken metinler üst üste biniyordu):
   .modal-standard-fields ve .modal-skt-fields aynı grid hücresinde
   (grid-column:1 / grid-row:1) üst üste duruyor ve geçişte ÇAPRAZ
   soluyorlardı — biri opacity 1→0 inerken diğeri 0→1 çıkıyordu. O ~0.3sn
   boyunca İKİSİ DE yarı saydam ve görünür oluyor, iki farklı metin
   (ör. "Yeni Kayıt Ekle" başlığı ile "Eşya Adı" etiketi/placeholder'ı)
   aynı anda okunuyordu.
   Çözüm: çapraz solmayı SIRALI hale getiriyoruz — giden yüz hızlıca
   (0.15sn) söner, gelen yüz ancak o bittikten SONRA (0.15sn gecikmeyle)
   belirir. Böylece hiçbir anda iki metin birden görünmez.
   Sadece opacity ZAMANLAMASI değişiyor: transform süresi/eğrisi (0.35s),
   kayma animasyonu, pointer-events ve visibility mantığı birebir aynı
   kalıyor — hiçbir JS'e, sınıf adına veya düzene dokunulmuyor. */

/* Giden yüz: gecikmesiz ve hızlı sönsün */
#modalOverlay .modal-skt-fields,
#modalOverlay .modal-content.skt-transformed .modal-standard-fields {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.15s ease,
              visibility 0.35s;
}

/* Gelen yüz: giden yüz tamamen söndükten SONRA belirsin */
#modalOverlay .modal-content.skt-transformed .modal-skt-fields,
#modalOverlay .modal-content:not(.skt-transformed) .modal-standard-fields {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease 0.15s,
              visibility 0.35s;
}

@keyframes sktGecisParilti {
  0%   { box-shadow: inset 0 0 0 rgba(0, 255, 135, 0); }
  35%  { box-shadow: inset 0 0 45px 4px rgba(0, 255, 135, 0.35); }
  100% { box-shadow: inset 0 0 0 rgba(0, 255, 135, 0); }
}

#modalOverlay .modal-content.skt-transformed .modal-fields-stage {
  border-radius: 10px;
  animation: sktGecisParilti 0.5s ease;
}

.skt-freshness-hint {
  font-size: 11px;
  color: #6ee7b7;
  background: #062418;
  border: 1px solid #00ff8733;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 1rem;
}

#modalOverlay .modal-content.skt-transformed #saveBtn {
  display: none;
}

@media (max-width: 480px) {
  #modalOverlay {
    padding: 0 32px;
    box-sizing: border-box;
  }
}

/* ==========================================
   SKT FORMU: opsiyonel/zorunlu etiketler
========================================== */
.skt-opsiyonel-etiket {
  color: #666;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}

.skt-zorunlu-etiket {
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.skt-category-fields {
  border-top: 1px dashed #2a2a2a;
  padding-top: 0.9rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.skt-sahip-onerileri {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.skt-sahip-chip {
  background: #171717;
  border: 1px solid #333;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skt-sahip-chip:hover {
  border-color: #10b981;
  color: #34d399;
  background: #0a1f18;
}

.skt-sahip-chip-wrap {
  position: relative;
  display: inline-flex;
}

.skt-sahip-sil-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #171717;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.skt-sahip-sil-x:hover {
  background: #f87171;
  transform: scale(1.15);
}

.skt-sahip-sil-x svg {
  width: 8px;
  height: 8px;
  stroke: currentColor;
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
}

.skt-siklik-gunler-satiri {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.skt-siklik-gun-btn {
  flex: 1;
  min-width: 70px;
  background: #171717;
  border: 1px solid #333;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skt-siklik-gun-btn.active {
  background: #022c22;
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

/* ==========================================
   T?KETM MODU - LA? KUTUSU TEMASI
========================================== */

.ilac-kutu-on {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.ilac-kutu-banner {
  background: linear-gradient(135deg, #1c3f8f 0%, #0d1f52 100%);
  padding: 8px 10px 10px;
}

.ilac-kutu-durum {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
}

.ilac-kutu-noktalar {
  display: flex;
  gap: 3px;
  align-items: center;
}

.ilac-nokta {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.ilac-nokta.mavi { background: #3b82f6; }
.ilac-nokta.yesil { background: #22c55e; }
.ilac-nokta.kirmizi { background: #ef4444; }

.ilac-kutu-isim-satiri {
  margin-top: 7px;
}

.ilac-kutu-isim {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.ilac-kutu-doz {
  display: inline-block;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #eaf0ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 2px 7px;
  border-radius: 6px;
}

.ilac-kutu-govde {
  flex: 1;
  min-height: 28px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: #f4f1e6;
  background-image: linear-gradient(
    100deg,
    transparent 0%, transparent 42%,
    #16a34a 42%, #22c55e 50%, #16a34a 58%,
    transparent 58%, transparent 100%
  );
}

.ilac-kutu-firma {
  position: relative;
  z-index: 1;
  color: #1e293b;
  font-size: 10px;
  font-weight: 700;
  background: rgba(244, 241, 230, 0.85);
  padding: 1px 4px;
  border-radius: 4px;
}

.ilac-kutu-taban {
  background: linear-gradient(135deg, #c11f1f 0%, #7a1010 100%);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ilac-kutu-cevir-btn,
.ilac-kutu-geri-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.ilac-kutu-geri-btn {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  color: #d1fae5;
}

.ilac-kutu-on-kucuk .ilac-kutu-banner { padding: 7px 9px 8px; }
.ilac-kutu-on-kucuk .ilac-kutu-isim { font-size: 13px; }
.ilac-kutu-on-kucuk .ilac-kutu-taban { padding: 5px 9px; }

.ilac-kutu-arka .kart-arka-baslik {
  background: linear-gradient(90deg, #1c3f8f 0%, #7a1010 100%);
  border-radius: 8px;
  padding: 4px 8px;
}
.ilac-kutu-arka .kart-arka-baslik .kart-arka-kategori {
  color: #fff;
  font-weight: 700;
}

/* ==========================================
   ?N Y?Z SOL ALT K?E: AYARLAR KONU
========================================== */
.kart-ayarlar-btn {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #8a8a8a;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
}

.kart-ayarlar-btn:hover,
.kart-ayarlar-btn:active {
  background: #262626;
  border-color: #555;
  color: #e5e5e5;
  transform: scale(1.08) rotate(20deg);
}

/* ==========================================
   ??P KUTUSU KULLANIM KILAVUZU ("?" KONU)
========================================== */
.skt-info-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #222;
  border: 1px solid #444;
  color: #999;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.skt-info-btn:hover {
  border-color: #10b981;
  color: #34d399;
}

.skt-info-popover {
  display: none;
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 40;
  width: 240px;
  background: #171717;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-size: 11px;
  line-height: 1.5;
  color: #ccc;
}

.skt-info-popover.acik {
  display: block;
}

.skt-info-popover strong {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-bottom: 6px;
}

.skt-info-popover ul {
  margin: 0;
  padding-left: 16px;
}

.skt-info-popover li {
  margin-bottom: 4px;
}
/*  2027 Minimal Modern Yuvarlak Toggle: "Kapak Fotoraf Olarak G?ster" */
.skt-kapak-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  cursor: pointer;
  font-size: 11.5px;
  line-height: 1.3;
  color: #9ca3af;
}

.skt-kapak-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.skt-kapak-toggle-circle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #3a3a3a;
  background: #171717;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.skt-kapak-toggle-input:checked + .skt-kapak-toggle-circle {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.skt-kapak-toggle-input:checked + .skt-kapak-toggle-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.skt-kapak-toggle-input:checked ~ .skt-kapak-toggle-text {
  color: #34d399;
}

/*  Kart ?n Y?z?nde Tam Kare Kapak Fotoraf (boluksuz, object-fit: cover) */
.kart-kapak-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.kart-kapak-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.kart-kapak-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.kart-kapak-icerik {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}