/* tool-nav.css — css/shared.css YÜKLEMEYEN araç sayfaları için nav + skip-link.
   Kurallar shared.css'ten CSSOM üzerinden birebir çıkarıldı (2026-07-26).

   Neden ayrı dosya: bu sayfaların hepsi kendi bağımsız koyu tasarımına sahip
   (kendi --navy/--cream değişkenleri). shared.css'i bütün olarak yüklemek
   tasarımlarını ezerdi. Burada YALNIZCA nav'a özgü seçiciler var.

   Renkler LİTERAL yazıldı; --color-* değişkeni tanımlanmıyor ki sayfaların
   kendi paletiyle çakışma ihtimali olmasın.

   Tema anahtarı YOK: bu sayfalar koyu-kilitli (data-theme-lock="dark") ve
   shared.js yüklemedikleri için anahtar çalışmazdı. Nav her zaman koyu.

   shared.css'i yükleyen bir sayfada BU DOSYAYI KULLANMA (mükerrer olur). */

.skip-link {
  position: absolute; top: -100%; left: 0;
  background: #C9A962; color: #0A1628;
  padding: 0.8rem 1.5rem; z-index: 10000;
  font-size: 0.85rem; text-decoration: none; font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

nav:not(.breadcrumb) {
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  padding: 0.9rem 2rem;
  display: flex; justify-content: center; align-items: center;
  background: rgba(10, 22, 40, 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}
.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; max-width: 1280px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600; letter-spacing: 0.06em;
  text-decoration: none; color: #C9A962;
  display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.logo-symbol { font-size: 1.15rem; }
.nav-links {
  display: flex; gap: 1.1rem; list-style: none; align-items: center;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: #F5F3EF;
  font-family: 'Raleway', sans-serif;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.25s ease; white-space: nowrap;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.nav-links a:hover, .nav-links a.active { color: #C9A962; }
.nav-cta {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #C9A962, #E8D5A3);
  border: none; border-radius: 4px;
  font-weight: 500; transition: all 0.3s ease;
  color: #0A1628 !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 98, 0.4);
  background: linear-gradient(135deg, #E8D5A3, #C9A962);
}
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; background: none; border: none;
  -webkit-appearance: none; appearance: none;
}
.menu-toggle span {
  width: 24px; height: 1px; background: #C9A962; transition: all 0.3s ease;
}
.lang-switcher { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.lang-switcher a {
  color: rgba(255, 255, 255, 0.45); text-decoration: none;
  font-size: 0.82em; font-weight: 600; padding: 2px 6px; border-radius: 4px;
}
.lang-switcher a:hover { color: #C9A962; }
.lang-switcher a.active { color: #C9A962; background: rgba(201, 169, 98, 0.15); }
.lang-switcher .sep { color: rgba(255, 255, 255, 0.25); font-size: 0.8em; }

/* ---- site içi arama (Cmd+K) ----
   Bu sayfalar js/shared.js YÜKLÜYOR: shared.js nav'a arama düğmesini enjekte
   ediyor, overlay'i gövdeye ekliyor ve /js/search-index.js'i kendi indiriyor.
   Yani arama çalışıyordu, yalnızca stili yoktu (shared.css'te). Aşağısı onu
   tamamlıyor. Açık tema varyantları alınmadı; bu sayfalar koyu-kilitli. */
.nav-search-btn {
  background: none; border: none; color: #9A98A6; cursor: pointer;
  padding: 6px; display: flex; align-items: center; justify-content: center;
  transition: color 0.3s ease; flex-shrink: 0;
}
.nav-search-btn:hover { color: #C9A962; }
.nav-search-btn svg { width: 18px; height: 18px; }

.search-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 15, 0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  z-index: 10001; display: none; flex-direction: column; align-items: center;
  padding-top: 12vh; opacity: 0; transition: opacity 0.25s ease;
}
.search-overlay.open { display: flex; opacity: 1; }
.search-overlay.fade-out { opacity: 0; }
.search-container { width: 100%; max-width: 640px; padding: 0 24px; }
.search-input-wrap { position: relative; margin-bottom: 12px; }
.search-input-wrap svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: rgba(245, 243, 239, 0.55); pointer-events: none;
}
.search-input {
  width: 100%; padding: 18px 50px 18px 52px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 169, 98, 0.2); border-radius: 12px;
  color: #F5F3EF; font-family: 'Raleway', sans-serif; font-size: 1.1rem;
  outline: none; transition: border-color 0.2s ease;
}
.search-input:focus { border-color: #C9A962; box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.12); }
.search-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.search-kbd {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 0.7rem; color: rgba(245, 243, 239, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px;
  padding: 3px 8px; letter-spacing: 0.05em;
}
.search-close {
  position: fixed; top: 24px; right: 28px;
  background: none; border: none; color: rgba(245, 243, 239, 0.55);
  font-size: 1.6rem; cursor: pointer; padding: 8px;
  transition: color 0.2s ease; z-index: 10002;
}
.search-close:hover { color: #C9A962; }
.search-results { max-height: 55vh; overflow-y: auto; padding-right: 4px; }
.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-thumb { background: rgba(201, 169, 98, 0.2); border-radius: 2px; }
.search-result-item {
  display: block; text-decoration: none; padding: 14px 18px;
  border-radius: 8px; transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.search-result-item:hover, .search-result-item.active { background: rgba(201, 169, 98, 0.08); }
.search-result-cat {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #C9A962; opacity: 0.7; margin-bottom: 3px;
}
.search-result-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 500;
  color: #F5F3EF; margin-bottom: 4px;
}
.search-result-item:hover .search-result-title { color: #C9A962; }
.search-result-desc {
  font-size: 0.78rem; color: #9A98A6; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search-hint { text-align: center; padding: 30px 20px; color: rgba(255, 255, 255, 0.25); font-size: 0.82rem; }
.search-empty { text-align: center; padding: 40px 20px; color: rgba(245, 243, 239, 0.55); font-size: 0.9rem; }

/* sabit nav'ın altında kalmamak için gövde boşluğu */
body { padding-top: 72px; }

@media (max-width: 768px) {
  nav:not(.breadcrumb) { padding: 1rem 2rem; }
  .menu-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #0A1628; flex-direction: column;
    padding: 2rem; gap: 1.5rem;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
  }
  .nav-links.active { display: flex; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .search-overlay { padding-top: 6vh; }
  .search-input { font-size: 1rem; padding: 16px 16px 16px 48px; }
  .search-close { top: 16px; right: 16px; }
  .search-results { max-height: 65vh; }
  .search-kbd { display: none; }
  /* body padding-top mobilde de 72px kalır: nav mobilde 67-69px ölçülüyor,
     64px verilince içerik nav'ın altında kalıyordu. Sitenin kendi
     sayfaları da her iki kırılımda 72px kullanıyor. */
}
