/* ═══════════════════════════════════════════════════════════
   TEMA SİSTEMİ  –  Light / Dark / Corporate
   html[data-theme="dark"]  veya  html[data-theme="corporate"]
   attribute'u ile aktifleşir.
   ══════════════════════════════════════════════════════════ */

/* Tüm geçişler için smooth transition */
*, *::before, *::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.22s;
  transition-timing-function: ease;
}
/* Animasyon/transform'ları etkileyen elementlerde sadece renk geçişi olsun */
img, video, canvas, svg { transition: none; }

/* ─────────────── DARK THEME ─────────────── */
html[data-theme="dark"] {
  --bg:             #0f1117;
  --surface:        #1a1d27;
  --surface-soft:   #1e2130;
  --surface-strong: #252838;
  --text:           #d1d5e0;
  --muted:          #8892a4;
  --line:           #2a2f42;
  --accent:         #e53e3e;
  --accent-dark:    #c53030;
  --ink:            #f0f2f7;
  --dark:           #e8ecf4;
  --whatsapp:       #1f9d55;
  --warning-bg:     #2d1a0e;
  --warning-text:   #fdba74;
  --shadow:         0 18px 44px rgba(0,0,0,.50);
  --shadow-soft:    0 10px 26px rgba(0,0,0,.38);
}

/* Header & Nav */
html[data-theme="dark"] .site-header {
  background: rgba(15, 17, 23, 0.97);
}
html[data-theme="dark"] .cat-nav {
  background: #13151e;
  border-bottom-color: #2a2f42;
}
html[data-theme="dark"] .cat-nav-dropdown {
  background: #1a1d27;
  border-color: #2a2f42;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
html[data-theme="dark"] .cat-nav-drop-list a {
  color: #d1d5e0;
}
html[data-theme="dark"] .cat-nav-drop-list a:hover {
  background: #252838;
  color: #f0f2f7;
}
html[data-theme="dark"] .cat-nav-link {
  color: #d1d5e0;
}
html[data-theme="dark"] .cat-nav-link:hover {
  background: #252838;
  color: #f0f2f7;
}
html[data-theme="dark"] .cat-nav-all {
  color: #f0f2f7;
  border-right-color: #2a2f42;
}
html[data-theme="dark"] .cat-nav-all:hover {
  background: #252838;
}
html[data-theme="dark"] .cat-nav-sub-header {
  background: #252838;
  border-left-color: #e53e3e;
}
html[data-theme="dark"] .cat-nav-sub-header a {
  color: #f0f2f7;
}
html[data-theme="dark"] .cat-nav-sub-indent {
  color: #8892a4 !important;
  border-color: #2a2f42 !important;
}
html[data-theme="dark"] .cat-nav-sub-indent:hover {
  background: #252838 !important;
  color: #e53e3e !important;
  border-color: #e53e3e !important;
}

/* Inputs / Forms */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #1e2130;
  color: #d1d5e0;
  border-color: #2a2f42;
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
  outline-color: rgba(229, 62, 62, 0.20);
  border-color: rgba(229, 62, 62, 0.55);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #5a6475;
}

/* Mobile menu & header buttons */
html[data-theme="dark"] .mobile-menu > summary,
html[data-theme="dark"] .category-menu > summary {
  background: #1e2130;
  color: #d1d5e0;
  border-color: #2a2f42;
}
html[data-theme="dark"] .header-actions a,
html[data-theme="dark"] .login-button {
  background: #1e2130;
  color: #d1d5e0;
  border-color: #2a2f42;
}
html[data-theme="dark"] .cart-header-link {
  background: #1e2130;
  color: #d1d5e0;
  border-color: #2a2f42;
}
html[data-theme="dark"] .cart-header-link:hover {
  border-color: rgba(229, 62, 62, 0.55);
}
html[data-theme="dark"] button.secondary,
html[data-theme="dark"] .button.secondary {
  background: #1e2130;
  color: #d1d5e0;
  border-color: #2a2f42;
}
html[data-theme="dark"] button.secondary:hover,
html[data-theme="dark"] .button.secondary:hover {
  background: #252838;
}

