/* EnglishHub - un singur fisier de stil pentru tot site-ul.
   Regula: zero <style> in paginile generate. Daca ceva trebuie schimbat vizual,
   se schimba aici si se vede peste tot. */

:root {
  --bg: #0a0a12;
  --bg-soft: #12121f;
  --bg-card: #16162a;
  --line: #262640;
  --text: #f1f5f9;
  --text-2: #a8b3c4;
  --text-3: #6b7688;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --ok: #10b981;
  --warn: #f59e0b;
  --radius: 14px;
  --maxw: 980px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(59,130,246,.10) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(139,92,246,.10) 0%, transparent 45%);
}

a { color: var(--accent-3); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; top: -48px; left: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .45rem .9rem;
  border-radius: 0 0 6px 0; font-size: .85rem; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 1.4rem 1.25rem .9rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text); font-weight: 700; letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: .78rem; font-weight: 800; color: #fff;
}
.crumbs { color: var(--text-3); font-size: .86rem; }
.crumbs i { font-style: normal; opacity: .5; margin: 0 .15rem; }
.crumbs a { color: var(--text-2); }

/* ---------------------------------------------------------------- layout */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.15;
  background: linear-gradient(135deg, #fff 15%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
h2 {
  font-size: 1.12rem; font-weight: 700; letter-spacing: .01em;
  text-transform: uppercase; color: var(--text-2);
  margin-bottom: .85rem;
}

.hero { padding: 2.5rem 0 1.5rem; }
.tagline { color: var(--accent-3); font-weight: 600; margin-top: .5rem; }
.lede { color: var(--text-2); max-width: 62ch; margin-top: 1rem; }
.note { color: var(--text-3); font-size: .9rem; max-width: 72ch; margin-bottom: .9rem; }
.empty { color: var(--text-2); }

.block { margin-top: 2.6rem; }

/* ---------------------------------------------------------------- home */

.cycles { display: grid; gap: 1.1rem; margin-top: 2rem; }
@media (min-width: 760px) { .cycles { grid-template-columns: repeat(3, 1fr); } }

.cycle {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.2rem;
}
.cycle h2 {
  text-transform: none; font-size: 1.25rem; color: var(--text);
  margin-bottom: .15rem;
}
.cycle-range { color: var(--accent-3); font-size: .85rem; font-weight: 600; }
.cycle-desc { color: var(--text-2); font-size: .92rem; margin: .7rem 0 1rem; }
.cycle-state { color: var(--text-3); font-size: .8rem; margin-top: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-block; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(59,130,246,.12); color: #cfe0ff; font-size: .82rem; font-weight: 500;
}
.chip:hover { background: rgba(59,130,246,.25); text-decoration: none; color: #fff; }

.levels { margin-top: 3.2rem; }

/* ---------------------------------------------------------------- pagina clasei */

.pagehead { padding: 1.6rem 0 .5rem; }
.eyebrow {
  color: var(--accent-2); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem;
}
.facts { display: grid; gap: .9rem; margin: 1.5rem 0 1.2rem; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { background: var(--bg-soft); border-radius: 10px; padding: .8rem 1rem; }
.facts span {
  display: block; color: var(--text-3); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .2rem;
}
.source { color: var(--text-2); font-size: .9rem; }

.bullets { list-style: none; display: grid; gap: .5rem; }
.bullets li {
  padding-left: 1.1rem; position: relative; color: var(--text-2);
}
.bullets li::before {
  content: ''; position: absolute; left: 0; top: .72em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.bullets.numbered { counter-reset: b; }
.bullets.numbered li { padding-left: 1.7rem; }
.bullets.numbered li::before {
  counter-increment: b; content: counter(b) '.'; background: none;
  top: 0; color: var(--accent); font-weight: 700; font-size: .9rem; width: auto; height: auto;
}

table.grid { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.grid th {
  text-align: left; color: var(--text-3); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em; padding: .5rem .7rem;
}
table.grid td { padding: .55rem .7rem; color: var(--text-2); vertical-align: top; }
table.grid tbody tr + tr td { border-top: 1px solid var(--line); }
table.grid td.code {
  color: var(--accent-3); font-weight: 700; white-space: nowrap; width: 3.4rem;
}

/* ---------------------------------------------------------------- unitati */

.units { list-style: none; display: grid; gap: .5rem; }
.unit {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--bg-card); border-radius: 12px; padding: .3rem .9rem .3rem .3rem;
}
.unit-link {
  display: flex; align-items: center; gap: .9rem; flex: 1;
  padding: .7rem .5rem; color: var(--text);
}
.unit-link:hover { text-decoration: none; }
.unit:hover { background: #1b1b33; }
.unit-no {
  display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 9px; background: rgba(139,92,246,.18); color: #c4b5fd;
  font-size: .8rem; font-weight: 800;
}
.unit-body { display: grid; }
.unit-desc { color: var(--text-3); font-size: .85rem; }
.unit-cs { display: flex; gap: .3rem; flex-wrap: wrap; }
.unit-cs b {
  font-size: .72rem; font-weight: 700; color: var(--accent-3);
  background: rgba(6,182,212,.12); border-radius: 5px; padding: .1rem .35rem;
}

.pager {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; font-size: .9rem;
}
.pager .nav-next { margin-left: auto; }

/* ---------------------------------------------------------------- footer */

.sitefoot {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem 3rem;
  color: var(--text-3); font-size: .82rem;
}

/* --------------------------------------------------- stare unități + start rapid */

.unit-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.unit-lessons {
  font-size: .7rem; font-weight: 700; color: #a7f3d0;
  background: rgba(16, 185, 129, .14); border-radius: 5px; padding: .12rem .4rem;
  white-space: nowrap;
}
.unit-soon {
  font-size: .7rem; font-weight: 600; color: var(--text-3);
  background: rgba(148, 163, 184, .10); border-radius: 5px; padding: .12rem .4rem;
  white-space: nowrap;
}

.startgrid { display: grid; gap: .6rem; }
@media (min-width: 720px) { .startgrid { grid-template-columns: repeat(2, 1fr); } }
.startcard {
  display: grid; gap: .2rem; background: var(--bg-card); border-radius: 12px;
  padding: .9rem 1rem; color: var(--text);
}
.startcard:hover { background: #1b1b33; text-decoration: none; }
.startcard-cls {
  color: var(--accent-2); font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
}
.startcard strong { font-size: 1.02rem; }
.startcard-goal { color: var(--text-3); font-size: .85rem; }
