/* ==========================================================================
   Goulburn Bowmen Club — shared design system
   Palette grounded in the club's world: bush green ranges, weathered
   timber, ochre/clay hunting ground, and the gold of a target's inner ring.
   ========================================================================== */

:root {
  --bark: #20261E;
  --bark-soft: #2A3227;
  --bark-line: #47513F;
  --pine: #33452F;
  --pine-light: #4B6144;
  --clay: #A8542E;
  --clay-light: #C97A4A;
  --gold: #D4A72C;
  --gold-deep: #B78E22;
  --parchment: #F3EEE2;
  --parchment-dim: #E8E0CE;
  --card: #FFFDF8;
  --ink: #221F1A;
  --ink-soft: #5B564B;
  --ink-faint: #8A8471;
  --line: #DAD2BC;
  --red: #B5342A;
  --blue: #2E5266;
  --green-ok: #3F7A4E;

  --font-display: 'Roboto Slab', ui-serif, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(34,31,26,0.06), 0 4px 14px rgba(34,31,26,0.05);
  --shadow-pop: 0 10px 30px rgba(20,20,15,0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea, button { font-family: var(--font-body); }
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
::selection { background: var(--gold); color: var(--bark); }

/* -------------------------------------------------------------------- */
/* App shell — a single centered "phone" column, like the rest of the   */
/* site's simple static pages, but constrained for comfortable reading. */
/* -------------------------------------------------------------------- */
.shell {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--parchment);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Top nav shared across marketing pages (index/login/register) */
.site-nav {
  background: var(--bark);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--parchment);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav .brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.site-nav .links { display: flex; gap: 4px; }
.site-nav .links a {
  color: var(--parchment-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.site-nav .links a:hover { background: rgba(255,255,255,0.08); color: var(--parchment); }
.site-nav .links a.active { color: var(--gold); }

/* -------------------------------------------------------------------- */
/* Reusable primitives                                                  */
/* -------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pill-pine { background: rgba(51,69,47,0.12); color: var(--pine); }
.pill-clay { background: rgba(168,84,46,0.12); color: var(--clay); }
.pill-gold { background: rgba(212,167,44,0.18); color: #8a6a10; }
.pill-blue { background: rgba(46,82,102,0.12); color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .01em;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--gold); color: var(--bark); }
.btn-primary:hover { opacity: .9; }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { opacity: .9; }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--parchment-dim); }
.btn-danger-text { background: none; color: var(--red); font-weight: 600; font-size: 13px; padding: 6px 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 14.5px;
}
.field textarea { resize: vertical; min-height: 70px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.empty-state {
  text-align: center;
  padding: 52px 28px;
  color: var(--ink-soft);
}
.empty-state .icon-wrap {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--parchment-dim);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.empty-state h4 { margin-bottom: 4px; }
.empty-state p { font-size: 13.5px; max-width: 230px; margin: 0 auto; }

.skeleton {
  background: linear-gradient(90deg, var(--parchment-dim) 25%, #f2ecdd 37%, var(--parchment-dim) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bark);
  color: var(--parchment);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 80;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
