/* theme-light.css — AÇIK TEMA (gündüz). Yalnızca <html data-theme="light"> iken çalışır; koyu tema bu dosyadan etkilenmez.
   Renk değişkenleri yeniden tanımlanır; koyu zemine göre sabit yazılmış birkaç yer aşağıda tek tek düzeltilir. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --surface-3: #ffffff;
  --border: #e3e3e8;
  --border-strong: #cdcdd5;
  --text: #16161a;
  --text-dim: #5c5c66;

  --primary-text: #c40000;
  --primary-soft: rgba(232, 0, 0, 0.09);
  --success-text: #047857;
  --success-soft: rgba(16, 185, 129, 0.13);
  --danger-text: #b91c1c;
  --danger-soft: rgba(239, 68, 68, 0.10);
  --warning-text: #92400e;
  --warning-soft: rgba(245, 158, 11, 0.17);
  --neutral-solid: #6b6b73;

  --shadow-card: 0 1px 2px rgba(20, 20, 30, 0.06), 0 10px 28px -16px rgba(20, 20, 30, 0.2);
  --shadow-pop: 0 24px 60px -12px rgba(20, 20, 30, 0.35);
  --shadow-btn: 0 6px 16px -10px rgba(20, 20, 30, 0.5);
  --shadow-nav: 0 12px 30px -10px rgba(20, 20, 30, 0.28);
  --ring: 0 0 0 4px rgba(232, 0, 0, 0.16);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(0, 0, 0, 0.08);
}

/* Temel */
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 460px at 8% -8%, rgba(232, 0, 0, 0.07), transparent 62%),
    radial-gradient(700px 420px at 100% 0%, rgba(0, 0, 0, 0.025), transparent 60%);
}
[data-theme="light"] * { scrollbar-color: #c4c4cc transparent; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c4c4cc; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #a9a9b3; }

/* Üst çubuk ve menü */
[data-theme="light"] .app-nav__item[aria-current="page"] {
  color: #a80000;
  background: rgba(232, 0, 0, 0.09);
  box-shadow: inset 0 0 0 1px rgba(232, 0, 0, 0.22);
}
[data-theme="light"] .app-nav__item[aria-current="page"] i { color: var(--primary-solid); }
@media (hover: hover) {
  [data-theme="light"] .app-nav__item:hover { background: rgba(0, 0, 0, 0.05); }
  [data-theme="light"] .app-nav__item[aria-current="page"]:hover { color: #a80000; }
}
[data-theme="light"] .pm-logo-rozet { filter: brightness(0); opacity: .4; }
@media (max-width: 768px) {
  [data-theme="light"] .app-nav { background: rgba(255, 255, 255, 0.92); }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    [data-theme="light"] .app-nav { background: rgba(255, 255, 255, 0.8); }
  }
  [data-theme="light"] .app-nav__item[aria-current="page"] { background: var(--primary-soft); color: var(--primary-text); }
}

/* Düğme, form */
[data-theme="light"] .btn-ghost { background: rgba(0, 0, 0, 0.03); }
@media (hover: hover) {
  [data-theme="light"] .btn-ghost:hover { background: rgba(0, 0, 0, 0.07); border-color: #b4b4bd; }
  [data-theme="light"] .form-control:hover:not(:focus):not([readonly]) { border-color: #b4b4bd; }
}
[data-theme="light"] .form-control { background-color: #fff; }
[data-theme="light"] .form-control:focus { background-color: #fff; }
[data-theme="light"] .form-control::placeholder { color: #8a8a94; }
[data-theme="light"] .form-control:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #fff inset; }
[data-theme="light"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235c5c66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
[data-theme="light"] .combo__item { border-bottom-color: rgba(0, 0, 0, 0.06); }

/* Kart, tablo, modal, diğer bileşenler */
[data-theme="light"] .card { background: var(--surface); }
[data-theme="light"] .card-header { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .modal { background: rgba(20, 20, 30, 0.45); }
[data-theme="light"] .modal__panel { background: var(--surface); }
[data-theme="light"] .plaka-badge { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22), 0 4px 10px -6px rgba(0, 0, 0, .35); }
[data-theme="light"] .disclosure { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .chip { background: rgba(0, 0, 0, 0.03); }
@media (hover: hover) {
  [data-theme="light"] .table tbody tr:hover { background: rgba(0, 0, 0, 0.03); }
  [data-theme="light"] .disclosure > summary:hover { background: rgba(0, 0, 0, 0.04); }
}

/* Sayfalar */
[data-theme="light"] .svc-card__km { background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .svc-card__meta { background: rgba(0, 0, 0, 0.025); }
[data-theme="light"] .fo-add, [data-theme="light"] .fo-item, [data-theme="light"] .fo-pay, [data-theme="light"] .fo-choice { background: rgba(0, 0, 0, 0.025); }
[data-theme="light"] .mp-avatar { color: var(--primary-solid); background: linear-gradient(145deg, rgba(232, 0, 0, .18), rgba(232, 0, 0, .06)); border-color: rgba(232, 0, 0, .3); }
[data-theme="light"] .mp-stats { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .mp-item__pane { background: rgba(0, 0, 0, 0.03); }
[data-theme="light"] .si-search { background: rgba(244, 244, 246, .88); }
@media (hover: hover) {
  [data-theme="light"] .tdl-card:hover { box-shadow: var(--shadow-card), 0 14px 32px -18px rgba(20, 20, 30, .35); }
}

/* Gündüz/gece düğmesi (üst çubukta) */
.theme-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; margin-left: var(--sp-3); padding: 0;
  color: var(--text-dim); background: transparent; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: 50%;
  font-size: .95rem; transition: color .15s, border-color .15s, background-color .15s;
}
.theme-toggle .fa-moon { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: inline; }
@media (hover: hover) { .theme-toggle:hover { color: var(--text); border-color: var(--primary); background: var(--primary-soft); } }

/* Tamir Başlat (index.css): koyu zemine göre yarı saydam beyaz verilen kutular açık zeminde kaybolmasın */
[data-theme="light"] .profile__head { background: linear-gradient(90deg, rgba(232, 0, 0, .09), transparent 75%), rgba(0, 0, 0, 0.02); }
[data-theme="light"] .vehicle { background: rgba(0, 0, 0, 0.025); }
[data-theme="light"] .info { background: rgba(0, 0, 0, 0.02); }
[data-theme="light"] .recent__go { background: rgba(0, 0, 0, 0.05); }
@media (hover: hover) {
  [data-theme="light"] .recent__item:hover .recent__go { background: var(--primary-solid); color: #fff; }
}
