/* =====================================================
   HEADER – PREMIUM / STABLE / MOBILE-FIRST (FINAL FULL)
   (VISUAL PREMIUM MOBILE MENU UPGRADE – NO JS/HTML CHANGE)
===================================================== */

:root{
  --header-h: 48px;
  --container-w: 1280px;

  --text: #fff;
  --muted: rgba(255,255,255,.70);

  /* overlays / panels only */
  --glass-strong: rgba(10,10,12,.86);

  --line: rgba(255,255,255,.12);
  --ease: cubic-bezier(.2,.8,.2,1);

  /* premium extras */
  --panel-radius: 22px;
  --panel-shadow: 0 24px 60px rgba(0,0,0,.55);
  --chip-bg: rgba(255,255,255,.06);
  --chip-border: rgba(255,255,255,.14);
  --card-bg: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.10);
}

/* =====================================================
   HEADER (does NOT paint background)
===================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    transform .28s cubic-bezier(.4,0,.2,1),
    background .22s ease,
    backdrop-filter .22s ease;
}

/* Container */
.header-inner{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* =====================================================
   BRAND
===================================================== */
.header-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
}

.site-logo{
  height: 24px;
  max-width: 180px;
  object-fit:contain;
  display:block;
}

.header-tagline{
  font-size:14px;
  font-weight:650;
  white-space:nowrap;
  opacity:.92;
  margin-top: 12px; /* aşağı indir */
}


/* =====================================================
   DESKTOP NAV
===================================================== */
.header-nav{
  flex:1;
  display:flex;
  justify-content:center;
  gap:22px;
}

.header-nav a{
  font-size:13px;
  font-weight:600;
  color:var(--muted);
  text-decoration:none;
  transition:.18s;
}

.header-nav a:hover{
  color:var(--text);
  transform:translateY(-1px);
}

/* =====================================================
   RIGHT SIDE
===================================================== */
.header-right{
  display:flex;
  align-items:center;
  gap:12px;
}

/* =====================================================
   SOCIAL
===================================================== */
.header-socials{
  display:flex;
  align-items:center;
  gap:10px;
  height:36px;
}

.header-socials a{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  transition:background .18s ease;
}

.header-socials a:hover{
  background:rgba(255,255,255,.08);
}

.header-socials img{
  width:16px;
  height:16px;
  display:block;
}

/* =====================================================
   LANG DROPDOWN (COMPACT – UNCHANGED BEHAVIOR)
===================================================== */
.lang-dropdown{
  position:relative;
  display:flex;
  align-items:center;
  height:36px;
}

.lang-current{
  display:flex;
  align-items:center;
  gap:6px;
  height:36px;
  padding:0 10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  color:#fff;
  cursor:pointer;
}

.lang-arrow{
  width:7px;
  height:7px;
  border-right:1.6px solid currentColor;
  border-bottom:1.6px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
}

.lang-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  width:max-content;
  padding:6px 8px;
  border-radius:12px;
  background:rgba(10,10,12,.92);
  border:1px solid rgba(255,255,255,.12);
  display:flex;
  flex-direction:column;
  gap:4px;
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:.16s;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.lang-menu a{
  font-size:11px;
  font-weight:800;
  letter-spacing:.10em;
  color:rgba(255,255,255,.74);
  padding:6px 8px;
  border-radius:8px;
  text-decoration:none;
}

.lang-menu a:hover{
  background:rgba(255,255,255,.10);
  color:#fff;
}

/* =====================================================
   HAMBURGER
===================================================== */
.header-hamburger{
  width:42px;
  height:42px;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  cursor:pointer;
}

.header-hamburger .bar{
  width:18px;
  height:2px;
  background:#fff;
  margin:3px 0;
}

/* =====================================================
   MOBILE MENU – OFF CANVAS (PREMIUM VISUAL UPGRADE)
   (No HTML/JS changes required)
===================================================== */
.mobile-menu{
  position:fixed;
  inset:0;
  z-index:20000;
  pointer-events:none;
}

.mobile-menu.active{
  pointer-events:auto;
}

/* backdrop */
.mobile-menu .backdrop{
  position:absolute;
  inset:0;
  /* premium dim + subtle vignette */
  background:
    radial-gradient(1200px 800px at 85% 20%, rgba(255,255,255,.06), transparent 55%),
    rgba(0,0,0,.62);
  opacity:0;
  z-index:1;
  transition: opacity .22s ease;
}

