/* =========================================================================
   PLAYZEK.RO - Pagina principala (.pzhm-*)
   ========================================================================= */

/* continutul vechi al paginii Acasa ramane in DOM (app.js il actualizeaza), dar ascuns */
#tab-home > :not(.pzhm) { display: none !important; }

.pzhm {
  --brand: #FB7622; --brand2: #F53144; --grad: linear-gradient(135deg, #FB7622, #F53144);
  --panel: var(--bg-block, #242432); --row: var(--bg-block-subtle, #1E1E2C); --line: rgba(255,255,255,.07);
  --text: #fff; --soft: #D1D1DB; --muted: #9E9EB2; --ok: #22c55e;
  display: flex; flex-direction: column; gap: 22px; color: var(--soft); font-size: 14px; padding-bottom: 32px;
}
.pzhm a { color: inherit; text-decoration: none; }
.pzhm h1, .pzhm h2, .pzhm h3 { margin: 0; color: var(--text); }
.pzhm p { margin: 0; }
.pzhm-muted { color: var(--muted); font-size: 13px; }

/* ---- butoane ---- */
.pzhm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #fff !important; font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s, border-color .15s, transform .1s; }
.pzhm-btn:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.pzhm-btn:active { transform: translateY(1px); }
.pzhm-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pzhm-btn-primary { background: var(--grad); border-color: transparent; box-shadow: 0 10px 26px rgba(245,49,68,.3); }
.pzhm-btn-primary:hover { background: var(--grad); filter: brightness(1.08); border-color: transparent; }
.pzhm-btn-ghost { border-color: rgba(251,118,34,.45); background: rgba(251,118,34,.08); }
.pzhm-btn-ghost:hover { background: rgba(251,118,34,.16); border-color: rgba(251,118,34,.7); }
.pzhm-btn-lg { height: 48px; padding: 0 22px; font-size: 14px; letter-spacing: .3px; }
.pzhm-btn.is-off { opacity: .45; cursor: not-allowed; }
.pzhm-icon-btn { width: 38px; padding: 0; flex: none; }
.pzhm-chip { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; color: var(--brand); background: rgba(251,118,34,.12); border: 1px solid rgba(251,118,34,.3); }

/* ---- hero ---- */
.pzhm-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 34px; border-radius: 18px; border: 1px solid rgba(251,118,34,.22);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(245,49,68,.22), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(251,118,34,.14), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.015) 0 2px, transparent 2px 24px),
    linear-gradient(160deg, #1d1720, #15151f); }
.pzhm-hero-text { display: flex; flex-direction: column; gap: 14px; }
.pzhm-hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-weight: 900; letter-spacing: -.5px; text-transform: uppercase; }
.pzhm-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pzhm-hero p { max-width: 520px; font-size: 15px; line-height: 1.6; color: var(--soft); }
.pzhm-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pzhm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pzhm-stat { --c: var(--brand); display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px;
  background: rgba(10,10,16,.55); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.pzhm-stat-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); font-size: 16px; }
