/* assets/css/topbar.css
   ENUCuzGB benzeri 3 katmanlı header + altın vurgular + dropdown + arama
*/

:root{
  --hb-bg0:#07070b;
  --hb-bg1:#0a0b10;
  --hb-bg2:#121421;

  --hb-card: rgba(255,255,255,.04);
  --hb-stroke: rgba(255,255,255,.10);
  --hb-stroke2: rgba(215,177,111,.22);

  --hb-text: rgba(232,237,247,.92);
  --hb-muted: rgba(232,237,247,.70);

  --hb-gold: rgba(215,177,111,1);
  --hb-gold2: rgba(255,216,143,1);
  --hb-blue: rgba(95,120,255,1);
  --hb-green: rgba(0,255,160,1);
  --hb-red: rgba(255,80,80,1);

  --hb-shadow: 0 18px 55px rgba(0,0,0,.35);
}

/* ===== Wrapper ===== */
.hb{
  position: sticky;
  top: 0;
  z-index: 80;
}

/* ===== Banner ===== */
.hb__banner{
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(255,170,0,.20), transparent 60%),
    radial-gradient(900px 220px at 85% 0%, rgba(255,80,80,.18), transparent 60%),
    linear-gradient(180deg, rgba(8,8,12,.98), rgba(8,8,12,.86));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hb__bannerInner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.hb__bannerLeft{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
}
.hb__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(10,12,18,.95);
  background: linear-gradient(180deg, var(--hb-gold2), var(--hb-gold));
  border: 1px solid rgba(215,177,111,.35);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  flex: 0 0 auto;
}
.hb__bannerText{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--hb-text);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.hb__bannerRight{
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--hb-muted);
  font-weight: 900;
  letter-spacing: .2px;
  flex: 0 0 auto;
}
.hb__liveDot{
  width:10px; height:10px;
  border-radius: 999px;
  background: rgba(255,80,80,1);
  box-shadow: 0 0 0 4px rgba(255,80,80,.15);
}
.hb__liveText{ opacity:.95; }

/* ===== Utility ===== */
.hb__util{
  background: linear-gradient(180deg, rgba(18,20,33,.96), rgba(12,13,20,.90));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hb__inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 14px;
  display:grid;
  align-items:center;
  gap:12px;
}
.hb__inner--util{
  grid-template-columns: 1fr auto 1fr;
}