/* Cards & surfaces */
html[data-theme="dark"] .feature-icon {
  background: #3d1214;
  color: #e53e3e;
}
html[data-theme="dark"] .print-strip span {
  background: #1e2130;
  color: #d1d5e0;
  border-color: rgba(255,255,255,.08);
}
html[data-theme="dark"] .footer-tags span {
  background: #1e2130;
  border-color: #2a2f42;
}
html[data-theme="dark"] .image-placeholder {
  background: #1e2130;
  color: #8892a4;
}

/* Messages */
html[data-theme="dark"] .message {
  background: #0d2b1e;
  color: #6ee7b7;
}
html[data-theme="dark"] .message.error {
  background: #2d1214;
  color: #fca5a5;
}

/* Homepage: feature cards (inline style override) */
html[data-theme="dark"] .home-page .feature-card {
  background: #1a1d27 !important;
  border-color: #2a2f42 !important;
}
html[data-theme="dark"] .home-page .feature-card h2 {
  color: #f0f2f7 !important;
}
html[data-theme="dark"] .home-page .feature-card p {
  color: #8892a4 !important;
}
html[data-theme="dark"] .home-page .feature-icon {
  background: #3d1214 !important;
  color: #e53e3e !important;
}

/* Homepage: category cards */
html[data-theme="dark"] .home-page .category-card {
  background: #1a1d27 !important;
  border-color: #2a2f42 !important;
  color: #d1d5e0 !important;
}
html[data-theme="dark"] .home-page .category-card span {
  color: #f0f2f7 !important;
}
html[data-theme="dark"] .home-page .category-card small {
  color: #8892a4 !important;
}
html[data-theme="dark"] .home-page .category-card strong {
  color: #e53e3e !important;
}
html[data-theme="dark"] .home-page .category-card::after {
  background: #2a2f42 !important;
}
html[data-theme="dark"] .home-page .section-heading h2 {
  color: #f0f2f7 !important;
}
html[data-theme="dark"] .home-page .section-heading p {
  color: #8892a4 !important;
}
html[data-theme="dark"] .home-page .eyebrow {
  color: #e53e3e !important;
}
html[data-theme="dark"] .home-page .popular-section-premium {
  background: #1a1d27 !important;
  border-color: #2a2f42 !important;
}
html[data-theme="dark"] .home-page .process-step {
  background: #1a1d27 !important;
  border-color: #2a2f42 !important;
}
html[data-theme="dark"] .home-page .process-step h3 {
  color: #f0f2f7 !important;
}
html[data-theme="dark"] .home-page .process-step p {
  color: #8892a4 !important;
}
html[data-theme="dark"] .home-page .process-step span {
  background: #3d1214 !important;
  color: #e53e3e !important;
}
html[data-theme="dark"] .home-page .trust-item {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.08) !important;
}
html[data-theme="dark"] .home-page .hero-slider {
  background: #0f1117 !important;
}
html[data-theme="dark"] .home-page .visual-card {
  background: #1a1d27 !important;
}
html[data-theme="dark"] .home-page .visual-info div {
  background: #252838 !important;
}
html[data-theme="dark"] .home-page .visual-info strong {
  color: #f0f2f7 !important;
}
html[data-theme="dark"] .home-page .visual-info small {
  color: #8892a4 !important;
}

/* Sidebar & filter */
html[data-theme="dark"] .sidebar a {
  background: #1e2130;
  color: #d1d5e0;
  border-color: #2a2f42;
}
html[data-theme="dark"] .sidebar a:hover,
html[data-theme="dark"] .sidebar a.is-active {
  background: #3d1214;
  border-color: #e53e3e;
  color: #f0f2f7;
}

/* Cart / Checkout */
html[data-theme="dark"] .cart-table th {
  background: #1e2130;
  color: #8892a4;
  border-color: #2a2f42;
}
html[data-theme="dark"] .cart-item-row {
  border-color: #2a2f42;
}
html[data-theme="dark"] .cart-qty-btn {
  background: #252838;
  border-color: #2a2f42;
  color: #d1d5e0;
}

