/* CoachApp — design tokeni (SPEC §9): lime akcent, svetle zaobljene kartice na teniškem ozadju. */
:root {
  --accent:      #C6F04E;
  --accent-ink:  #1A2E05;
  --ink:         #14251C;
  --muted:       #6B7B70;
  --card:        #FFFFFF;
  --chip:        #EEF2E6;
  --surface:     #F4F6F0;
  --danger:      #C2410C;
  --danger-bg:   #FEE9DE;
  --ok:          #1F7A3D;
  --r-card: 24px;
  --r-chip: 16px;
  --r-pill: 999px;
  --shadow: 0 8px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  /* Teniško ozadje — travnat gradient (foto se doda kasneje) */
  background-image:
    linear-gradient(180deg, rgba(20,37,28,0.72) 0%, rgba(20,37,28,0.35) 30%, rgba(244,246,240,1) 62%),
    linear-gradient(135deg, #2f6d3b 0%, #245b30 40%, #1c4a28 100%);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  padding-bottom: 88px;
}

.wrap { max-width: 520px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero { padding: 28px 4px 18px; color: #fff; }
.hero h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.hero .sub { opacity: 0.9; margin-top: 4px; font-size: 14px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; opacity: 0.8; }

/* Kartice */
.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 0 0 14px;
}
.card h2 { margin: 0 0 12px; font-size: 18px; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row + .row { margin-top: 10px; }
.stack > * + * { margin-top: 10px; }
.divider { height: 1px; background: #eef0ea; margin: 12px 0; }

/* Big number (dobroimetje / cena) */
.big { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.big-eur { font-size: 26px; font-weight: 800; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--chip); color: var(--ink);
  border: 2px solid transparent;
  border-radius: var(--r-chip);
  padding: 10px 14px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; user-select: none;
}
.chip.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-ink); }
.chip.day { flex-direction: column; min-width: 52px; padding: 8px 6px; gap: 0; }
.chip.day .d { font-size: 18px; font-weight: 800; }
.chip.day .w { font-size: 11px; text-transform: uppercase; }

/* Pill gumbi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-pill);
  padding: 13px 20px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; color: var(--ink);
  background: #e9ece4;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border: 2px solid #d7dbd2; }
.btn.danger { background: var(--danger-bg); color: var(--danger); }
.btn.block { display: flex; width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn:active { transform: scale(0.98); }

/* Badge */
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; }
.badge.lime { background: var(--accent); color: var(--accent-ink); }
.badge.grey { background: var(--chip); color: var(--muted); }
.badge.debt { background: var(--danger-bg); color: var(--danger); }
.badge.ok { background: #dcf3e3; color: var(--ok); }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
input, select {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 1.5px solid #d7dbd2; border-radius: 14px; background: #fff; color: var(--ink);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
details.form { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
details.form summary { font-weight: 700; cursor: pointer; list-style: none; }
details.form summary::-webkit-details-marker { display: none; }
details.form[open] summary { margin-bottom: 8px; }

/* Participant row */
.pcheck { display: inline-flex; gap: 6px; }
.tick {
  border: 2px solid #d7dbd2; background: #fff; border-radius: 12px;
  padding: 7px 11px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.tick.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-ink); }

/* Messages */
.msg { padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.msg.success { background: #dcf3e3; color: var(--ok); }
.msg.error { background: var(--danger-bg); color: var(--danger); }
.msg.info { background: #e6eef7; color: #1e4e79; }

/* Bottom tab nav */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid #e4e7df;
  display: flex; justify-content: space-around; padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 50;
}
.tabbar a { text-decoration: none; color: var(--muted); font-size: 11px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 600; }
.tabbar a .ic { font-size: 22px; line-height: 1; }
.tabbar a.active { color: var(--ink); }

.list-item { display: block; text-decoration: none; color: inherit; }
.list-item + .list-item { border-top: 1px solid #eef0ea; padding-top: 12px; margin-top: 12px; }

.fab { position: fixed; right: 18px; bottom: 96px; z-index: 40; box-shadow: var(--shadow); }
.empty { text-align: center; color: var(--muted); padding: 18px; }
a.plain { color: inherit; text-decoration: none; }
