/* Codul Străzii — pagina de prezentare.
   Paleta e luată din macheta jocului: negru de asfalt, roșu de neon, auriu de coroană. */

:root {
  --bg: #0a0a0c;
  --panel: #121216;
  --panel-2: #17171c;
  --line: #24242b;
  --line-hot: #33333d;
  --fg: #e9e9ec;
  --fg-dim: #9a9aa4;
  --fg-faint: #6b6b76;
  --red: #e02424;
  --red-deep: #a81a1a;
  --gold: #f0b429;
  --blue: #3b82f6;
  --green: #3ddc84;
  --display: 'Barlow Condensed', 'Oswald', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --side-w: 236px;
  --rail-w: 300px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- schelet ---------- */
.shell { display: flex; min-height: 100vh; }

.side {
  width: var(--side-w); flex: 0 0 var(--side-w);
  background: linear-gradient(180deg, #0d0d10, #09090b);
  border-right: 1px solid var(--line);
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; align-self: flex-start; max-height: 100vh; overflow-y: auto;
}
.logo { display: block; }
/* Logo-ul e decupat din machetă, deci vine cu fundalul lui negru. „screen” lasă să treacă
   doar scrisul deschis la culoare și face fundalul să dispară peste orice fel de fond. */
.logo img, .hero-logo { width: 100%; height: auto; display: block; mix-blend-mode: screen; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 7px; text-decoration: none;
  color: var(--fg-dim); font-size: 14.5px; font-weight: 500;
  border-left: 3px solid transparent;
}
.nav a:hover { background: var(--panel); color: var(--fg); }
.nav a.on { background: linear-gradient(90deg, rgba(224,36,36,.18), transparent); color: #fff; border-left-color: var(--red); }
.nav .ic { width: 18px; text-align: center; color: var(--red); font-size: 15px; }

.pledge {
  border: 1px solid var(--line-hot); border-radius: 10px; padding: 16px 14px; text-align: center;
  background: var(--panel);
}
.pledge .crown { color: var(--gold); font-size: 22px; line-height: 1; margin-bottom: 7px; }
.pledge b { font-family: var(--display); font-size: 19px; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); display: block; }
.pledge p { margin: 8px 0 0; font-size: 13.5px; color: var(--fg-dim); line-height: 1.7; }

main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

/* ---------- bara de sus ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 22px; border-bottom: 1px solid var(--line); background: #0c0c0f;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg-dim); font-weight: 500; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.status.up { color: var(--green); }
.status.up .dot { background: var(--green); }
@media (prefers-reduced-motion: no-preference) { .status .dot { animation: beat 2s ease-in-out infinite; } }
@keyframes beat { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
.topline { font-size: 13.5px; color: var(--fg-faint); }
.topacts { margin-left: auto; display: flex; gap: 9px; }
.topacts[hidden] { display: none; }   /* altfel regula de mai sus învinge atributul hidden */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  padding: 10px 20px; border-radius: 7px; border: 1px solid var(--line-hot);
  background: var(--panel-2); color: var(--fg); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--fg-faint); }
.btn.red { background: linear-gradient(180deg, var(--red), var(--red-deep)); border-color: transparent; color: #fff; }
.btn.red:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; }
.btn.big { font-size: 18px; padding: 13px 26px; }

/* ---------- coloane ---------- */
.cols { display: flex; gap: 22px; padding: 22px; align-items: flex-start; }
.main-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.rail { width: var(--rail-w); flex: 0 0 var(--rail-w); display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  min-height: 380px; display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(10,10,12,.55), rgba(10,10,12,.92)), url('img/hero.jpg');
  background-size: cover; background-position: center 35%;
}
.hero-in { position: relative; padding: 42px 24px 38px; text-align: center; max-width: 660px; }
.hero-logo { width: min(330px, 72vw) !important; height: auto; margin: 0 auto 6px; }
.slogan {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 1.6px;
  font-size: clamp(17px, 3.1vw, 25px); color: var(--gold); margin: 0 0 16px; text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}
.lead { margin: 0 auto 22px; max-width: 54ch; color: var(--fg); font-size: 15.5px; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.cta { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.nodl { margin: 18px 0 0; font-size: 12.5px; color: var(--fg-dim); letter-spacing: .3px; }

/* ---------- blocuri ---------- */
.block { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 22px; }
h2.rule {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px;
  font-family: var(--display); font-size: clamp(21px, 3vw, 27px); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold);
}
h2.rule::after { content: ''; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--line-hot), transparent); }
.blurb { margin: 0 0 18px; color: var(--fg-dim); max-width: 70ch; }

