/* ═══════════════════════════════════════════
   KENTDEKS — THEME DOCK + FLASHLIGHT
═══════════════════════════════════════════ */

/* ── Floating wrapper (fixed bottom-left, scroll-triggered) ── */
.theme-dock-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  right: auto;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.theme-dock-float.dock-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Flashlight ── */
.theme-fl-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  position: relative;
}

.theme-fl-icon {
  font-size: 20px;
  line-height: 1;
  color: #fbbf24;
  filter:
    drop-shadow(0 0 6px rgba(251,191,36,1))
    drop-shadow(0 0 18px rgba(251,191,36,0.7));
  transform: rotate(0deg);   /* sabit — sallanma kaldırıldı */
  transform-origin: 50% 0%;
  position: relative;
  z-index: 2;
}

/* Cone of light */
.theme-fl-beam {
  width: 200px;
  height: 52px;
  margin-top: -2px;
  background: conic-gradient(
    from 258deg at 50% 0%,
    transparent  0deg,
    rgba(253,230,138,.08)  8deg,
    rgba(253,230,138,.22) 17deg,
    rgba(253,230,138,.30) 21deg,
    rgba(253,230,138,.22) 25deg,
    rgba(253,230,138,.08) 33deg,
    transparent 42deg
  );
  transform: rotate(0deg);   /* sabit — sallanma kaldırıldı */
  transform-origin: 50% 0%;
  pointer-events: none;
}

/* ── Dock shell ── */
.theme-dock {
  display: inline-flex;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(200,216,228,0.55);
  box-shadow:
    0 8px 32px rgba(15,28,63,.16),
    0 1px 0 rgba(255,255,255,.65) inset;
  transition: transform .25s ease, box-shadow .25s ease;
}

.theme-dock:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 44px rgba(15,28,63,.22),
    0 1px 0 rgba(255,255,255,.7) inset;
}

/* ── Dock buttons ── */
.theme-dock-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--n700);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: .01em;
  position: relative;
}

.theme-dock-btn + .theme-dock-btn {
  border-left: 1px solid rgba(165,184,200,.38);
}

.theme-dock-btn i {
  font-size: 13px;
  transition: transform .25s ease;
}

.theme-dock-btn:hover {
  background: rgba(59,122,191,.1);
  color: var(--navy-700);
}

.theme-dock-btn:hover i {
  transform: scale(1.18) rotate(-5deg);
}

.theme-dock-btn.active {
  background: rgba(59,122,191,.14);
  color: var(--navy-700);
}

.theme-dock-btn.active i {
  color: var(--teal-500);
  filter: drop-shadow(0 0 4px rgba(14,165,233,.5));
}

/* ═══════════════════════════════════════════
   DARK MODE — DOCK
═══════════════════════════════════════════ */
html.dark .theme-dock {
  background: rgba(6,13,31,.72);
  border-color: rgba(255,255,255,.09);
  box-shadow:
    0 8px 32px rgba(0,0,0,.45),
    0 1px 0 rgba(255,255,255,.05) inset;
}

html.dark .theme-dock-btn {
  color: rgba(200,216,228,.8);
}

html.dark .theme-dock-btn + .theme-dock-btn {
  border-left-color: rgba(255,255,255,.07);
}

html.dark .theme-dock-btn:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}

html.dark .theme-dock-btn.active {
  background: rgba(59,122,191,.22);
  color: #fff;
}

/* ═══════════════════════════════════════════
   DARK MODE — GLOBAL OVERRIDES
═══════════════════════════════════════════ */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background: #060D1F;
  color: #c8d8e4;
}