.pzhm-stat strong { display: block; color: var(--text); font-size: 24px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pzhm-stat small { display: block; color: var(--muted); font-size: 12px; }

/* ---- pasi ---- */
.pzhm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pzhm-step { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.pzhm-step-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 900; color: #fff; background: var(--grad); }
.pzhm-step strong { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 3px; }
.pzhm-step small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* ---- sectiuni ---- */
.pzhm-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pzhm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pzhm-head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.pzhm-head h2 i { color: var(--brand); font-size: 15px; }
.pzhm-head a { font-size: 12.5px; font-weight: 700; color: var(--muted) !important; display: inline-flex; align-items: center; gap: 6px; }
.pzhm-head a:hover { color: var(--brand) !important; }
.pzhm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }

/* ---- servere ---- */
.pzhm-srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pzhm-srv { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.pzhm-srv:hover { border-color: rgba(251,118,34,.35); transform: translateY(-2px); }
.pzhm-srv-map { position: relative; height: 92px; background: linear-gradient(135deg, #3a2414, #1a1a26); }
.pzhm-srv-map img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05) brightness(.8); }
.pzhm-srv-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,20,30,.9)); }
.pzhm-srv-badge { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 3px 8px; border-radius: 6px; color: #fff; background: rgba(34,197,94,.85); }
.pzhm-srv[data-state="off"] .pzhm-srv-badge { background: rgba(239,68,68,.85); }
.pzhm-srv-mapname { position: absolute; left: 10px; bottom: 8px; z-index: 1; color: #fff; font-size: 12.5px; font-weight: 700; }
.pzhm-srv-body { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.pzhm-srv-name { color: var(--text) !important; font-size: 15px; font-weight: 800; }
.pzhm-srv-name:hover { color: var(--brand) !important; }
.pzhm-srv-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pzhm-srv-type { font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.06); }
.pzhm-srv-players { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pzhm-srv-players b { color: var(--text); font-variant-numeric: tabular-nums; }
.pzhm-srv-players b[data-fill="ok"] { color: var(--ok); }
.pzhm-srv-players b[data-fill="warm"] { color: #f59e0b; }
.pzhm-srv-players b[data-fill="full"] { color: #ef4444; }
.pzhm-bar { display: block; height: 5px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; }
.pzhm-bar > span { display: block; height: 100%; border-radius: 5px; background: var(--ok); transition: width .4s; }
.pzhm-bar[data-fill="warm"] > span { background: #f59e0b; }
.pzhm-bar[data-fill="full"] > span { background: #ef4444; }
.pzhm-srv-actions { display: flex; gap: 8px; }
.pzhm-srv-actions .pzhm-btn:first-child { flex: 1; }

/* ---- noutati ---- */
.pzhm-slider { border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.pzhm-slide { position: relative; min-height: 230px; display: flex; align-items: flex-end; }
.pzhm-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pzhm-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,22,.15), rgba(15,15,22,.95) 75%); }
.pzhm-slide-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.pzhm-slide-text h3 { font-size: 19px; }
.pzhm-slide-text p { color: var(--soft); font-size: 13.5px; line-height: 1.5; max-width: 520px; }
.pzhm-slide-text .pzhm-btn { align-self: flex-start; margin-top: 4px; }
.pzhm-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.pzhm-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.2); cursor: pointer; transition: width .2s, background .2s; }
.pzhm-dots button.active { width: 22px; background: var(--grad); }

/* ---- forum + competitii ---- */
.pzhm-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pzhm-topics a, .pzhm-comp { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.pzhm-topics a:hover, .pzhm-comp:hover { border-color: rgba(251,118,34,.35); background: var(--row); }
.pzhm-topics img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; }
.pzhm-topic-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pzhm-topic-main strong { color: var(--text); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pzhm-topic-main small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.pzhm-topic-main small i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pzhm-topic-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pzhm-comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pzhm-comp-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #EDAC26; background: rgba(237,172,38,.12); }
.pzhm-comp-side { color: var(--text); font-weight: 800; font-size: 13px; white-space: nowrap; }

.pzhm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.12); color: var(--muted); text-align: center; font-size: 13px; }
.pzhm-empty > i { font-size: 22px; color: #656578; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .pzhm-hero { grid-template-columns: minmax(0, 1fr); padding: 26px; }
  .pzhm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pzhm-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pzhm { gap: 18px; }
  .pzhm-hero { padding: 20px; border-radius: 14px; }
  .pzhm-hero p { font-size: 14px; }
  .pzhm-hero-actions .pzhm-btn { flex: 1 1 100%; }
  .pzhm-stats { grid-template-columns: 1fr 1fr; }
  .pzhm-stat { padding: 12px; }
  .pzhm-stat strong { font-size: 20px; }
  .pzhm-steps { grid-template-columns: minmax(0, 1fr); }
  .pzhm-srv-grid { grid-template-columns: minmax(0, 1fr); }
}
