/* =========================
   HEADER (fixed + stable)
   ========================= */

:root{
  --header-h: 86px; /* desktop tahmini */
}

.site-header{
  background: rgba(16, 24, 40, .90);
  border-bottom: 1px solid var(--border);

  position: fixed;      /* ✅ sticky değil */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;

  z-index: 9999;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  padding: 18px 0;
}

/* fixed header content’i ezmesin */
body{
  padding-top: var(--header-h);
}

.header-inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

/* BRAND */
/* =========================
   BRAND (logo fix)
   ========================= */

.fc-brand{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.fc-brand__logo-wrap:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

/* En kritik fix: height sabit, width auto */
.fc-brand__logo{
  height: 45px;        /* 42 yerine biraz daha dengeli (48px header içinde) */
  width: auto;
  display: block;

  border-radius: 0;    /* logo PNG zaten köşeli, radius bozmaya gerek yok */
  object-fit: contain; /* cover değil */
}

/* Mobilde logo biraz küçülsün */
@media (max-width: 860px){
  .fc-brand__logo-wrap{ height: 40px; padding: 5px 9px; }
  .fc-brand__logo{ height: 28px; }
}

/* NAV (desktop) */
.nav{
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.nav-link{
  text-decoration: none;
  color: var(--text);
  opacity: .92;
  padding: 10px 14px;
  border-radius: 12px;
  transition: transform .12s ease, background .12s ease, opacity .12s ease;
}

.nav-link:hover{
  opacity: 1;
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

.nav-link.is-active{
  opacity: 1;
  color: var(--text-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.12);
}

/* RIGHT ACTIONS */
.header-actions{
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn--header{ white-space: nowrap; }

/* BURGER */
.burger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--text-strong);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.burger:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

/* =========================
   MOBILE NAV (fixed under header)
   ========================= */

.mobile-nav{
  position: fixed;                 /* ✅ header ile beraber sabit */
  left: 0;
  right: 0;
  top: var(--header-h);            /* header altından başlasın */
  width: 100%;

  background: rgba(16, 24, 40, .98);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  z-index: 9998;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;

  transition:
    max-height .28s ease,
    opacity .18s ease;
}

.mobile-nav[hidden]{
  display: none !important;
}

.mobile-nav.is-open{
  opacity: 1;
  max-height: 420px;
  overflow-y: auto;
  pointer-events: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

.mobile-nav__inner{
  padding: 14px 24px 24px;
  display: grid;
  gap: 10px;
}

.mobile-link{
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 500;
  transition: background .12s ease, transform .12s ease;
}

.mobile-link:hover{
  background: rgba(255,255,255,.08);
  transform: translateX(4px);
}

.mobile-link.is-active{
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border-color: rgba(255,255,255,.14);
}

/* mobil menü içinde CTA görünmesin (sende üstte var zaten) */
.mobile-nav .mobile-cta,
.mobile-nav .btn,
.mobile-nav .btn--header{
  display: none !important;
}

@media (prefers-reduced-motion: reduce){
  .mobile-nav{ transition: none; }
}

/* RESPONSIVE */
@media (max-width: 860px){
  :root{ --header-h: 64px; }       /* mobil header daha kısa */
  .site-header{ padding: 12px 0; }

  .header-inner{
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav--desktop{ display: none; }

  .burger{
    display: inline-grid;
    place-items: center;
  }

  .fc-brand__meta{ display: none; }
}
