/* GMS aydınlık tema: yalnızca html[data-theme="light"] altında etkindir; koyu tema styles.css'tedir. */

/* Dil düğmeleriyle aynı dil: koyu hap, parlak renkli çerçeve (turuncu) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 22px; flex: 0 0 auto; padding: 0;
  border-radius: 999px; cursor: pointer;
  color: #ff9d00;
  background: rgba(11, 15, 25, 0.85);
  border: 1.5px solid rgba(255, 106, 0, 0.65);
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle:hover { background: rgba(255, 106, 0, 0.18); color: #ffffff; box-shadow: 0 0 12px rgba(255, 106, 0, 0.55); }
.theme-toggle:focus-visible { outline: 2px solid #ff9d00; outline-offset: 2px; }

html[data-theme="light"] {
  color-scheme: light;
  --bg-main: #dde3eb;
  --bg-secondary: #d0d8e2;
  --bg-surface: rgba(255, 255, 255, 0.92);
  --bg-surface-hover: #ffffff;
  --bg-glass: rgba(15, 23, 42, 0.04);

  --accent-orange: #c24a00;
  --success-green: #059669;
  --accent-glow: rgba(255, 106, 0, 0.18);
  --steel-slate: #dbe3ec;
  --steel-border: rgba(15, 23, 42, 0.12);
  --steel-border-hover: rgba(255, 106, 0, 0.55);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-accent: #c2410c;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.18);
}

/* ---- Sabit koyu renkli bileşenlerin aydınlık karşılıkları ---- */
html[data-theme="light"] .header,
html[data-theme="light"] .header.scrolled {
  --bg-main: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: #ff9d00;
  --accent-orange: #ff6a00;
  --steel-border: rgba(255, 255, 255, 0.12);
  --bg-glass: rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 3px solid #ff6a00;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.35);
}
html[data-theme="light"] .brand-title,
html[data-theme="light"] .brand-name,
html[data-theme="light"] .logo-title { color: var(--text-primary) !important; }


