/* =====================================================
   🌐 NAVBAR & MENUBAR GENEL AYARLAR (DÜZELTİLMİŞ)
   ===================================================== */

/* === Link hover rengi sabit kalsın === */
.nav-link:hover,
.nav-item:hover {
  background-color: transparent !important;
}

/* === MENUBAR GENEL === */
.menubar {
  position: relative;
  background: linear-gradient(to right, #ffffff, #f8faff);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 45px; /* Sub-header yüksekliği */
  left: 0;
  width: 100%;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  z-index: 1100;
}

/* === LOGO === */
.navbar-brand img {
  height: 125px;
  width: auto;
  margin-right: 150px;
}

/* === MENU LİNKLERİ === */
.nav-link {
  color: #fff !important;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 22px !important;
  border-radius: 10px;
  transition: all 0.35s ease;
  position: relative;
}

/* Hover efekti */
.nav-link:hover {
  background: linear-gradient(90deg, #82b3ff, #c8e0ff);
  color: #ffffff !important;
  box-shadow: 0 0 6px rgba(130, 179, 255, 0.4);
}

/* Aktif sayfa butonu */
.nav-link.active,
.nav-link:focus,
.nav-link:active {
  background: #3E667D;
  color: #ffffff !important;
  box-shadow: 0 0 6px rgba(130, 179, 255, 0.5);
}

/* === ALT BORDER IŞIK EFEKTİ === */
.menubar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #89b4fa, #f8e58e);
  opacity: 0.6;
}

/* === LOGO VE MENÜ ARASINA BOŞLUK EKLE === */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(40px, 6vw, 120px); /* Esnek aralık */
}

.navbar-brand {
  margin-right: clamp(40px, 5vw, 100px) !important;
}

/* === MENÜ HİZALAMA === */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === SUBHEADER (Üst gri bilgi çubuğu) === */
.sub-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 45px;
  background: rgba(0, 0, 0, 0.45) !important;
  border-bottom: 1px solid #fcce58;
  z-index: 1000;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* === SCROLL YAPILINCA NAVBAR OPARLAŞSIN === */
body.scrolled .navbar {
  background: rgba(0, 0, 0, 0.9) !important;
}

/* === ANA SAYFA (Slider'lı) === */
body.anasayfa .hero,
body.anasayfa .banner,
body.anasayfa .slider,
body.anasayfa .main-slider {
  margin-top: 145px !important; /* Subheader + Navbar */
  position: relative;
  z-index: 1;
}

/* === SLIDER OLMAYAN SAYFALARDA BOŞLUK === */
body:not(.anasayfa) main,
body:not(.anasayfa) .main,
body:not(.anasayfa) .page-content {
  padding-top: 180px !important; /* Navbar + sub-header yüksekliği kadar */
}

/* === ÜRÜNLER SAYFASI === */
body.urunler main,
body.urunler .main,
body.urunler .page-content {
  padding-top: 200px !important;
}

/* === HAKKIMIZDA SAYFASI === */
body.hakkimizda .info-section {
  margin-top: 200px !important;
  padding-top: 1 !important;
}

/* === SÜRDÜRÜLEBİLİRLİK SAYFASI === */
body.surdurulebilirlik .sustainability-section {
  margin-top: 200px !important;
  padding-top: 1 !important;
}

/* === NAVBAR ALT BOŞLUK & GÖRSEL AYAR === */
.hero,
.banner,
.slider,
.main-slider {
  position: relative;
  z-index: 1;
}

/* === MOBİLDE NAVBAR MENÜ BUTONUNU SAĞA AL === */
.navbar .navbar-toggler {
  margin-left: auto !important;
  margin-right: 10px;
  order: 2;
}

/* === Mobil cihazlar için ekstra düzenleme === */
@media (max-width: 992px) {
  .navbar-brand img {
    height: 85px;
  }

  .navbar-nav {
    gap: 5px;
  }

  body:not(.anasayfa) main,
  body:not(.anasayfa) .main,
  body:not(.anasayfa) .page-content {
    padding-top: 150px !important; /* mobilde biraz azalt */
  }
}

/* === Z-index düzenleme (daha stabil katman sırası) === */
.sub-header { z-index: 1000; }
.navbar { z-index: 1100; }
.navbar-toggler {
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
