/* ==========================================================================
   Jezičak slavi rođendan — stilovi za mikrosite prijava
   Mobile-first: bazni stilovi su za mobitel, širi ekrani dolaze u media query.
   ========================================================================== */

:root {
  --purple: #5A2E86;
  --purple-dark: #3B1E59;
  --pink: #E5127B;
  --pink-soft: #FBD3E6;
  --orange: #F6A631;
  --orange-soft: #FDE7C8;
  --teal: #17BFB0;
  --teal-soft: #CFF1EE;
  --yellow: #FFC845;
  --cream: #FFF7FB;
  --ink: #2B1B3D;
  --ink-soft: #6B5A80;
  --white: #FFFFFF;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 30px -14px rgba(59, 30, 89, 0.35);
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', 'Nunito', sans-serif;
  color: var(--purple-dark);
  line-height: 1.15;
  margin: 0 0 0.4em;
}

a { color: var(--pink); }

img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Skip link (pristupačnost) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Traka pri vrhu ---------- */
.topbar {
  padding: 16px 0;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--purple-dark);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand small {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  color: var(--ink-soft);
}
.topbar .cta-small {
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--pink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  padding: 12px 0 36px;
  text-align: center;
}
.hero .confetti-row {
  font-size: 1.6rem;
  letter-spacing: 10px;
  margin-bottom: 4px;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
}
.hero p.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 auto 24px;
}
.hero .btn-primary { font-size: 1.05rem; }

/* ---------- Gumbi ---------- */
.btn-primary,
.btn-ghost {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--purple-dark);
  border: 2px solid var(--purple-dark);
}
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Sekcije ---------- */
section { padding: 20px 0; }
.section-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  text-align: center;
  margin-bottom: 6px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 28px;
}

/* ---------- Kartice aktivnosti ---------- */
.aktivnosti-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.aktivnost-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--teal);
  position: relative;
}
.aktivnost-card.pink { border-top-color: var(--pink); }
.aktivnost-card.teal { border-top-color: var(--teal); }
.aktivnost-card.purple { border-top-color: var(--purple); }

.pill {
  display: inline-block;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pill.pink { background: var(--pink-soft); color: var(--pink); }
.pill.teal { background: var(--teal-soft); color: #0d7d73; }
.pill.purple { background: #EAE0F5; color: var(--purple); }

.aktivnost-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.aktivnost-card p { color: var(--ink-soft); margin-bottom: 16px; }

.kapacitet-info {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 14px;
}
.kapacitet-info.puno { color: #C0392B; }

.aktivnost-card .btn-primary,
.aktivnost-card .btn-ghost { font-size: 0.92rem; padding: 12px 22px; }

/* ---------- Poruke statusa ---------- */
.alert {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 700;
}
.alert.ok { background: var(--teal-soft); color: #0d7d73; }
.alert.err { background: #FBE1E1; color: #B0362A; }
.alert.warn { background: var(--orange-soft); color: #92600C; }

/* ---------- Obrazac za prijavu ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border: 2px solid #E7DCF0;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
  border-color: var(--purple);
}
.field textarea { min-height: 90px; resize: vertical; }

.aktivnost-choice {
  display: grid;
  gap: 10px;
}
.aktivnost-choice label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 2px solid #E7DCF0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
}
.aktivnost-choice label span.sub {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.aktivnost-choice input { margin-top: 4px; }
.aktivnost-choice label.puna {
  opacity: 0.55;
  cursor: not-allowed;
}
.aktivnost-choice input:checked ~ * { color: inherit; }
.aktivnost-choice label:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-soft);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.checkbox-row input { margin-top: 4px; }

/* honeypot polje - skriveno od ljudi, vidljivo botovima */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ---------- Podnožje ---------- */
footer {
  padding: 40px 0 60px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
footer a { color: var(--purple); font-weight: 700; }

/* ---------- Širi ekrani ---------- */
@media (min-width: 700px) {
  body { font-size: 18px; }
  .aktivnosti-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 40px 0 56px; }
  .form-card { padding: 40px 48px; }
}

/* ---------- Admin ---------- */
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 24px 18px 60px; }
.admin-login-card {
  max-width: 380px;
  margin: 12vh auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 26px;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--purple-dark);
  border: 2px solid #E7DCF0;
}
.tabs a.active { background: var(--purple); color: #fff; border-color: var(--purple); }

.table-scroll { overflow-x: auto; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow); }
table.prijave { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
table.prijave th, table.prijave td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #F0E9F6;
  white-space: nowrap;
}
table.prijave th { background: var(--purple); color: #fff; position: sticky; top: 0; }
table.prijave tr:last-child td { border-bottom: none; }
table.prijave td.napomena-cell { white-space: normal; min-width: 200px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