/* ---------- drumuri ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; }
.path {
  border: 1px solid var(--line-hot); border-radius: 11px; overflow: hidden; background: var(--panel-2);
  display: flex; flex-direction: column; min-width: 0;
}
.path img { width: 100%; height: 132px; object-fit: cover; display: block; }
.path-b { padding: 16px 16px 18px; }
.path h3 {
  font-family: var(--display); font-size: 24px; text-transform: uppercase; letter-spacing: 1.2px;
  margin: 0 0 8px;
}
.path p { margin: 0 0 12px; color: var(--fg-dim); font-size: 14px; }
.path ul { margin: 0; padding-left: 17px; display: flex; flex-direction: column; gap: 6px; }
.path li { font-size: 13.5px; color: var(--fg); }
.path li::marker { color: var(--fg-faint); }
.path.blue { border-top: 3px solid var(--blue); }
.path.blue h3 { color: #7aa7ff; }
.path.gold { border-top: 3px solid var(--gold); }
.path.gold h3 { color: var(--gold); }
.path.red { border-top: 3px solid var(--red); }
.path.red h3 { color: #ff6b6b; }

/* ---------- despre ---------- */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; }
.feat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 15px 16px; min-width: 0; }
.feat b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: .6px; text-transform: uppercase; color: var(--fg); margin-bottom: 5px; }
.feat span { font-size: 13.5px; color: var(--fg-dim); }

/* ---------- drum / stadiu ---------- */
.road { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.road li {
  position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.road li:last-child { border-bottom: 0; }
.road li::before {
  content: ''; position: absolute; left: 7px; top: 18px;
  width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line-hot); background: var(--bg);
}
.road li.done::before { background: var(--green); border-color: var(--green); }
.road li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240,180,41,.16); }
.road b { font-family: var(--display); font-size: 17.5px; letter-spacing: .5px; text-transform: uppercase; }
.road li.done b { color: var(--green); }
.road li.now b { color: var(--gold); }
.road span { font-size: 13.5px; color: var(--fg-dim); }

/* ---------- întrebări ---------- */
details { border-bottom: 1px solid var(--line); }
details:last-of-type { border-bottom: 0; }
summary {
  cursor: pointer; padding: 13px 0; font-weight: 600; font-size: 15px; list-style: none;
  display: flex; align-items: center; gap: 10px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; margin-left: auto; color: var(--red); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 15px; color: var(--fg-dim); max-width: 68ch; font-size: 14.5px; }

/* ---------- bara din dreapta ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 15px 16px; }
.card h4 {
  margin: 0 0 12px; font-family: var(--display); font-size: 16px; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.live { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.card.up .live-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(61,220,132,.14); }
.live b { display: block; font-size: 15px; }
.live span { font-size: 12.5px; color: var(--fg-faint); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--fg-faint); }
.kv dd { margin: 0; text-align: right; color: var(--fg); font-weight: 500; }

.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.mini li { display: flex; align-items: center; gap: 9px; }
.mini span { margin-left: auto; color: var(--fg-faint); font-size: 12.5px; }
.sq { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }
.sq.blue { background: var(--blue); }
.sq.gold { background: var(--gold); }
.sq.red { background: var(--red); }

.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.news li { display: flex; flex-direction: column; gap: 1px; }
.news b { font-size: 13.5px; font-weight: 600; }
.news span { font-size: 12px; color: var(--fg-faint); }

.promo { text-align: center; overflow: hidden; padding: 0 0 16px; }
.promo-img {
  height: 92px; background-image: linear-gradient(180deg, rgba(10,10,12,.2), var(--panel)), url('img/banda-oras.jpg');
  background-size: cover; background-position: center; margin-bottom: 10px;
}
.promo b { font-family: var(--display); font-size: 19px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); display: block; padding: 0 14px; }
.promo p { margin: 7px 14px 0; font-size: 13px; color: var(--fg-dim); }

/* ---------- subsol ---------- */
.foot {
  margin-top: auto; border-top: 1px solid var(--line); padding: 18px 22px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--fg-faint);
}

/* ---------- telefon și tabletă ---------- */
@media (max-width: 1080px) {
  .cols { flex-direction: column; }
  .rail { width: 100%; flex: 1 1 auto; position: static; flex-direction: row; flex-wrap: wrap; }
  .rail .card { flex: 1 1 240px; }
}

@media (max-width: 820px) {
  .shell { flex-direction: column; }
  .side {
    width: 100%; flex: 1 1 auto; max-height: none; position: static;
    flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px));
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .logo { width: 150px; flex: 0 0 auto; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 4px; flex: 1 1 100%; }
  .nav a { padding: 8px 11px; font-size: 13.5px; border-left: 0; border-bottom: 2px solid transparent; }
  .nav a.on { border-left: 0; border-bottom-color: var(--red); background: var(--panel); }
  .pledge { display: none; }
  .cols { padding: 14px; gap: 16px; }
  .block { padding: 18px 15px; }
  .hero { min-height: 320px; }
  .hero-in { padding: 32px 16px; }
  .topbar { padding-inline: 16px; }
  .foot { padding-inline: 16px; }
}

@media (max-width: 420px) {
  .cta { flex-direction: column; }
  .btn.big { width: 100%; }
}