.hb__social{
  display:flex;
  align-items:center;
  gap:8px;
}
.ic{
  width: 34px; height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: var(--hb-text);
  text-decoration:none;
  font-weight: 900;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.ic:hover{
  transform: translateY(-1px);
  border-color: rgba(215,177,111,.30);
  background: rgba(255,255,255,.06);
}

.hb__brandCenter{ display:flex; justify-content:center; }
.brand2{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand2__mark{
  width: 34px; height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(14px 14px at 30% 30%, rgba(255,216,143,.65), transparent 60%),
    linear-gradient(180deg, rgba(215,177,111,.40), rgba(255,255,255,.05));
  border: 1px solid rgba(215,177,111,.30);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.brand2__text{ display:flex; flex-direction:column; line-height: 1.05; }
.brand2__name{
  font-family: "Cinzel", serif;
  font-weight: 800;
  letter-spacing: .6px;
  color: var(--hb-text);
  font-size: 16px;
}
.brand2__sub{
  font-size: 12px;
  font-weight: 900;
  color: rgba(232,237,247,.60);
  letter-spacing: .2px;
}

.hb__auth{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

/* ===== Buttons (utility) ===== */
.btn2{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--hb-text);
  text-decoration:none;
  font-weight: 900;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn2:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(215,177,111,.28);
}
.btn2--gold{
  background: linear-gradient(180deg, rgba(255,216,143,.20), rgba(215,177,111,.12));
  border-color: rgba(215,177,111,.36);
}
.btn2--cta{
  background: linear-gradient(180deg, rgba(0,255,160,.16), rgba(0,255,160,.08));
  border-color: rgba(0,255,160,.28);
}
.btn2--ghost{}

/* ===== Main Nav ===== */
.hb__nav{
  background:
    linear-gradient(180deg, rgba(10,11,16,.92), rgba(10,11,16,.86));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hb__inner--nav{
  grid-template-columns: auto 1fr auto auto;
  padding: 10px 14px;
  gap:12px;
}

/* Burger */
.hb__burger{
  display:none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--hb-text);
  font-weight: 900;
  cursor:pointer;
}

/* Nav items */
.hbnav{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hbnav::-webkit-scrollbar{ display:none; }

.hbnav__link{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--hb-text);
  text-decoration:none;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  white-space: nowrap;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.hbnav__link:hover{
  transform: translateY(-1px);
  border-color: rgba(215,177,111,.30);
  background: rgba(255,255,255,.05);
}

/* Search */
.hbsearch{
  display:flex;
  align-items:center;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
.hbsearch__inp{
  width: 280px;
  max-width: 34vw;
  border:0;
  outline:0;
  background: transparent;
  color: var(--hb-text);
  padding: 0 12px;
  font-weight: 800;
}
.hbsearch__inp::placeholder{ color: rgba(232,237,247,.55); }
.hbsearch__btn{
  width: 44px;
  height: 40px;
  border:0;
  cursor:pointer;
  color: rgba(10,12,18,.95);
  font-weight: 900;
  background: linear-gradient(180deg, var(--hb-gold2), var(--hb-gold));
  border-left: 1px solid rgba(215,177,111,.35);
}

/* Actions group (dropdowns) */
.hb__actions{
  display:flex;
  align-items:center;
  gap:10px;
  white-space: nowrap;
}

/* ===== Dropdowns ===== */
.dd{ position:relative; }
.dd__btn{
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--hb-text);
  font-weight: 900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space: nowrap;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.dd__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(215,177,111,.28);
  background: rgba(255,255,255,.05);
}
.dd__caret{ opacity:.85; }

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(10,12,18,.95);
  background: linear-gradient(180deg, var(--hb-gold2), var(--hb-gold));
  border: 1px solid rgba(215,177,111,.35);
}

.dd__menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: min(380px, calc(100vw - 24px));
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,11,16,.96);
  box-shadow: var(--hb-shadow);
  display:none;
  overflow:hidden;
  transform-origin: top right;
}
.dd.is-open .dd__menu{ display:block; }

.dd__head{
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dd__title{ font-weight: 900; color: var(--hb-text); }
.dd__link{
  color: rgba(232,237,247,.75);
  text-decoration:none;
  font-weight: 900;
}
.dd__link:hover{ color: rgba(255,255,255,.92); }

.dd__empty{ padding: 12px; color: rgba(232,237,247,.70); }
.dd__list{ display:flex; flex-direction:column; }

.dd__item{
  padding: 10px 12px;
  text-decoration:none;
  color: rgba(232,237,247,.88);
  display:flex;
  align-items:center;
  gap:10px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.dd__item:hover{ background: rgba(255,255,255,.05); }
.dd__item .dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(232,237,247,.30);
}
.dd__item.is-unread .dot{
  background: var(--hb-blue);
  box-shadow: 0 0 0 4px rgba(95,120,255,.18);
}
.dd__item .txt{
  flex: 1;
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display:block;
}
.dd__item .time{
  font-size: 12px;
  color: rgba(232,237,247,.60);
  font-weight: 900;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hb__inner--util{ grid-template-columns: auto 1fr auto; }
  .hb__brandCenter{ justify-content:flex-start; }
  .hbsearch__inp{ width: 220px; max-width: 42vw; }
}

@media (max-width: 760px){
  .hb__burger{ display:inline-flex; align-items:center; justify-content:center; }
  .hb__inner--nav{ grid-template-columns: auto 1fr auto; }
  .hbsearch{ display:none; }

  /* Mobile nav overlay (toggle ile açılır) */
  .hbnav{
    position:absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 10px);
    flex-direction:column;
    align-items:stretch;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(10,11,16,.98);
    box-shadow: var(--hb-shadow);
    display:none;
    overflow: visible;
  }
  .hbnav.is-open{ display:flex; }
  .hbnav__link{ width:100%; justify-content:space-between; }
}

@media (max-width: 520px){
  .hb__bannerText{ display:none; }
  .hb__auth .btn2{ padding: 0 10px; }
}
