/* Academia Hotel Revenue — platforma membrilor. Limbajul vizual al deck-urilor si al
   site-ului (navy, auriu, Bricolage Grotesque / Public Sans), nu al aplicatiei TargetRate. */
:root {
  --navy: #0e1220; --panel: #16213e; --panel-2: #1b2748; --line: rgba(255,255,255,.09);
  --gold: #d5a94f; --gold-soft: rgba(213,169,79,.14); --txt: #eef1f8; --dim: #9aa5bf; --muted: #6b7590;
  --ok: #7eed7e; --warn: #ffd966; --bad: #ff7b7b; --cyan: #52d0e0;
  --r: 14px;
}
* { box-sizing: border-box; }
html { background: var(--navy); }
body { margin: 0; font-family: "Public Sans", system-ui, -apple-system, sans-serif; color: var(--txt); background: var(--navy); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Public Sans", sans-serif; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
.k { color: var(--gold); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.dim { color: var(--dim); } .muted { color: var(--muted); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* antet */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14,18,32,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.logo { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--txt); text-decoration: none; white-space: nowrap; }
.logo b { color: var(--gold); font-weight: 800; }
.logo span { color: var(--dim); font-weight: 400; font-size: .8rem; margin-left: 8px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--dim); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .9rem; }
.nav a[aria-current="page"] { color: var(--gold); background: var(--gold-soft); }
@media (max-width: 600px) { .logo span { display: none; } .nav a { padding: 8px 8px; font-size: .85rem; } }

main { padding: 22px 0 60px; }
.card { background: var(--panel); border-radius: var(--r); padding: 18px 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.035); }
.card + .card { margin-top: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* butoane: auriu plin = navigare principala; cyan plin = ai ceva de facut; ghost = restul */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 11px 18px; font-size: .95rem; font-weight: 650; text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--txt); font-family: inherit; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); } .btn-gold:hover { color: var(--navy); filter: brightness(1.06); }
.btn-cyan { background: var(--cyan); color: var(--navy); border-color: var(--cyan); } .btn-cyan:hover { color: var(--navy); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn-sm { padding: 7px 12px; font-size: .85rem; }

/* poarta de intrare */
.gate { max-width: 420px; margin: 8vh auto 0; }
.gate input { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--navy); color: var(--txt); font-size: 1rem; font-family: inherit; }
.gate input:focus { outline: none; border-color: var(--gold); }
.gate .row { display: flex; gap: 10px; margin-top: 12px; }
.gate .err { color: var(--bad); font-size: .9rem; min-height: 1.3em; margin-top: 8px; }
.gate .info { color: var(--ok); font-size: .9rem; min-height: 1.3em; margin-top: 8px; }
.gate .code { letter-spacing: .3em; text-align: center; font-size: 1.4rem; font-weight: 700; }

/* harta lunilor */
.months { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.month { border-radius: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: inherit; display: block; }
.month .n { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.5rem; font-weight: 700; }
.month .s { font-size: .8rem; color: var(--dim); }
.month.open { border-color: rgba(213,169,79,.5); }
.month.now { background: var(--gold-soft); border-color: var(--gold); }
.month.now .n { color: var(--gold); }
.month.locked { opacity: .55; }

/* lista de lectii */
.lesson { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.lesson:first-child { border-top: 0; }
.lesson .no { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--dim); font-weight: 700; flex: none; font-size: .85rem; }
.lesson.done .no { background: rgba(126,237,126,.15); color: var(--ok); }
.lesson.open .no { background: var(--gold-soft); color: var(--gold); }
.lesson.locked { opacity: .5; }
.lesson .t { flex: 1; min-width: 0; }
.lesson .t b { display: block; font-weight: 650; }
.lesson .t small { color: var(--dim); }
.lesson .st { font-size: .8rem; color: var(--dim); white-space: nowrap; }

/* lectia */
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); text-align: center; padding: 20px; }
.deck { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000; display: block; }
.deck-wrap { position: relative; }
.deck-full { position: absolute; right: 10px; top: 10px; }
textarea { width: 100%; min-height: 110px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--navy); color: var(--txt); font-size: 1rem; font-family: inherit; resize: vertical; }
textarea:focus { outline: none; border-color: var(--gold); }
.comment { padding: 12px 0; border-top: 1px solid var(--line); }
.comment .who { font-size: .8rem; color: var(--dim); margin-bottom: 4px; }
.comment .who b { color: var(--txt); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; background: var(--panel-2); color: var(--dim); }
.pill.ok { background: rgba(126,237,126,.15); color: var(--ok); } .pill.gold { background: var(--gold-soft); color: var(--gold); } .pill.bad { background: rgba(255,123,123,.15); color: var(--bad); }
.split { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 2fr 1fr; align-items: start; } }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--panel-2); color: var(--txt); padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); font-size: .9rem; z-index: 20; }
.hidden { display: none !important; }