/* Navbar */
html.dark .navbar {
  background: rgba(6,13,31,.96);
  border-bottom-color: rgba(255,255,255,.06);
}
html.dark .navbar.scrolled {
  background: rgba(6,13,31,.99);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
html.dark .nav-link           { color: rgba(200,216,228,.6); }
html.dark .nav-link:hover     { color: #fff; background: rgba(255,255,255,.07); }
html.dark .nav-link.on        { color: #fff; background: rgba(255,255,255,.07); }
html.dark .nav-divider        { background: rgba(255,255,255,.08); }
html.dark .nav-lang-btn       { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(200,216,228,.7); }
html.dark .nav-lang-btn:hover { background: rgba(255,255,255,.1); border-color: var(--blue-400); color: #fff; }
html.dark .nav-btn-login      { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(200,216,228,.8); }
html.dark .nav-btn-login:hover{ background: rgba(255,255,255,.1); border-color: var(--blue-400); color: #fff; }
html.dark .nav-dd-menu        { background: #0F1C3F; border-color: rgba(255,255,255,.08); }
html.dark .nav-dd-item        { color: rgba(200,216,228,.75); }
html.dark .nav-dd-item:hover  { background: rgba(255,255,255,.06); color: #fff; }
html.dark .nav-dd-sect        { color: rgba(255,255,255,.3); }

/* Headings & Text */
html.dark .section-h     { color: #e8f0f7; }
html.dark .page-hero-h   { color: #fff; }
html.dark .section-p     { color: rgba(200,216,228,.65); }
html.dark .eyebrow       { color: var(--blue-300); }

/* Backgrounds */
html.dark .bg-white { background: #0F1C3F !important; }

/* Modals */
html.dark .modal-bg { background: rgba(0,0,0,.75); }
html.dark .modal    { background: #0F1C3F; color: #c8d8e4; }
html.dark .modal-title  { color: #fff; }
html.dark .modal-close  { background: rgba(255,255,255,.07); color: rgba(200,216,228,.6); }
html.dark .modal-close:hover { background: rgba(255,255,255,.12); color: #fff; }
html.dark .modal-tabs   { background: rgba(255,255,255,.05); }
html.dark .m-tab        { color: rgba(200,216,228,.5); }
html.dark .m-tab.on     { background: rgba(255,255,255,.08); color: #fff; }
html.dark .field label  { color: rgba(200,216,228,.55); }
html.dark .field input,
html.dark .field select,
html.dark .field textarea {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  color: #c8d8e4;
}
html.dark .field input::placeholder,
html.dark .field textarea::placeholder { color: rgba(200,216,228,.3); }
html.dark .field input:focus,
html.dark .field select:focus,
html.dark .field textarea:focus {
  background: rgba(255,255,255,.08);
  border-color: var(--blue-400);
}

/* Mobile nav */
html.dark .mobile-nav         { background: #0A1228; }
html.dark .mnav-link          { color: rgba(200,216,228,.75); }
html.dark .mnav-link:hover    { background: rgba(255,255,255,.06); color: #fff; }
html.dark .mnav-sep           { background: rgba(255,255,255,.07); }
html.dark .mnav-close         { background: rgba(255,255,255,.07); color: rgba(200,216,228,.5); }
html.dark .mobile-nav-overlay { background: rgba(0,0,0,.7); }

/* Common utility surfaces that appear on pages */
html.dark .upload-zone {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
html.dark .upload-zone:hover {
  background: rgba(59,122,191,.1);
  border-color: var(--blue-400);
}

/* Sections with light bg */
html.dark [style*="background:#f"],
html.dark [style*="background: #f"],
html.dark [style*="background:var(--n"],
html.dark [style*="background: var(--n"] {
  background: rgba(255,255,255,.04) !important;
}

/* Inline koyu lacivert metinler (ör. "İyi Teklif", "Başvurunuz Alındı!") */
html.dark [style*="color:var(--navy-800)"],
html.dark [style*="color: var(--navy-800)"],
html.dark [style*="color:var(--navy-900)"],
html.dark [style*="color: var(--navy-900)"] {
  color: #e8f0f7 !important;
}

/* Mobile: compact dock */
@media (max-width: 640px) {
  .theme-dock-float {
    bottom: 16px;
    left: 16px;
  }
  .theme-dock-btn span { display: none; }
  .theme-dock-btn { padding: 8px 11px; }
  .theme-fl-beam  { width: 100px; }
  .theme-fl-icon  { font-size: 17px; }
}

/* ═══════════════════════════════════════════
   DARK MODE — İÇERİK METİN DÜZELTMELERİ
   Sayfa zemini üzerinde kalan koyu başlık/metinler
   (denetimde okunmaz çıkanlar) aydınlatılıyor.
═══════════════════════════════════════════ */
html.dark .guide-section h2,
html.dark .guide-section h3,
html.dark .guide-section h4,
html.dark .tl-title,
html.dark .ke-title,
html.dark .svc-card h3,
html.dark .hiw-step h3,
html.dark .dc-n,
html.dark .dc-r,
html.dark .expert-card h3,
html.dark .testi-card h3,
html.dark .blog-card h3,
html.dark .rsb-label,
html.dark .hfc-title,
html.dark .cta-h,
html.dark .stat-n,
html.dark .metric-v,
html.dark .dist-tab.on,
html.dark .expert-name,
html.dark .expert-cta-bar-copy b,
html.dark .trust-item b,
html.dark .testi-user b     { color: #e8f0f7; }

html.dark .guide-section p,
html.dark .guide-section li,
html.dark .svc-card p,
html.dark .hiw-step p,
html.dark .dc p,
html.dark .blog-card p      { color: rgba(200,216,228,.72); }

/* kendi açık zemini olan bileşenler korunur (uyarı kutuları, sohbet
   balonları vb.) — onlarda koyu metin doğrudur, dokunulmuyor. */

/* Mobil çekmece lacivert zeminli → içindeki outline buton her iki
   modda da açık renk olmalı (koyu üstünde koyu kalıyordu) */
.mobile-nav .btn-outline,
html.dark .mobile-nav .btn-outline {
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.28);
  background: transparent;
}
.mobile-nav .btn-outline:hover,
html.dark .mobile-nav .btn-outline:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* Rehber sayfası: kart ve kalın metinler dark modda okunur olsun */
html.dark .gs-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
html.dark .guide-section b,
html.dark .guide-section strong,
html.dark .gs-card b,
html.dark .gs-card strong   { color: #e8f0f7; }
html.dark .gs-card p,
html.dark .gs-card span     { color: rgba(200,216,228,.75); }

/* ═══════════════════════════════════════════
   DARK MODE — ANA SAYFA (home.css) BEYAZ ZEMİNLER
   Bu bölüm/kart arka planları var(--white) olarak
   sabitlenmişti, dark modda da beyaz kalıyorlardı.
═══════════════════════════════════════════ */

/* --bg-2 çok sayıda küçük yüzeyde (ikon kutusu, etiket,
   avatar, metrik kutusu) kullanılıyor — tek yerden
   koyulaştırmak hepsini otomatik düzeltiyor. */
html.dark { --bg-2: #101B34; }

/* Section düzeyi beyaz bantlar → koyu zeminle kaynaşsın */
html.dark .services-sec,
html.dark .analysis-sec,
html.dark .dist-sec,
html.dark .logo-carousel-sec,
html.dark .stats-bar,
html.dark .ct-section,
html.dark .testi-sec {
  background: #060D1F;
}

/* Kart düzeyi yüzeyler → koyu panel */
html.dark .svc-card,
html.dark .result-card,
html.dark .an-right,
html.dark .hiw-step,
html.dark .expert-card,
html.dark .expert-cta-bar,
html.dark .blog-card,
html.dark .trust-item,
html.dark .testi-card,
html.dark .dc:hover,
html.dark .dist-tab:hover,
html.dark .dist-tab.on,
html.dark .lc-logo:hover {
  background: #0F1C3F;
}
html.dark .result-card,
html.dark .an-right,
html.dark .expert-card,
html.dark .expert-cta-bar {
  border-color: rgba(255,255,255,.08);
}
html.dark .dc-rows span { background: #0F1C3F; border-color: rgba(255,255,255,.12); }
html.dark .blog-card:hover,
html.dark .trust-item:hover,
html.dark .testi-card:hover { background: rgba(255,255,255,.05); }

/* svc-link butonu: açık modda koyu lacivert yazı/kenarlık kullanıyor,
   koyu kart zemininde görünmez olmasın diye açık tona çevrilir */
html.dark .svc-link {
  color: #e8f0f7;
  border-color: rgba(255,255,255,.25);
}
html.dark .svc-card:hover .svc-link { box-shadow: 0 4px 12px rgba(0,0,0,.35); }

/* Grid-gap ile oluşan ince bölücü çizgiler (kart arası) */
html.dark .svc-grid,
html.dark .trust-grid,
html.dark .testi-grid,
html.dark .blog-grid,
html.dark .hiw-grid {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.08);
}
