/* =========================================================================
   PLAYZEK.RO - Header: o singura bara subtire (.pzh-*)
   Logo in stanga, meniul, apoi Premium + notificari + cont in dreapta.
   ========================================================================= */

/* headerul vechi nu se mai foloseste; meniul lateral (#app-left-sidebar) ramane.
   Regulile de ascundere NU depind de JavaScript: CSS-ul se incarca in <head>, deci partile vechi
   nu apar deloc la refresh (inainte se vedeau o clipa, pana rula scriptul de la finalul paginii). */
#header { display: none !important; }

/* pana porneste header.js, pastram locul barei (fara "saritura" a continutului) */
#main:not(:has(#pzh-nav))::before { content: ""; display: block; height: 56px; flex: none;
  background: rgba(15,15,22,.96); border-bottom: 1px solid rgba(255,255,255,.07); }

/* benzile vechi de deasupra fiecarei pagini (Counter-Strike 1.6 / Anti-Cheat / LIVE GATHERS) dau impresia
   ca e o pagina "in spate"; raman in DOM (app.js le foloseste, inclusiv butonul de coada), dar ascunse.
   Starea cozii se vede in bara de sus (.pzh-queue). */
.main-body-container > .game-stats-bar,
.main-body-container > .alert-notice-box,
.main-body-container > .gathers-ticker-block { display: none !important; }

