﻿/* =============================================================
   ENYED — Navbar & Navigation Styles (Responsive)
   ============================================================= */
/* Seçici çıplak "nav" idi: sayfadaki HER <nav>, örneğin bir sayfa yolu,
   üst menünün stilini devralıyor, position:fixed ile ekranın tepesine
   yapışıp gerçek menünün üzerine biniyordu. Kural artık yalnızca üst
   menüye bağlı. */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px 40px; border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 19, 34, .72);
  transition: padding .3s ease, background .3s ease;
}

.brand { display: flex; align-items: center; gap: 10px; z-index: 220; }
.brand img { height: 28px; width: auto; display: block; }

/* Menü: tasarımda normal harf düzeni, aktif olan altın alt çizgili. */
.links {
  display: flex; gap: 30px;
  font-size: 14px; font-weight: 500; letter-spacing: .2px;
  text-transform: none; color: var(--dim);
}
.links a {
  color: inherit; text-decoration: none; position: relative;
  padding-bottom: 4px; transition: color .2s;
}
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.links a:hover { color: var(--fg); }
.links a:hover::after, .links a.active::after { transform: scaleX(1); }
.links a.active { color: var(--fg); }

.nav-right { display: flex; align-items: center; gap: 16px; z-index: 220; }

/* Dil seçici: tasarımda küre ikonu + sade metin. */
.lang-switch {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  overflow: hidden;
  font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .5px;
}
.lang-switch button, .lang-switch a {
  padding: 7px 13px; background: transparent; border: none; color: var(--dim);
  font: inherit; letter-spacing: inherit; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch button:hover, .lang-switch a:hover { color: var(--fg); }
.lang-switch button.active, .lang-switch a.active {
  background: var(--gold); color: #0B1220;
}

/* Üstteki ana çağrı düğmesi — dolu altın hap. */
.cta {
  border: 1px solid var(--gold); padding: 11px 22px; border-radius: var(--radius-pill);
  font-family: "Inter", sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: .2px;
  text-transform: none;
  background: var(--gold); color: #0B1220; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: background .2s, box-shadow .25s;
}
.cta:hover { background: var(--gold-bright); box-shadow: var(--shadow-gold); }
.menu-cta { display: none; }

.burger {
  display: none; width: 32px; height: 24px; position: relative;
  background: none; border: none; cursor: pointer; padding: 0; z-index: 220;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--fg);
  border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 20px; }

.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Bottom Tabbar */
.mobile-tabbar { display: none; }

/* =============================================================
   RESPONSIVE BREAKPOINTS: Tablet & Mobile (< 1100px / < 900px)
   ============================================================= */
@media (max-width: 1100px) {
  .links { gap: 20px; font-size: 13px; }
  nav.site-nav { padding: 16px 24px; }
}

@media (max-width: 900px) {
  nav.site-nav { padding: 14px 20px; }
  .brand img { height: 24px; }
  .cta { display: none; }
  .burger { display: block; }

  .links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    background: rgba(5, 14, 26, .98);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 22px; font-size: 18px; font-weight: 500; letter-spacing: .5px;
    z-index: 210; opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .links.open {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .links a { padding: 8px 16px; border-radius: 8px; }
  .links a::after { display: none; }
  .links a:hover { color: var(--gold-bright); background: rgba(255, 255, 255, .05); }

  .menu-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 14px; padding: 13px 32px;
    border: 1px solid var(--gold); border-radius: var(--radius-pill);
    background: var(--gold); color: #0B1220;
    font-family: "Inter", sans-serif; font-size: 14px;
    font-weight: 600; letter-spacing: .2px; text-transform: none;
    cursor: pointer;
  }

  .nav-right { gap: 12px; }
  .lang-switch button, .lang-switch a { padding: 6px 11px; font-size: 11px; }
}

/* =============================================================
   RESPONSIVE BREAKPOINTS: Mobile Tabbar (< 768px)
   ============================================================= */
@media (max-width: 768px) {
  .mobile-tabbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 180;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 14, 26, .94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .mobile-tabbar button {
    height: 44px; border-radius: 24px; font-family: "Inter", sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: .2px; text-transform: none;
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform .15s ease, opacity .15s ease;
  }
  .mobile-tabbar button:active { transform: scale(0.97); }
  .mobile-tabbar button#tabbarQuote {
    background: var(--gold); color: #0B1220; box-shadow: var(--shadow-gold);
  }
  .mobile-tabbar button#tabbarMap {
    background: rgba(255, 255, 255, .06); color: var(--fg); border: 1px solid var(--line);
  }
}