/* Admin base */
html[data-theme="dark"] .management-hero,
html[data-theme="dark"] .cl-card,
html[data-theme="dark"] .cl-filter {
  background: #1a1d27;
  border-color: #2a2f42;
}
html[data-theme="dark"] .cl-table th {
  background: #1e2130;
  color: #8892a4;
  border-color: #2a2f42;
}
html[data-theme="dark"] .cl-table td {
  border-color: #252838;
  color: #d1d5e0;
}
html[data-theme="dark"] .cl-table tr:hover td {
  background: #1e2130;
}
html[data-theme="dark"] .cl-root-row td {
  background: #1e2130;
}
html[data-theme="dark"] .cl-root-row:hover td {
  background: #252838;
}
html[data-theme="dark"] .cl-slug {
  color: #5a6475;
}

/* ─────────────── CORPORATE THEME ─────────────── */
html[data-theme="corporate"] {
  --bg:             #f0f4ff;
  --surface:        #ffffff;
  --surface-soft:   #f5f7ff;
  --surface-strong: #e8ecf8;
  --text:           #1e2a4a;
  --muted:          #5a6a8a;
  --line:           #c8d4ec;
  --accent:         #2563eb;
  --accent-dark:    #1d4ed8;
  --ink:            #0f172a;
  --dark:           #1e2a4a;
  --whatsapp:       #1f9d55;
  --warning-bg:     #fff7ed;
  --warning-text:   #9a3412;
  --shadow:         0 18px 44px rgba(30, 42, 74, 0.10);
  --shadow-soft:    0 10px 26px rgba(30, 42, 74, 0.07);
}

/* Focus ring → blue */
html[data-theme="corporate"] input:focus,
html[data-theme="corporate"] textarea:focus,
html[data-theme="corporate"] select:focus {
  outline-color: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.55);
}

/* Brand mark */
html[data-theme="corporate"] .brand-mark {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

/* Feature icon */
html[data-theme="corporate"] .feature-icon {
  background: #eff6ff;
  color: #2563eb;
}

/* Category cards – corporate blue tones */
html[data-theme="corporate"] .category-kuşe {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}
html[data-theme="corporate"] .category-opak {
  background: linear-gradient(135deg, #1e2a4a, #3b4f7a);
}
html[data-theme="corporate"] .category-seffaf {
  background: linear-gradient(135deg, #1e3a8a, #60a5fa);
}
html[data-theme="corporate"] .category-termal {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}
html[data-theme="corporate"] .category-ozel {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

/* Cart header */
html[data-theme="corporate"] .cart-header-link:hover {
  border-color: rgba(37, 99, 235, 0.45);
}

/* Sidebar active filter */
html[data-theme="corporate"] .sidebar a.is-active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

/* Homepage: homepage-specific corporate overrides */
html[data-theme="corporate"] .home-page .feature-icon {
  background: #eff6ff !important;
  color: #2563eb !important;
}
html[data-theme="corporate"] .home-page .category-card::after {
  background: #dbeafe !important;
}
html[data-theme="corporate"] .home-page .category-card strong {
  color: #2563eb !important;
}
html[data-theme="corporate"] .home-page .process-step span {
  background: #eff6ff !important;
  color: #2563eb !important;
}
html[data-theme="corporate"] .home-page .b2b-cta-premium {
  background: linear-gradient(135deg, #2563eb, #1e3a8a) !important;
}
html[data-theme="corporate"] .home-page .hero-slider-dot.is-active {
  background: #2563eb !important;
}
html[data-theme="corporate"] .home-page .label-preview span {
  background: #2563eb !important;
}
html[data-theme="corporate"] .home-page .visual-logo {
  background: #eff6ff !important;
  color: #2563eb !important;
}
html[data-theme="corporate"] .home-page .button {
  background: #2563eb !important;
}
html[data-theme="corporate"] .home-page .button:hover {
  background: #1d4ed8 !important;
}
html[data-theme="corporate"] .home-page .premium-hero {
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.20), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1e2a4a 52%, #0c1e4a 100%) !important;
}
html[data-theme="corporate"] .home-page .eyebrow {
  color: #93c5fd !important;
}

/* ─────────────── THEME SWITCHER UI ─────────────── */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.theme-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s !important;
  transform: none;
}

.theme-btn:hover {
  background: var(--surface-strong);
  color: var(--ink);
  transform: none;
}

.theme-btn.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  transform: none;
}

.theme-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