/* la refresh: doar pagina din adresa e vizibila pana termina aplicatia rutarea (vezi scriptul pz-boot din <head>) */
html[data-pz-boot="home"] .tab-content-panel:not(#tab-home) { display: none !important; }
html[data-pz-boot="home"] #tab-home { display: block !important; animation: none !important; }
html[data-pz-boot="matches"] .tab-content-panel:not(#tab-matches) { display: none !important; }
html[data-pz-boot="matches"] #tab-matches { display: block !important; animation: none !important; }
html[data-pz-boot="tournaments"] .tab-content-panel:not(#tab-tournaments) { display: none !important; }
html[data-pz-boot="tournaments"] #tab-tournaments { display: block !important; animation: none !important; }
html[data-pz-boot="leagues"] .tab-content-panel:not(#tab-leagues) { display: none !important; }
html[data-pz-boot="leagues"] #tab-leagues { display: block !important; animation: none !important; }
html[data-pz-boot="teams"] .tab-content-panel:not(#tab-teams) { display: none !important; }
html[data-pz-boot="teams"] #tab-teams { display: block !important; animation: none !important; }
html[data-pz-boot="rankings"] .tab-content-panel:not(#tab-rankings) { display: none !important; }
html[data-pz-boot="rankings"] #tab-rankings { display: block !important; animation: none !important; }
html[data-pz-boot="forum"] .tab-content-panel:not(#tab-forum) { display: none !important; }
html[data-pz-boot="forum"] #tab-forum { display: block !important; animation: none !important; }
html[data-pz-boot="profile"] .tab-content-panel:not(#tab-profile) { display: none !important; }
html[data-pz-boot="profile"] #tab-profile { display: block !important; animation: none !important; }
html[data-pz-boot="anticheat"] .tab-content-panel:not(#tab-anticheat) { display: none !important; }
html[data-pz-boot="anticheat"] #tab-anticheat { display: block !important; animation: none !important; }
html[data-pz-boot="premium"] .tab-content-panel:not(#tab-premium) { display: none !important; }
html[data-pz-boot="premium"] #tab-premium { display: block !important; animation: none !important; }
html[data-pz-boot="faq"] .tab-content-panel:not(#tab-faq) { display: none !important; }
html[data-pz-boot="faq"] #tab-faq { display: block !important; animation: none !important; }

/* pilula "In coada 00:23 · Anuleaza" */
.pzh-queue { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(96,165,250,.5); background: rgba(96,165,250,.12); color: #bfdbfe; font-family: inherit; font-size: 12.5px; font-weight: 700; }
.pzh-queue[hidden] { display: none; }
.pzh-queue i { animation: pzh-spin 2s linear infinite; }
.pzh-queue b { color: #fff; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.2); }
.pzh-queue:hover b { color: #fca5a5; }
@keyframes pzh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pzh-queue i { animation: none; } }
#pzh-nav.is-collapsed .pzh-queue span { display: none; }

#pzh-nav {
  --line: rgba(255,255,255,.07);
  --muted: #8b8ba0;
  --brand: #FB7622;
  --grad: linear-gradient(135deg, #FB7622, #F53144);
  position: sticky; top: 0; z-index: 120;
  height: 56px; background: rgba(15,15,22,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-main, 'Roboto', system-ui, sans-serif);
}
#pzh-nav a { text-decoration: none; color: inherit; }
.pzh-wrap { height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 18px; min-width: 0; }

/* ---- logo ---- */
.pzh-logo-link { display: inline-flex; align-items: center; flex: none; margin-right: 14px; }
.pzh-logo-link img { height: 30px; width: auto; display: block; }

/* ---- meniu ---- */
.pzh-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; height: 100%; flex: 1 1 auto; min-width: 0; }
.pzh-item { position: relative; display: flex; }
.pzh-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  transition: color .15s;
}
#pzh-nav .pzh-link { color: var(--muted); }               /* cu ID, ca sa bata "#pzh-nav a { color: inherit }" */
.pzh-link > i:first-child { display: none; }              /* fara iconite in bara, ca in modelul cerut */
#pzh-nav .pzh-link:hover, #pzh-nav .pzh-item.open > .pzh-link, #pzh-nav .pzh-item.active > .pzh-link { color: #fff; }
.pzh-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .2s; }
.pzh-item.active > .pzh-link::after { transform: scaleX(1); }
.pzh-link:focus-visible { outline: 2px solid var(--brand); outline-offset: -6px; border-radius: 6px; }
.pzh-caret { font-size: 8px; opacity: .6; transition: transform .2s; }
.pzh-item.open .pzh-caret { transform: rotate(180deg); }

/* ---- dropdown ---- */
.pzh-drop { position: absolute; top: calc(100% + 4px); left: 0; min-width: 260px; padding: 6px; border-radius: 12px; display: none; flex-direction: column; gap: 2px;
  background: #171722; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 20px 50px rgba(0,0,0,.6); z-index: 130; }
.pzh-item.open > .pzh-drop { display: flex; }
.pzh-drop-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; transition: background .15s; }
.pzh-drop-item:hover, .pzh-drop-item.active { background: rgba(251,118,34,.1); }
.pzh-drop-item[hidden] { display: none; }
.pzh-drop-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; color: var(--brand); background: rgba(251,118,34,.12); }
.pzh-drop-item strong { display: block; color: #fff; font-size: 13px; }
.pzh-drop-item small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.pzh-muted { color: var(--muted); font-size: 12.5px; padding: 8px 10px; margin: 0; }

.pzh-srv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; width: 380px; max-width: calc(100vw - 48px); }
.pzh-srv a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.pzh-srv a:hover { background: rgba(255,255,255,.05); }
.pzh-dot { width: 7px; height: 7px; border-radius: 50%; background: #656578; flex: none; }
[data-state="on"] > .pzh-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
[data-state="off"] > .pzh-dot { background: #ef4444; }
.pzh-srv-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pzh-srv-name strong { color: #fff; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pzh-srv-name small { color: var(--muted); font-size: 11.5px; }
.pzh-srv-count { font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; color: #656578; }
.pzh-srv-count[data-fill="ok"] { color: #22c55e; }
.pzh-srv-count[data-fill="warm"] { color: #f59e0b; }
.pzh-srv-count[data-fill="full"] { color: #ef4444; }
.pzh-drop-all { display: flex; align-items: center; gap: 6px; padding: 9px 10px 4px; margin-top: 4px; border-top: 1px solid var(--line); color: #fff !important; font-weight: 700; font-size: 12.5px; }
.pzh-drop-all:hover { color: var(--brand) !important; }

/* ---- dreapta: Premium, Intra cu Steam, notificari, cont ---- */
.pzh-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.pzh-actions .header-right { display: flex; align-items: center; gap: 8px; }
.pzh-premium, .pzh-steam { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pzh-premium { color: #FFBC6C !important; border: 1px solid rgba(255,188,108,.55); background: rgba(255,188,108,.06); }
.pzh-premium:hover { background: rgba(255,188,108,.14); }
.pzh-steam { color: #fff !important; background: var(--grad); }
.pzh-steam:hover { filter: brightness(1.08); }
[data-pzh-account]:empty { display: none; }

/* ---- burger (doar cand meniul nu incape) ---- */
.pzh-burger { display: none; width: 38px; height: 38px; flex: none; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; }

/* nu incape cu tot: meniu compact */
#pzh-nav.is-tight .pzh-link { padding: 0 8px; font-size: 12px; letter-spacing: .2px; }
#pzh-nav.is-tight .pzh-link::after { left: 8px; right: 8px; }
#pzh-nav.is-tight .pzh-premium span,
#pzh-nav.is-tight .pzh-steam span { display: none; }
#pzh-nav.is-tight .pzh-premium,
#pzh-nav.is-tight .pzh-steam { padding: 0 10px; }
#pzh-nav.is-tight .pzh-wrap { padding: 0 12px; gap: 2px; }
#pzh-nav.is-tight .pzh-logo-link { margin-right: 6px; }
#pzh-nav.is-tight .pzh-logo-link img { height: 26px; }
#pzh-nav.is-tight .pzh-actions, #pzh-nav.is-tight .pzh-actions .header-right { gap: 6px; }
#pzh-nav.is-tight .pzh-actions .hdr-uname { display: none !important; }

/* tot nu incape: meniul se muta sub butonul ☰ */
#pzh-nav.is-collapsed .pzh-burger { display: inline-grid; place-items: center; }
#pzh-nav.is-collapsed .pzh-logo-link { margin-right: auto; }
#pzh-nav.is-collapsed .pzh-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0; height: auto; max-height: calc(100vh - 56px); overflow-y: auto;
  flex-direction: column; gap: 2px; padding: 10px 16px 16px; background: #13131c; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.6);
}
#pzh-nav.is-collapsed.menu-open .pzh-menu { display: flex; }
#pzh-nav.is-collapsed .pzh-item { flex-direction: column; }
#pzh-nav.is-collapsed .pzh-link { height: 46px; width: 100%; padding: 0 12px; border-radius: 8px; font-size: 13.5px; }
#pzh-nav.is-collapsed .pzh-link { color: #D1D1DB; }
#pzh-nav.is-collapsed .pzh-link > i:first-child { display: inline-block; width: 18px; color: var(--brand); }
#pzh-nav.is-collapsed .pzh-link::after { display: none; }
#pzh-nav.is-collapsed .pzh-item.active > .pzh-link { background: rgba(251,118,34,.12); color: #fff; }
#pzh-nav.is-collapsed .pzh-caret { margin-left: auto; }
#pzh-nav.is-collapsed .pzh-drop { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.03); min-width: 0; margin: 2px 0 6px; }
#pzh-nav.is-collapsed .pzh-srv { width: auto; }
#pzh-nav.is-collapsed .pzh-steam span { display: none; }

@media (max-width: 480px) {
  .pzh-wrap { padding: 0 12px; }
  .pzh-logo-link img { height: 24px; }
  .pzh-premium { display: none; }
}