html[data-theme="light"] .back-to-top { background: rgba(255, 255, 255, 0.96); }
html[data-theme="light"] .cerez-bant,
html[data-theme="light"] .lang-suggest { background: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18); }
html[data-theme="light"] .form-control { background: #ffffff; }
html[data-theme="light"] select.form-control option { background: #ffffff; color: #0f172a; }

@media (max-width: 1139px) {
  html[data-theme="light"] .nav-links { background: rgba(15, 23, 42, 0.99); }
  html[data-theme="light"] .nav-link { background: rgba(255, 255, 255, 0.05); }
  html[data-theme="light"] .mobile-cta { background: rgba(255, 255, 255, 0.98); box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12); }
}

html[data-theme="light"] .brand-subtitle,
html[data-theme="light"] .brand-sub,
html[data-theme="light"] .logo-subtitle { color: #ff9d00 !important; }

/* Yüzey üzerindeki sabit beyaz/açık metinler (styles.css'te #fff yazılmış) */
html[data-theme="light"] .calc-rec-model,
html[data-theme="light"] .export-country-name,
html[data-theme="light"] .commercial-text h4,
html[data-theme="light"] .gallery-info .gallery-title,
html[data-theme="light"] .gallery-card .gallery-title,
html[data-theme="light"] .article-card h2,
html[data-theme="light"] .article-card h3,
html[data-theme="light"] .wizard-step-title,
html[data-theme="light"] .wizard-opt-val,
html[data-theme="light"] .wizard-result-title,
html[data-theme="light"] .plant-guide-card-title,
html[data-theme="light"] .plant-guide-list strong,
html[data-theme="light"] .bk-faq summary,
html[data-theme="light"] .exp-party-sg .exp-brand,
html[data-theme="light"] .exp-party-sg .exp-legal { color: var(--text-primary); }
html[data-theme="light"] .article-body p { color: #334155; }
html[data-theme="light"] .wizard-result-box { background: #ffffff; }
html[data-theme="light"] .exp-party-sg .exp-role,
html[data-theme="light"] .exp-party-sg .exp-mersis,
html[data-theme="light"] .exp-party-sg .exp-mersis span { color: #c2410c; }
html[data-theme="light"] .exp-party-sg { background: #ffffff; }

/* Hero ve sayfa başlık bantları fotoğraf/koyu zemin üzerinde: aydınlık temada da koyu palet kullanır */
html[data-theme="light"] .hero,
html[data-theme="light"] .page-hero {
  --bg-main: #07090d;
  --bg-secondary: #0e1218;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: #ff9d00;
  --accent-orange: #ff6a00;
  --steel-border: rgba(255, 255, 255, 0.12);
  --bg-glass: rgba(255, 255, 255, 0.05);
}

/* ---- Aydınlık tema: kartlarda ve başlıklarda hafif derinlik (3D) ---- */
html[data-theme="light"] :is(.product-card, .calculator-card, .feature-card, .export-card, .contact-info-card,
  .contact-form-card, .contact-card, .gallery-card, .gallery-item, .article-card, .plant-guide-card,
  .wizard-result-box, .model-list, .bk-faq details, .exp-party-sg) {
  background: linear-gradient(160deg, #ffffff 0%, #eef2f7 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgba(15, 23, 42, 0.10),
    0 8px 18px -4px rgba(15, 23, 42, 0.16),
    0 22px 38px -14px rgba(15, 23, 42, 0.22);
}
html[data-theme="light"] :is(.product-card, .feature-card, .export-card, .gallery-card, .gallery-item, .article-card, .plant-guide-card):hover {
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 2px 4px rgba(15, 23, 42, 0.12),
    0 14px 26px -4px rgba(15, 23, 42, 0.22),
    0 32px 54px -16px rgba(15, 23, 42, 0.30);
}

/* Başlıklar: kabartma efekti (hero ve koyu bantlar hariç) */
html[data-theme="light"] :is(h1, h2, h3):not(.hero *, .page-hero *) {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 3px rgba(15, 23, 42, 0.20);
}
html[data-theme="light"] .section-title:not(.hero *, .page-hero *) span,
html[data-theme="light"] .gradient-text:not(.hero *, .page-hero *) {
  text-shadow: none;
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.28));
}

/* Alt bilgi: aydınlık temada koyu lacivert zemin (sayfadan belirgin ayrılır), koyu palet kapsamı */
html[data-theme="light"] .footer {
  --bg-main: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: #ff9d00;
  --accent-orange: #ff6a00;
  --steel-border: rgba(255, 255, 255, 0.12);
  --bg-glass: rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-top: 3px solid #ff6a00;
  box-shadow: 0 -10px 30px -10px rgba(15, 23, 42, 0.35);
}
html[data-theme="light"] .footer .brand-subtitle,
html[data-theme="light"] .footer .brand-sub { color: #ff9d00 !important; }

/* Hamburger düzeninde dil düğmeleri 32px yüksekliğinde: tema düğmesi de aynı boyda */
@media (max-width: 1139px) {
  .theme-toggle { width: 38px; height: 26px; }
}

/* Aydınlık tema: hero fotoğrafı alt kenarda sert kesilmesin, sayfa zeminine yumuşakça karışsın (masaüstü) */
@media (min-width: 769px) {
  html[data-theme="light"] .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(208, 216, 226, 0) 0%, rgba(208, 216, 226, 0.5) 60%, #d0d8e2 100%);
    pointer-events: none;
    z-index: 1;
  }
}

/* Rozetler (küçük turuncu etiketler): açık zeminde okunur olsun */
html[data-theme="light"] .badge:not(.hero *, .page-hero *) {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(194, 74, 0, 0.55);
  color: #8a2f05;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
}
html[data-theme="light"] .badge:not(.hero *, .page-hero *) .badge-dot { background: #c24a00; box-shadow: 0 0 6px rgba(194, 74, 0, 0.6); }

/* Başlıklardaki turuncu vurgulu kelimeler: açık zeminde daha koyu turuncu geçiş */
html[data-theme="light"] .section-title:not(.hero *, .page-hero *) span,
html[data-theme="light"] .gradient-text:not(.hero *, .page-hero *) {
  background-image: linear-gradient(135deg, #c24a00 0%, #e06400 100%);
}

@media (max-width: 480px) {
  .theme-toggle { width: 34px; height: 24px; }
}
@media (max-width: 380px) {
  .theme-toggle { width: 30px; height: 22px; }
}

/* ---- Aydınlık tema: model seçici, tesis rehberi ve galeri bölümünde kalan koyu zeminler ---- */
html[data-theme="light"] :is(.model-wizard-card, .plant-guide-box) {
  background: linear-gradient(160deg, #ffffff 0%, #eef2f7 100%);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.16), 0 22px 38px -14px rgba(15, 23, 42, 0.22);
}
html[data-theme="light"] .model-wizard-card:target,
html[data-theme="light"] .model-wizard-card.highlight-pulse {
  box-shadow: 0 0 28px rgba(194, 74, 0, 0.35), 0 16px 35px rgba(15, 23, 42, 0.18) !important;
}
html[data-theme="light"] .wizard-step-row { background: rgba(15, 23, 42, 0.03); border-color: rgba(15, 23, 42, 0.10); }
html[data-theme="light"] .wizard-step-badge { color: #fff; }
html[data-theme="light"] .wizard-opt-btn { background: #ffffff; border-color: rgba(15, 23, 42, 0.14); }
html[data-theme="light"] .wizard-opt-btn:hover { background: rgba(194, 74, 0, 0.06); border-color: rgba(194, 74, 0, 0.5); }
html[data-theme="light"] .wizard-opt-btn.active { background: rgba(194, 74, 0, 0.10); border-color: var(--accent-orange); box-shadow: 0 0 12px rgba(194, 74, 0, 0.20); }
html[data-theme="light"] .wizard-opt-radio { border-color: #94a3b8; }
html[data-theme="light"] .wizard-opt-btn.disabled { background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.08); }
html[data-theme="light"] .wizard-opt-btn.disabled .wizard-opt-radio { border-color: #cbd5e1; }
html[data-theme="light"] .wizard-opt-hint { color: #b91c1c; }
html[data-theme="light"] .wizard-result-box { border: 1px solid rgba(194, 74, 0, 0.45); border-inline-start: 4px solid var(--accent-orange); }
html[data-theme="light"] .plant-guide-card { border-color: rgba(15, 23, 42, 0.10); }
html[data-theme="light"] .plant-guide-card:hover { background: linear-gradient(160deg, #ffffff 0%, #fff4ea 100%); border-color: rgba(194, 74, 0, 0.45); }
html[data-theme="light"] .plant-guide-card-header { border-bottom-color: rgba(15, 23, 42, 0.10); }
html[data-theme="light"] .plant-guide-card-icon { background: rgba(194, 74, 0, 0.10); border-color: rgba(194, 74, 0, 0.35); }
html[data-theme="light"] .plant-guide-list li i { color: #15803d; }
html[data-theme="light"] .gallery-section { background: transparent; }

/* Satir ici (inline) koyu stiller: !important olmadan ezilemez */
html[data-theme="light"] select.form-control[style*="#0a0e14"] { background: #ffffff !important; color: #0f172a !important; }
html[data-theme="light"] section[style*="rgba(14, 18, 24, 0.95)"] {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  border-top-color: rgba(15, 23, 42, 0.12) !important;
}

/* Model Listesi Yatırımcı Rozetleri & Vitrini - Aydınlık Tema */
html[data-theme="light"] .ml-tag-fa { background: rgba(5, 150, 105, 0.12); border-color: rgba(5, 150, 105, 0.35); color: #047857; }
html[data-theme="light"] .ml-tag-robot { background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.35); color: #1d4ed8; }
html[data-theme="light"] .ml-tag-color { background: rgba(147, 51, 234, 0.12); border-color: rgba(147, 51, 234, 0.35); color: #7e22ce; }
html[data-theme="light"] .ml-tag-cap { background: rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.35); color: #b45309; }
html[data-theme="light"] .ml-tag-eco { background: rgba(2, 132, 199, 0.12); border-color: rgba(2, 132, 199, 0.35); color: #0369a1; }
html[data-theme="light"] .hm-card { background: #ffffff; border-color: rgba(15, 23, 42, 0.12); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06); }
html[data-theme="light"] .hm-card.is-bestseller { background: linear-gradient(180deg, rgba(255, 106, 0, 0.06) 0%, #ffffff 100%); border-color: rgba(255, 106, 0, 0.4); }
html[data-theme="light"] .hm-btn-detail { background: #f1f5f9; border-color: #cbd5e1; color: #1e293b; }
html[data-theme="light"] .hm-btn-detail:hover { background: #e2e8f0; color: #c24a00; }
