/* Donator — javni sajt (Cloudflare Pages). Tokeni iz docs/DIZAJN.md / src/ui/theme.ts. */
:root {
  --bg: #faf8f7;
  --surface: #ffffff;
  --surface-alt: #f1edeb;
  --text: #1f1b1a;
  --muted: #5c5452;
  --border: #e4dedb;
  --border-strong: #8a807d;
  --primary: #b3261e;
  --on-primary: #ffffff;
  --primary-container: #fbe7e4;
  --on-primary-container: #8a1c16;
  --success: #1b6b35;
  --success-container: #e2f1e6;
  --warning: #7f4d00;
  --warning-container: #fbeed8;
  --focus: #3b6fd9;
  --max: 760px;
  --r-s: 8px; --r-m: 12px; --r-l: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141211;
    --surface: #1e1b1a;
    --surface-alt: #2a2625;
    --text: #f3efed;
    --muted: #b8b0ad;
    --border: #38322f;
    --border-strong: #857b78;
    --primary: #f2726a;
    --on-primary: #2a0907;
    --primary-container: #4d1d19;
    --on-primary-container: #ffdad5;
    --success: #7dd196;
    --success-container: #163a22;
    --warning: #f0bb55;
    --warning-container: #3d2a0a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-s); }
.skip:focus { left: 8px; z-index: 10; }

header.site {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; max-width: var(--max); margin: 0 auto;
}
header.site img { width: 40px; height: 40px; border-radius: 10px; }
header.site a.brand { color: var(--text); text-decoration: none; font-weight: 600; font-size: 20px; }
header.site nav { margin-left: auto; display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: center; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 0; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--primary); }
header.site nav a[aria-current="page"] { font-weight: 600; }
.script-toggle {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer;
}
.script-toggle[hidden] { display: none; }

main { max-width: var(--max); margin: 0 auto; padding: 0 16px 48px; }
h1 { font-size: 28px; line-height: 36px; margin: 24px 0 8px; font-weight: 600; }
h1.hero { font-size: 34px; line-height: 42px; }
h2 { font-size: 20px; line-height: 28px; margin: 32px 0 8px; font-weight: 600; }
h3 { font-size: 17px; margin: 16px 0 4px; font-weight: 600; }
p.lead { font-size: 19px; line-height: 28px; color: var(--muted); margin-top: 0; }
p.meta { color: var(--muted); font-size: 14px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l);
  padding: 16px; margin: 16px 0;
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: var(--r-m); text-decoration: none;
  font-weight: 600; background: var(--primary); color: var(--on-primary); min-height: 48px; line-height: 24px;
}
.btn.secondary { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.note { border-left: 4px solid var(--primary); padding: 8px 16px; background: var(--surface); border-radius: 0 var(--r-m) var(--r-m) 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-alt); color: var(--muted); }
.pill.urgent { background: var(--primary-container); color: var(--on-primary-container); }
.pill.ok { background: var(--success-container); color: var(--success); }
.pill.wait { background: var(--warning-container); color: var(--warning); }

table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) { table { font-size: 14px; } th, td { padding: 8px 6px; } }

/* „Kako radi“: tri koraka sa maketama ekrana (CSS, bez slika; prave snimke ekrana zameniti kasnije). */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 20px 0; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step h3 { margin: 0; counter-increment: step; }
.step h3::before { content: counter(step) ". "; color: var(--primary); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.phone {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 28px;
  padding: 14px 12px 18px; aspect-ratio: 9 / 16; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.35;
  max-width: 260px; width: 100%; margin: 0 auto; overflow: hidden;
}
.phone .bar { height: 6px; width: 70px; border-radius: 3px; background: var(--border); margin: 0 auto 6px; }
.phone .title { font-weight: 600; font-size: 15px; }
.phone .row { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-m); padding: 8px 10px; }
.phone .group { font-size: 22px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.phone .muted { color: var(--muted); }
.phone .cta { margin-top: auto; background: var(--primary); color: var(--on-primary); border-radius: var(--r-m); text-align: center; padding: 10px; font-weight: 600; }
.phone .ghost { border: 1px solid var(--border-strong); border-radius: var(--r-m); text-align: center; padding: 9px; }
.phone .highlight { background: var(--primary-container); color: var(--on-primary-container); border-radius: var(--r-m); padding: 8px 10px; font-weight: 600; }
.phone .counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.phone .counters div { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-s); padding: 6px 2px; }
.phone .counters strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 4px 0; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p, details ul { margin: 0 0 14px; color: var(--text); }

footer.site {
  max-width: var(--max); margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 14px;
  border-top: 1px solid var(--border);
}
footer.site a { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95em; }
