/*
 * NiftyHosting — ortak token katmanı.
 *  - Mod başına renk-scheme ve AKŞAM (evening) varsayılanları. Gündüz değerleri theme.css (:root),
 *    gece değerleri theme.css + default-dark.css ([data-bs-theme=dark]) içindedir.
 *  - Evening = data-bs-theme="dark" + aşağıdaki daha yumuşak yüzey/metin/gölge seti.
 *  - lib/tokens.php kataloğundaki evening varsayılanlarıyla eşit tutulur (değiştirirseniz ikisini de güncelleyin).
 *  - Yönetici özelleştirmeleri <style id="nh-tokens"> içinde (partials/customizer-head.tpl) bunun üstüne yazılır.
 */
:root[data-nh-mode="day"] { color-scheme: light; }
:root[data-nh-mode="evening"],
:root[data-nh-mode="night"] { color-scheme: dark; }

:root[data-nh-mode="evening"] {
  --nh-body-bg: color-mix(in srgb, var(--nh-primary) 9%, #1f2330);
  --nh-surface-bg: color-mix(in srgb, var(--nh-primary) 10%, #2a2f3d);
  --nh-body-color: #d6d3cc;
  --nh-heading-color: #f3efe6;
  --nh-muted-color: #a8a59d;
  --nh-border-color: color-mix(in srgb, var(--nh-primary) 14%, #3b4254);
  --nh-shadow-sm: 0 1px 2px rgba(0, 0, 0, .22);
  --nh-shadow: 0 4px 16px rgba(0, 0, 0, .3);
  --nh-shadow-lg: 0 12px 32px rgba(0, 0, 0, .42);
}

/* Mod değişiminde kısa, yumuşak geçiş (nh-mode.js ekler/kaldırır; reduced-motion'da hiç eklenmez). */
html.nh-mode-switching,
html.nh-mode-switching body,
html.nh-mode-switching :where(.card, .navbar, .modal-content, .dropdown-menu, .form-control, .form-select, .btn, .table, .list-group-item, .alert) {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease !important;
}

/* Mod anahtarı (nh-mode.js ile enjekte edilen akşam düğmesi dahil) */
.nh-mode-switch { display: inline-flex; gap: .25rem; }
