/* ΠΕΡΙΚΕΝΤΡΟ — Πύλη. Εμφάνιση Α (εγκεκριμένη 25/10/2026). */

@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/commissioner-greek-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/commissioner-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --cream: #F5F2EC;      /* φόντο, όπως η μπάρα του site */
  --paper: #FFFFFF;
  --blue: #0A66C2;       /* μπλε του site */
  --navy: #213F99;       /* σκούρο μπλε λογοτύπου (επίσημο αρχείο) */
  --brand-light: #007DC7; /* ανοιχτό μπλε λογοτύπου */
  --yellow: #FFD101;     /* κίτρινο του site */
  --ink: #1A2433;
  --muted: #5B6473;
  --line: #E4DED3;
  --line-soft: #EFEBE3;
  --field: #CFC8BB;
  --sky: #E6F0FA;
  --on-blue: #D6E6F7;
  --ok-bg: #E7F3EC; --ok: #1F6B45;
  --warn-bg: #FFF6CC; --warn: #4A3B00;
  --err: #B42318; --err-bg: #FDECEA;
  --radius: 14px;
  --font: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible { outline-color: var(--yellow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- κουμπιά & πεδία ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--field); }
.btn-done { background: var(--ok-bg); color: var(--ok); }
.btn-block { width: 100%; min-height: 54px; font-size: 17px; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; min-height: 44px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
.input { height: 50px; border: 1px solid var(--field); border-radius: 10px; padding: 0 14px; font-size: 16px; background: var(--paper); width: 100%; }
textarea.input { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.input:focus-visible { outline-offset: 1px; border-color: var(--blue); }
.input-code { font-size: 20px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.input.invalid { border: 2px solid var(--err); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.badge-new { background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-plain { background: #F0ECE4; color: #4A4F59; }

.pill { min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 15px; font-weight: 600; cursor: pointer; background: var(--paper); border: 1px solid var(--field); }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.loading { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- κοινά: λογότυπο ---------- */
.logo { display: block; width: 168px; height: auto; aspect-ratio: 1200 / 235; }

/* ---------- σελίδες σύνδεσης (κινητό πρώτα) ---------- */
.auth { min-height: 100vh; max-width: 440px; margin: 0 auto; padding: 0 24px 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-deco { position: absolute; top: -170px; right: -150px; width: 420px; height: 420px; pointer-events: none; }
.auth-top { padding-top: 26px; position: relative; }
.auth h1 { margin: 96px 0 10px; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; position: relative; }
.auth .lead { margin-bottom: 28px; font-size: 16px; color: var(--muted); max-width: 34ch; }
.auth form { display: flex; flex-direction: column; gap: 16px; }
.auth-foot { margin-top: auto; padding-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- γονιός (κινητό πρώτα) ---------- */
.parent { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); }
.p-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 10px 20px; border-bottom: 1px solid var(--line); background: var(--cream); }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.hero { background: var(--blue); color: #fff; padding: 18px 20px 26px; display: flex; flex-direction: column; align-items: center; }
.kids { display: flex; gap: 8px; align-self: stretch; flex-wrap: wrap; }
.kids .pill { background: transparent; color: #fff; border-color: #7FB2E5; }
.kids .pill[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.hero .class-line { margin-top: 24px; font-size: 15px; color: var(--on-blue); text-align: center; }
.hero h1 { margin: 4px 0 18px; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; text-align: center; }
.ring { position: relative; width: 236px; height: 236px; }
.ring svg { position: absolute; inset: 0; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-score { font-size: 66px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ring-score.small { font-size: 34px; }
.ring-unit { font-size: 14px; color: var(--on-blue); margin-top: 4px; }
.latest { margin-top: 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.latest .subj { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 17px; }
.latest .meta { font-size: 15px; color: var(--on-blue); }
.comment { margin: 18px 0 0; width: 100%; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 14px 16px; }
.comment blockquote { margin: 0; font-size: 15px; line-height: 1.5; }
.comment figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.hero-empty { margin: 28px 0 8px; text-align: center; color: var(--on-blue); max-width: 30ch; }

.p-section { padding: 24px 20px 4px; }
.p-section:last-of-type { padding-bottom: 24px; }
.p-section h2 { margin-bottom: 10px; font-size: 19px; font-weight: 700; color: var(--navy); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li + li { border-top: 1px solid var(--line-soft); }
.row-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px 13px 16px; min-height: 56px; background: none; border: 0; text-align: left; cursor: pointer; }
.row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-title { font-weight: 600; font-size: 16px; }
.row-sub { font-size: 13px; color: var(--muted); }
.row-end { display: flex; align-items: center; gap: 10px; }
.score { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-absent { font-size: 15px; font-weight: 500; color: var(--muted); }
.chev { color: #8A8F99; flex: none; }
.exam-list > li { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.exam-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.exam-comment { font-size: 15px; line-height: 1.5; }
.ann { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ann + .ann { margin-top: 10px; }
.ann h3 { font-size: 16px; font-weight: 600; }
.ann p { font-size: 15px; line-height: 1.5; white-space: pre-line; }
.empty { padding: 18px 16px; color: var(--muted); font-size: 15px; }

.tabbar { margin-top: auto; position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px 8px calc(14px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; text-decoration: none; color: var(--muted); font-size: 12px; }
.tabbar a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; text-decoration: none; }
.page-pad { padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.page-title { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; }

/* =====================================================================
   Σύνδεση: στον υπολογιστή χωρίζεται σε 2 (πάνελ ταυτότητας + φόρμα).
   ===================================================================== */
.auth-brand { display: none; }
.auth-body { display: flex; flex-direction: column; }
.auth-top .logo { width: 190px; }

/* =====================================================================
   Γονιός: κοινά (κινητό & υπολογιστής)
   ===================================================================== */
.p-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.p-topnav, .p-who, .p-foot, .desk-only { display: none; }
.p-main { display: block; }
.p-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.p-sec-head h2 { margin: 0; }
.p-sec-head .row-sub { display: none; }
.p-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 18px 20px 0; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.stat-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--sky); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.stat-num { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.stat-lbl { font-size: 12px; color: var(--muted); line-height: 1.3; }

.subj-list { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.subj-list > li + li { border-top: 1px solid var(--line-soft); }
.subj-card { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "top score chev" "meta score chev"; align-items: center; column-gap: 12px; row-gap: 3px; padding: 13px 14px 13px 16px; min-height: 60px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; }
.subj-top { grid-area: top; display: flex; align-items: center; gap: 8px; min-width: 0; }
.subj-score { grid-area: score; display: flex; align-items: baseline; gap: 2px; }
.subj-of { display: none; font-size: 14px; color: var(--muted); }
.subj-meta { grid-area: meta; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.subj-last { display: none; }
.subj-card .chev { grid-area: chev; }
.subj-card:hover .row-title { color: var(--blue); }

.ann-head { display: flex; align-items: center; gap: 8px; }
.ann-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--sky); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ann-ic.t { background: #FFF6CC; color: #6B5600; }
.ann-head b { color: var(--ink); font-weight: 600; }
.ann-grid { display: flex; flex-direction: column; gap: 10px; }
.ann-grid .ann + .ann { margin-top: 0; }
.p-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.p-page-stats { display: flex; gap: 24px; }
.acc-grid, .acc-col { display: flex; flex-direction: column; gap: 16px; }
.acc-who { flex-direction: row !important; align-items: center; }
.acc-avatar { width: 52px; height: 52px; border-radius: 26px; background: var(--sky); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
ul.plain li { display: flex; flex-direction: column; gap: 2px; }

/* =====================================================================
   ΥΠΟΛΟΓΙΣΤΗΣ (≥ 1000px)
   ===================================================================== */
@media (min-width: 1000px) {
  /* --- σύνδεση --- */
  .auth-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }
  .auth-brand { display: flex; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy) 0%, #1550B4 55%, var(--blue) 100%); color: #fff; padding: 56px 64px; align-items: center; }
  .auth-brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--yellow); }
  .auth-brand-ring { position: absolute; right: -150px; top: -110px; opacity: .55; }
  .auth-brand-in { position: relative; max-width: 520px; display: flex; flex-direction: column; gap: 26px; }
  .auth-kicker { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #CFE0F7; }
  .auth-claim { font-size: 44px; line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; }
  .auth-claim span { color: var(--yellow); }
  .auth-feats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
  .auth-feats li { display: flex; gap: 14px; align-items: flex-start; }
  .auth-feats li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--on-blue); line-height: 1.45; }
  .auth-feats b { color: #fff; font-size: 16px; }
  .feat-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .auth-roles { margin-top: 10px; font-size: 14px; color: #CFE0F7; border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; }
  .auth { max-width: none; width: 100%; padding: 40px 64px; justify-content: center; }
  .auth-deco { display: none; }
  .auth-top { position: absolute; top: 40px; left: 64px; padding: 0; }
  .auth-body { max-width: 420px; width: 100%; margin: 0 auto; }
  .auth h1 { margin-top: 0; font-size: 36px; color: var(--navy); }
  .auth-foot { position: absolute; bottom: 32px; left: 0; right: 0; }

  /* --- γονιός: πλαίσιο --- */
  .parent { max-width: none; background: var(--cream); }
  .p-header { position: sticky; top: 0; z-index: 5; padding: 0; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
  .p-header-in { max-width: 1240px; margin: 0 auto; padding: 14px 32px; justify-content: flex-start; gap: 40px; }
  .p-header .logo { width: 176px; }
  .p-topnav { display: flex; gap: 4px; }
  .p-topnav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
  .p-topnav a:hover { background: var(--cream); color: var(--ink); }
  .p-topnav a[aria-current="page"] { background: var(--sky); color: var(--navy); }
  .p-who { display: inline-flex; margin-left: auto; font-size: 14px; color: var(--muted); }
  .p-bell, .tabbar { display: none; }
  .p-main { flex: 1; }
  .p-foot { display: flex; justify-content: space-between; gap: 16px; max-width: 1240px; width: 100%; margin: 0 auto; padding: 24px 32px 32px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
  .desk-only { display: block; }

  /* --- γονιός: αρχική σε 2 στήλες --- */
  .p-home { max-width: 1240px; margin: 0 auto; padding: 32px; display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 32px; align-items: start; }
  .hero { position: sticky; top: 104px; border-radius: 22px; padding: 26px 28px 30px; box-shadow: 0 18px 40px -24px rgba(13, 65, 176, .55); background: linear-gradient(165deg, var(--blue) 0%, #0B5AB0 60%, var(--navy) 100%); }
  .hero .kids { justify-content: center; }
  .p-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
  .p-section, .p-section:last-of-type { padding: 0; }
  .p-section h2 { font-size: 21px; }
  .p-sec-head .row-sub { display: inline; }
  .p-stats { padding: 0; gap: 14px; }
  .stat { flex-direction: row; align-items: center; gap: 14px; padding: 18px 20px; }
  .stat-ic { width: 44px; height: 44px; border-radius: 12px; }
  .stat-num { font-size: 28px; }
  .stat-lbl { font-size: 13px; }

  .subj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .subj-list > li + li { border-top: 0; }
  .subj-card { height: 100%; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top chev" "score score" "meta meta"; row-gap: 8px; padding: 18px 18px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s, transform .15s; }
  .subj-card:hover { border-color: #B9D3EE; box-shadow: 0 12px 26px -18px rgba(13, 65, 176, .5); transform: translateY(-1px); }
  .subj-card .chev { align-self: start; }
  .subj-score .score { font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
  .subj-score .score-absent { font-size: 20px; }
  .subj-of { display: inline; }
  .subj-last { display: block; color: var(--ink); }
  .subj-meta { border-top: 1px solid var(--line-soft); padding-top: 10px; }

  .p-tbl { min-width: 0; }
  .p-tbl td, .p-tbl th { font-size: 14px; }
  .p-tbl .score { font-size: 18px; }
  .p-cmt { max-width: 280px; }
  .ann-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ann { padding: 18px 20px; gap: 8px; }

  /* --- γονιός: υπόλοιπες σελίδες --- */
  .p-page { max-width: 1240px; width: 100%; margin: 0 auto; padding: 28px 32px 40px; gap: 22px; }
  .page-title { font-size: 34px; }
  .p-page-stats .stat-num { font-size: 30px; color: var(--navy); }
  .p-page .exam-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: none; border: 0; gap: 14px; }
  .p-page .exam-list > li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
  .p-page .exam-list > li + li { border-top: 1px solid var(--line); }
  .p-page .exam-list .score { font-size: 30px; color: var(--navy); font-weight: 700; }
  .p-page .ann-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
  .acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .acc-col > .btn { align-self: flex-start; }
}
@media (min-width: 1000px) and (max-width: 1180px) {
  .p-home { grid-template-columns: 340px minmax(0, 1fr); gap: 24px; }
  .auth-brand { padding: 48px; }
  .auth-claim { font-size: 36px; }
}
