/* ============================================================
   TOPBAR — MODERN YENİDEN TASARIM
   Bu dosya, header.php içinde css/light-theme.css'ten SONRA
   yüklenir ve style.css'teki eski/dağınık topbar kurallarının
   üzerine yazar. Topbar'da artık yalnızca para birimi seçici var
   (üyelik, dil seçimi ve sosyal medya kaldırıldı).
   ============================================================ */

.topbar{
  height:46px!important;
  border-bottom:1px solid #e8ecf2!important;
  background:#f7f8fb!important;
}
.topbar-inner{
  height:100%!important;
  width:min(1420px,100%)!important;
  margin:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  padding:0 5%!important;
}
.topbar-start{flex:0 1 auto!important;display:flex!important;align-items:center!important;height:30px!important;gap:18px!important;min-width:0!important}

/* ---- para birimi etiketi ----
   Yüksekliği VE satır yüksekliğini piksel olarak birebir eşitliyoruz;
   yazı tipi metriklerine bağlı otomatik satır yüksekliği (line-height:1 gibi)
   bazı yazı tiplerinde kutunun üstünden taşıp görünür alanın dışında
   kırpılmaya yol açabiliyordu. Sabit piksel değeri bunu tamamen engeller. */
.top-currency{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  color:#5b6579!important;
  font-family:Inter,Arial,sans-serif!important;
  font-size:10.5px!important;
  font-weight:600!important;
  line-height:30px!important;
  letter-spacing:.5px!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
.top-label-text{display:inline-block!important;height:30px!important;line-height:30px!important;color:#8a92a3!important;font-weight:600!important;vertical-align:top!important}

/* ---- native select'i gizle (özel açılır menü onun yerine geçiyor) ---- */
.native-select-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important}

/* ---- özel açılır menü (para birimi) ---- */
.custom-select{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  box-sizing:border-box!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
  flex:none!important;
}
.custom-select-button{
  display:flex!important;
  align-items:center!important;
  box-sizing:border-box!important;
  gap:6px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
  padding:0 24px 0 12px!important;
  border:1px solid #dde2ea!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#1c2436!important;
  font-family:Inter,Arial,sans-serif!important;
  font-size:10.5px!important;
  font-weight:600!important;
  line-height:1!important;
  text-align:left!important;
  white-space:nowrap!important;
  transition:.2s!important;
}
.custom-select-button:hover{border-color:var(--gold)!important}
.custom-select-button:after{
  content:''!important;
  position:absolute!important;
  right:11px!important;top:50%!important;
  width:6px!important;height:6px!important;
  border:0!important;
  border-right:1.5px solid #9aa2b3!important;
  border-bottom:1.5px solid #9aa2b3!important;
  transform:translateY(-65%) rotate(45deg)!important;
  transition:.2s!important;
}
.custom-select.open .custom-select-button:after{transform:translateY(-35%) rotate(-135deg)!important}
.custom-select.open .custom-select-button{border-color:var(--gold)!important}

.custom-select-menu{
  display:none!important;
  position:absolute!important;
  top:calc(100% + 8px)!important;
  right:auto!important;left:0!important;
  z-index:120!important;
  min-width:150px!important;
  padding:6px!important;
  background:#fff!important;
  border:1px solid #e8ecf2!important;
  border-radius:14px!important;
  box-shadow:0 16px 40px #0a234022!important;
}
.custom-select.open .custom-select-menu{display:block!important}
.custom-select-menu button{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  padding:9px 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#333d52!important;
  font:600 11.5px/1 Inter,Arial,sans-serif!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.custom-select-menu button:hover,.custom-select-menu button.selected{background:#faf1de!important;color:var(--gold)!important}

/* ============================================================
   MOBİL (≤800px) — tek breakpoint: etiket metni gizlenir.
   ============================================================ */
@media(max-width:800px){
  .topbar{height:42px!important}
  .topbar-inner{padding:0 4%!important;gap:10px!important}
  .top-label-text{display:none!important}
  .topbar-start,.top-currency{height:28px!important;min-height:28px!important;max-height:28px!important;line-height:28px!important}
  .custom-select,.custom-select-button{height:28px!important;min-height:28px!important;max-height:28px!important}
  .custom-select-button{padding:0 20px 0 10px!important;font-size:10px!important}
}

@media(max-width:420px){
  .topbar-inner{gap:6px!important}
  .custom-select-button{min-width:0!important}
}
