/* ================================================================
   RETRO TEMA — popmundo-bible.net "Retro" görünümü
   popmundo-v2.css'ten SONRA yüklenir. Değişkenleri teal palete
   çevirir + imza bileşenleri (çerçeve, panel başlığı, tablo, font)
   override eder. Kaldırmak için app.blade.php'deki <link>'i sil.
   ================================================================ */

/* --- 1) Renk paletini teal'e çevir (değişken remap) --- */
body.theme-v2 {
  --v2-page-bg: #54b2c9;
  --v2-frame-bg: #a4cfdf;
  --v2-card: #e2eff1;
  --v2-card-edge: #a4cfdf;
  --v2-card-edge-soft: #cfe4ec;

  --v2-hdr-top: #3d849c;
  --v2-hdr-bot: #3d849c;
  --v2-hdr-edge: #337287;
  --v2-hdr-text: #ffffff;

  --v2-thead-bg-top: #34798d;
  --v2-thead-bg-bot: #2c6a80;
  --v2-thead-edge: #245a6e;
  --v2-thead-text: #ffffff;

  --v2-row-alt: #cfe4ec;
  --v2-rail-hover: #d3ebf1;
  --v2-rail-active: #c3e2ec;

  --v2-ink: #1a1a1a;
  --v2-ink-2: #333333;
  --v2-muted: #5a7580;

  --v2-link: #006699;
  --v2-link-hover: #004466;
  --v2-active: #006699;
  --v2-warn: #cc7a00;

  --v2-money: #006699;
}

/* --- 2) Font + sayfa arka planı (desenli duvar kağıdı) --- */
body.theme-v2 {
  font-family: "Lucida Grande", Verdana, sans-serif !important;
  font-size: 12px !important;
  background: #54b2c9 url('/img/retro-bg.png') repeat !important;
  background-size: 158px 160px !important;
  color: var(--v2-ink);
}
html:has(body.theme-v2) { background: #54b2c9 !important; }

body.theme-v2 input,
body.theme-v2 select,
body.theme-v2 textarea,
body.theme-v2 button,
body.theme-v2 table {
  font-family: "Lucida Grande", Verdana, sans-serif !important;
}

/* --- 3) Çerçeve (container) — kalın mavi frame + 7px köşe --- */
body.theme-v2 .pm-container {
  background: var(--v2-frame-bg) !important;
  border: 2px solid #3d849c !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

/* --- 4) Panel = box (düz, 7px köşe, kenarsız) --- */
body.theme-v2 .panel {
  background: var(--v2-card) !important;
  border: 0 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* --- 5) Panel başlığı = teal çubuk (İMZA görünüm) --- */
body.theme-v2 .panel-header {
  background: #3d849c !important;
  color: #ffffff !important;
  font-weight: bold !important;
  font-size: 12px !important;
  border: 0 !important;
  border-radius: 7px 7px 0 0 !important;
  text-shadow: none !important;
}
body.theme-v2 .panel-header span,
body.theme-v2 .panel-header .v2-hdr-sub,
body.theme-v2 .panel-header a {
  color: #ffffff !important;
}

/* --- 6) Yan menü başlıkları da teal çubuk --- */
body.theme-v2 .side-menu-title {
  background: #3d849c !important;
  color: #ffffff !important;
  font-weight: bold !important;
  border-radius: 7px 7px 0 0 !important;
}

/* --- 7) TUTARLI ZEBRA — HER YERDE beyaz + teal (#E2EFF1) --- */
/* Zebra'lı panellerin gövdesi BEYAZ olsun ki teal satırlar belirgin pop etsin */
body.theme-v2 .panel-body:has(table),
body.theme-v2 .panel-body:has(.v2-rel-row),
body.theme-v2 .panel-body:has(.v2-journal),
body.theme-v2 .panel-body:has(.v2-inv-item),
body.theme-v2 .panel-body:has(.v2-offer-item),
body.theme-v2 .panel-body:has(.v2-give-item),
body.theme-v2 .panel-body:has(.v2-skill-row),
body.theme-v2 .panel-body:has(.v2-interact-row),
body.theme-v2 .panel-body:has(.v2-preq-row) {
  background: #ffffff !important;
}
/* BEYAZ satırlar (tek) — tablo + tüm liste bileşenleri */
body.theme-v2 .panel table tbody tr:nth-child(odd) td,
body.theme-v2 .v2-rel-row:nth-child(odd),
body.theme-v2 .v2-journal .e:nth-child(odd),
body.theme-v2 .v2-inv-item:nth-child(odd),
body.theme-v2 .v2-offer-item:nth-child(odd),
body.theme-v2 .v2-give-item:nth-child(odd),
body.theme-v2 .v2-skill-row:nth-child(odd),
body.theme-v2 .v2-interact-row:nth-child(odd),
body.theme-v2 .v2-preq-row:nth-child(odd) {
  background: #ffffff !important;
}
/* TEAL satırlar (çift) */
body.theme-v2 .panel table tbody tr:nth-child(even) td,
body.theme-v2 .v2-rel-row:nth-child(even),
body.theme-v2 .v2-journal .e:nth-child(even),
body.theme-v2 .v2-inv-item:nth-child(even),
body.theme-v2 .v2-offer-item:nth-child(even),
body.theme-v2 .v2-give-item:nth-child(even),
body.theme-v2 .v2-skill-row:nth-child(even),
body.theme-v2 .v2-interact-row:nth-child(even),
body.theme-v2 .v2-preq-row:nth-child(even) {
  background: #e2eff1 !important;
}
/* Sabıka (crime): her davadan sonra gizli "detay" satırı var → dava satırları 4n ile dönüşür */
body.theme-v2 .v2-crime-table tbody tr.case:nth-child(4n+1) td {
  background: #e2eff1 !important;
}
/* Sıralanabilir başlık hover teal */
body.theme-v2 [class*="-table"] thead th.sortable:hover {
  background: linear-gradient(to bottom, #4a91a8, #34798d) !important;
  color: #ffffff !important;
}

/* --- 8) Düzleştir (gölgeleri kaldır) --- */
body.theme-v2 .v2-venue,
body.theme-v2 .side-menu-wrap,
body.theme-v2 .v2-card,
body.theme-v2 .panel {
  box-shadow: none !important;
}

/* --- 9) Üst chrome: SEKİZ logo çubuğu + nav sekmeleri + avatar → teal --- */
body.theme-v2 .v2-logo-bar {
  background: linear-gradient(to bottom, #57b0c6, #3d849c) !important;
  border-bottom: 1px solid #2c6a8f !important;
  box-shadow: none !important;
  border-radius: 5px 5px 0 0 !important;
}
body.theme-v2 .v2-logo {
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18) !important;
}
body.theme-v2 .v2-logo .accent { color: #cdeaf2 !important; }

body.theme-v2 .nav-tabs {
  background: linear-gradient(to bottom, #eaf6f9, #cfe4ec) !important;
  border: 1px solid #86bccd !important;
  box-shadow: none !important;
}
body.theme-v2 .nav-tab.active {
  background: #e2eff1 !important;
  color: #006699 !important;
  box-shadow: inset 0 -2px 0 #3d849c !important;
}
body.theme-v2 .nav-tab:hover { background: rgba(255, 255, 255, .5) !important; }

body.theme-v2 .pm-avatar-large,
body.theme-v2 .pm-avatar-medium,
body.theme-v2 .pm-avatar-small {
  background: #dce9ee !important;
  border-color: #a4cfdf !important;
}
