/* Metodai Dokument — raskrsnica (hub). Ista paleta kao FilPDF, svetla i tamna tema. */

:root {
  --bg: #eef0f4;
  --surface: #ffffff;
  --surface2: #f5f6f9;
  --fg: #1b1d24;
  --dim: #6a7080;
  --line: #dfe3ea;
  --accent: #3b6ef0;
  --accent-sm: #3b6ef01f;
  --shadow: 0 1px 2px #0f172a12, 0 4px 14px #0f172a10;
  --shadow-lg: 0 10px 34px #0f172a1f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161d;
    --surface: #1c1e27;
    --surface2: #23262f;
    --fg: #d7dced;
    --dim: #858da6;
    --line: #2c3040;
    --accent: #6f95f7;
    --accent-sm: #6f95f726;
    --shadow: 0 1px 2px #0008, 0 4px 14px #0006;
    --shadow-lg: 0 12px 38px #000a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.dim { color: var(--dim); }
code {
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px; font-size: .88em;
}

/* ── Vrh ─────────────────────────────────────────────────────────────────── */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-size: 16px; color: var(--fg);
}
.brand b { font-weight: 700; }
.brand svg { color: var(--accent); }
.toplink { color: var(--dim); text-decoration: none; font-size: 14px; }
.toplink:hover { color: var(--accent); }

main { max-width: 1080px; margin: 0 auto; padding: 0 22px 60px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 54px 0 34px; max-width: 660px; }
.hero h1 {
  margin: 0 0 12px; font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.15; letter-spacing: -.7px; font-weight: 700;
}
.lead { margin: 0 0 6px; font-size: 17px; }
.sub { margin: 0; color: var(--dim); font-size: 15px; }

/* ── Kartice ─────────────────────────────────────────────────────────────── */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 20px 18px;
  text-decoration: none; box-shadow: var(--shadow);
}
.card h2 { margin: 12px 0 6px; font-size: 19px; font-weight: 650; }
.card p { margin: 0 0 14px; color: var(--dim); font-size: 14px; flex: 1; }

.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: color-mix(in srgb, var(--c) 13%, transparent);
  color: var(--c);
}

.badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--dim);
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: 20px; padding: 3px 9px;
}
.card.live .badge { color: var(--accent); background: var(--accent-sm); border-color: transparent; }

.go { font-size: 14px; font-weight: 650; color: var(--accent); }
.go.muted { color: var(--dim); font-weight: 500; }
/* ↗ nagoveštava da se otvara u novoj kartici */
.ext { font-weight: 400; opacity: .75; }

.card.live { transition: transform .12s, box-shadow .12s, border-color .12s; }
.card.live:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.card.soon { opacity: .72; }

/* ── Zašto ───────────────────────────────────────────────────────────────── */
.why { margin-top: 54px; }
.why > h2 { font-size: 20px; margin: 0 0 18px; font-weight: 650; }
.whygrid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.whygrid h3 { margin: 0 0 5px; font-size: 15px; font-weight: 650; }
.whygrid p { margin: 0; color: var(--dim); font-size: 14px; }

/* ── Dno ─────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 22px; text-align: center; font-size: 14px;
}
footer p { margin: 3px 0; }
footer a { color: var(--accent); }
