/* Stil C: kontrastno i stručno. Navy podloga, bijele kartice, pill tabovi, Lexend. */
:root {
  --navy: #262E5D;
  --cyan: #2CC3F4;
  --blue: #0095DA;      /* naglasci (crte, ikone, obrubi) */
  --blue-text: #0072B0; /* plavi tekst: ≥ 4,5:1 na bijeloj i svijetloplavoj podlozi */
  --lime: #D7E022;
  --magenta: #D51A6F;
  --green: #00A651;
  --orange: #F48320;
  --red: #EC1F25;
  --card: #FFFFFF;
  --ink: #262E5D;
  --muted: #AAB0D0;
  --tint: #E8F6FD;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: #fff;
  font-family: 'Lexend', system-ui, sans-serif;
  line-height: 1.45;
}
#app { max-width: 720px; margin: 0 auto; padding: 18px 16px 32px; }
.row { display: flex; align-items: center; justify-content: space-between; }
.logo { height: 26px; width: auto; display: block; }
.date { font-size: 12px; color: var(--muted); }
h1 { font-size: 24px; font-weight: 600; margin: 14px 0 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.tab {
  padding: 6px 12px; border-radius: 999px; border: 0; font: inherit; font-size: 13px;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
}
.tab[aria-selected="true"], .tab.active { background: var(--cyan); color: var(--navy); font-weight: 600; }
.card { border-radius: 18px; padding: 14px; margin-bottom: 12px; background: var(--card); color: var(--ink); }
.card.dark { background: rgba(255,255,255,.08); color: #fff; }
.kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--blue-text); }
.card.dark .kicker { color: var(--lime); }
.card h2 { font-size: 17px; font-weight: 600; margin: 4px 0 2px; }
.card p { font-size: 12.5px; margin: 0; }
.anim { height: 110px; border-radius: 12px; margin: 10px 0; display: flex; align-items: center; justify-content: center; font-size: 12px; background: var(--tint); color: var(--blue); }
.btn { display: inline-block; margin-top: 10px; font: inherit; font-size: 12px; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; cursor: pointer; }
@media (min-width: 768px) { #app { padding: 28px 24px 48px; } h1 { font-size: 30px; } .logo { height: 32px; } }
/* Ispis uvijek svijetao */
@media print {
  body { background: #fff; color: var(--ink); }
  .card, .card.dark { background: #fff; color: var(--ink); border: 1px solid #ccc; }
  .card.dark .kicker { color: var(--blue-text); }
  .logo { filter: brightness(0); }
  .tabs, .btn { display: none; }
}
.tab { text-decoration: none; display: inline-block; }

/* ---------- Sučelje: zajedničke komponente (kartica vježbe, gumbi, obrasci) ---------- */
:root { --soft: #D5D9EE; --line: #ECEEF5; --chip: #F1F2F8; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.card :focus-visible { outline-color: var(--blue); }
h1:focus { outline: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; margin-top: 0; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: var(--navy); color: #fff; transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cyan); color: var(--navy); font-weight: 600; }
.btn-primary:hover { background: #5AD2F7; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-danger { background: var(--red); color: #fff; }
.btn-block { display: flex; width: 100%; margin-top: 14px; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: 13px; }

/* Kartica vježbe */
.card.ex { position: relative; overflow: hidden; padding: 20px 18px 16px; border-radius: 20px; margin-bottom: 16px; box-shadow: 0 10px 30px rgba(8, 12, 40, .28); }
.card.ex::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--cyan); }
.card.ex-misao::before { background: var(--magenta); }
.ex-misao .kicker { color: var(--magenta); }
.card.ex h2 { font-size: 20px; line-height: 1.25; margin: 6px 0 14px; text-wrap: balance; }
.card.ex p { font-size: 14px; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.chip { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.card.ex .props { font-size: 13.5px; color: #4A5180; }
.props .label { font-weight: 600; color: var(--ink); margin-right: 2px; }
.steps { list-style: none; counter-reset: s; margin: 16px 0 4px; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 36px; font-size: 15px; line-height: 1.5; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--blue-text);
}
.ex-misao .steps li::before { background: #FBE8F0; color: var(--magenta); }
.why { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: #F6F7FB; }
.why h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--blue-text); }
.card.ex .why p { font-size: 14px; color: #3A4170; }
details.answer, details.more { margin-top: 10px; border: 1px solid #E1E4F0; border-radius: 12px; }
details.answer summary, details.more summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  padding: 10px 14px; font-size: 14px; font-weight: 500; cursor: pointer;
}
details summary::-webkit-details-marker { display: none; }
details.answer summary::after, details.more summary::after { content: '+'; font-size: 18px; color: var(--blue); }
details[open].answer summary::after, details[open].more summary::after { content: '–'; }
details.answer p { padding: 0 14px 12px; }
details.more > :not(summary) { margin-left: 14px; margin-right: 14px; }
.card.ex .btn-outline { margin-top: 12px; }
.ex-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.src { flex: 1 1 170px; font-size: 11.5px; line-height: 1.4; color: #5A618C; }
.src-ai { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #FFF3E5; border: 1px solid #F9D2A6; color: #9A4A00; font-weight: 500; }

/* Animacija i ilustracija */
.anim-box { position: relative; aspect-ratio: 16 / 10; margin: 0 0 14px; border-radius: 14px; overflow: hidden; background: var(--tint); }
.anim-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.anim-toggle {
  position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(38, 46, 93, .8); color: #fff; cursor: pointer;
}
.anim-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.anim-toggle .i-play, .anim-box.paused .i-pause { display: none; }
.anim-box.paused .i-play { display: block; }
.anim-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(circle at 50% 42%, #fff 0, var(--tint) 68%); color: var(--blue-text);
}
.anim-ph-fallback, .anim-box.missing video, .anim-box.missing .anim-toggle { display: none; }
.anim-box.missing .anim-ph-fallback { display: flex; }
.anim-ph-art { width: 86px; height: 86px; }
.anim-ph-ring { transform-box: fill-box; transform-origin: center; animation: ntc-spin 30s linear infinite; }
@keyframes ntc-spin { to { transform: rotate(360deg); } }
.anim-ph-label { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
/* Vježba bez animacije: niska, mirna traka s ilustracijom, da upute ostanu na prvom zaslonu. */
.anim-box.anim-static { aspect-ratio: auto; height: 96px; }
.anim-static .anim-ph { flex-direction: row; gap: 12px; background: var(--tint); }
.anim-static .anim-ph-art { width: 60px; height: 60px; }

/* ---------- Roditelj: zaslon ---------- */
.parent #app { max-width: 480px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { flex: 1; }
.topbar { min-height: 44px; }
.icon-btn { width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #fff; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 22px; height: 22px; }
.parent h1 { font-size: 26px; line-height: 1.2; text-wrap: balance; }
.lead { margin: 10px 0 0; font-size: 16px; color: var(--soft); }
.lead.small { font-size: 14px; margin-bottom: 18px; }
.hero { padding-top: 10vh; }
.hero .logo { height: 56px; }
.hero h1 { font-size: 30px; margin-top: 0; }
.hero .btn-block { margin-top: 28px; }
.dashes { display: flex; gap: 6px; margin: 36px 0 18px; }
.dashes i { width: 22px; height: 6px; border-radius: 3px; }
.link-back, .link { padding: 0; border: 0; background: none; color: var(--cyan); cursor: pointer; font-size: 14px; }
.link-back { min-height: 44px; margin-left: -2px; }
.fine { margin-top: 32px; padding-top: 12px; text-align: center; font-size: 11.5px; color: var(--muted); }

.daynav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 16px 0 6px; }
.navbtn { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.navbtn:hover { border-color: rgba(255,255,255,.5); }
.daynav .navbtn:first-child { justify-self: start; }
.daynav .navbtn:last-child { justify-self: end; }
.daynav-mid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.daynav-date { font-size: 15px; font-weight: 600; }
.daynav-date::first-letter { text-transform: uppercase; }
.daynav-date .nw { white-space: nowrap; }
.daynav-mid { min-width: 0; }
.daynav-rel { font-size: 12px; color: var(--lime); font-weight: 500; }
.daynav-rel.link { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.parent .tabs { margin: 12px 0 16px; }
.parent .tab { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.single-kid { margin: 12px 0 16px; font-size: 14px; color: var(--soft); }

.notice { margin-bottom: 16px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.notice h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--lime); }
.notice p { margin: 0; font-size: 14px; color: var(--soft); }
.notice .btn { margin-top: 14px; }

.panel { margin-bottom: 14px; padding: 18px 16px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.panel > p { margin: 0 0 12px; font-size: 14px; color: var(--soft); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--soft); }
.field input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 16px; color-scheme: dark;
}
.field input:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #FF7D9C; }
.err { display: block; margin-top: 4px; font-size: 12.5px; color: #FF9DB5; }
.err:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.section-title { margin: 26px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kid { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); }
.kid-name { font-weight: 600; }
.kid-meta { font-size: 12.5px; color: var(--muted); }
.kid-actions { display: flex; gap: 6px; }
.kid-confirm { flex-direction: column; align-items: stretch; }
.kid-confirm p { margin: 0 0 4px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.navbtn:disabled { opacity: .35; cursor: default; border-color: rgba(255,255,255,.18); }