.mobile-menu.active .backdrop{
  opacity:1;
}

.mobile-menu .panel{
  position: fixed;

  top: 0;
  right: 0;
  left: 0;

  width: 100vw;
  height: 100vh;
  height: 100dvh;

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);

  border-radius: 0;

  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)),
    var(--glass-strong);

  transform: translateX(100%);
  transition: transform .32s var(--ease);

  z-index: 20001;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  padding-top: calc(18px + env(safe-area-inset-top));
  padding-right: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  padding-left: 16px;
}



.mobile-menu.active .panel{
  transform:translateX(0);
}

/* top bar */
.mobile-menu .panel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* current lang label (if you have .mobile-lang-current in HTML, it will look premium) */
.mobile-menu .mobile-lang-current{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
}

/* =====================================================
   CLOSE BUTTON (X) – stays as you have (visual polish)
===================================================== */
.mobile-menu .close{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  cursor:pointer;
  z-index:3;
  transition: transform .16s var(--ease), background .16s ease, border-color .16s ease;
}

.mobile-menu .close:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.20);
}

.mobile-menu .close:active{
  transform: translateY(1px) scale(.98);
}

.mobile-menu .close-icon{
  position:relative;
  width:18px;
  height:18px;
}

.mobile-menu .close-icon::before,
.mobile-menu .close-icon::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:18px;
  height:2px;
  background:#fff;
  border-radius: 2px;
  opacity: .92;
}

.mobile-menu .close-icon::before{
  transform:translate(-50%,-50%) rotate(45deg);
}

.mobile-menu .close-icon::after{
  transform:translate(-50%,-50%) rotate(-45deg);
}

/* =====================================================
   MOBILE NAV – premium cards
===================================================== */
.mobile-menu nav{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.mobile-menu nav a{
  display:flex;
  align-items:center;
  justify-content: flex-start;

  padding: 16px 14px;
  margin: 0;

  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;

  color: rgba(255,255,255,.92);
  text-decoration:none;

  font-size: 18px;       /* premium: bigger type */
  font-weight: 750;
  letter-spacing: .01em;

  box-shadow: 0 10px 26px rgba(0,0,0,.25);

  transition: transform .18s var(--ease), background .18s ease, border-color .18s ease;
}

.mobile-menu nav a:hover{
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border-color: rgba(255,255,255,.16);
}

.mobile-menu nav a:active{
  transform: translateY(1px);
}

/* =====================================================
   MOBILE LANG – make chips premium (if exists)
===================================================== */
.mobile-menu .mobile-lang{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.mobile-menu .mobile-lang a{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 10px 14px;
  border-radius: 999px;

  background: var(--chip-bg);
  border: 1px solid var(--chip-border);

  color: rgba(255,255,255,.86);
  text-decoration:none;

  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;

  transition: transform .16s var(--ease), background .16s ease, border-color .16s ease;
}

.mobile-menu .mobile-lang a:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

.mobile-menu .mobile-lang a:active{
  transform: translateY(1px);
}

/* =====================================================
   MOBILE SOCIALS – premium links row (if exists)
===================================================== */
.mobile-menu .mobile-socials{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
}

.mobile-menu .mobile-socials a{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);

  color: rgba(255,255,255,.78);
  text-decoration:none;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;

  transition: background .16s ease, border-color .16s ease, transform .16s var(--ease);
}

.mobile-menu .mobile-socials a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

.mobile-menu .mobile-socials a:active{
  transform: translateY(1px);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width:900px){
  .header-nav,
  .header-tagline,
  .header-socials,
  .lang-dropdown{
    display:none;
  }
  .header-hamburger{
    display:flex;
  }
}

@media (max-width:420px){
  .mobile-menu .panel{
    right: 8px;
    top: 8px;
    height: calc(100% - 16px);
    width: min(92vw, 420px);
  }
  .mobile-menu nav a{
    font-size: 17px;
    padding: 15px 13px;
  }
}

/* =====================================================
   HEADER JS STATES
===================================================== */
.site-header.is-solid{
  background:rgba(10,10,12,.72);
}

.site-header.is-hidden{
  transform:translateY(-100%);
}

/* Keep your “click fix” as-is (do not remove) */
.mobile-menu,
.mobile-menu *{
  pointer-events: auto;
}

.mobile-menu .backdrop{
  pointer-events: auto;
}

.mobile-menu .panel{
  pointer-events: auto;
}
