/* TPC — The Padel Club design system */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --evergreen: #002E2C;
  --baltic:    #035E7B;
  --sage:      #A2A77F;
  --vanilla:   #E3E7AF;
  --cream:     #EFF1C5;
  --ink:       #0F1F1E;
  --ink-2:     #3A4A48;
  --ink-3:     #6B7A78;
  --line:      rgba(0, 46, 44, 0.10);
  --line-2:    rgba(0, 46, 44, 0.18);
  --paper:     #FBFBF3;
  --white:     #FFFFFF;
  --ok:    #2F7A5A;
  --warn:  #B8792A;
  --err:   #B04A3F;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', monospace;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; }
input, textarea { font-family: inherit; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  border: none; cursor: pointer; transition: transform .08s ease, background .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--evergreen); color: var(--cream); }
.btn-primary:hover { background: #003E3B; }
.btn-baltic { background: var(--baltic); color: #F7FBFB; }
.btn-baltic:hover { background: #04708F; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-outline:hover { background: var(--vanilla); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: rgba(0,46,44,0.04); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }

/* ───────── cards ───────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* ───────── inputs ───────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.input {
  width: 100%; height: 48px; padding: 0 16px;
  background: var(--white); border: 1px solid var(--line-2); border-radius: 14px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-3); }
.input:focus {
  outline: none; border-color: var(--baltic);
  box-shadow: 0 0 0 3px rgba(3, 94, 123, 0.15);
}
.input-cream { background: var(--cream); border-color: transparent; }
.input-cream:focus { background: #F5F7CC; }

/* segmented / pill selector */
.seg {
  display: inline-flex; padding: 4px;
  background: var(--cream); border-radius: 999px; gap: 2px;
}
.seg-opt {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; user-select: none; border: none; background: transparent;
  transition: all .15s ease;
}
.seg-opt.active { background: var(--evergreen); color: var(--cream); }

/* toggle */
.tog {
  position: relative; width: 44px; height: 26px; border-radius: 999px;
  background: var(--line-2); cursor: pointer; transition: background .18s ease;
  border: none; padding: 0; flex-shrink: 0;
}
.tog::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); transition: transform .18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tog.on { background: var(--baltic); }
.tog.on::after { transform: translateX(18px); }

/* ───────── typography ───────── */
.h-display {
  font-family: var(--serif);
  font-weight: 400; font-style: italic;
  letter-spacing: -0.02em; line-height: 0.95;
}
.eyebrow {
  font-size: 11px; font-weight: 500; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }

/* ───────── badges ───────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  background: var(--vanilla); color: var(--ink);
}
.badge-violet { background: #8B5FBF; color: #fff; }
.badge-sage { background: rgba(162, 167, 127, 0.35); color: var(--evergreen); }
.badge-ok { background: rgba(47, 122, 90, 0.15); color: var(--ok); }
.badge-warn { background: rgba(184, 121, 42, 0.15); color: var(--warn); }
.badge-err { background: rgba(176, 74, 63, 0.15); color: var(--err); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(0,46,44,0.18); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,46,44,0.3); background-clip: content-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* invisible scrollbar (event picker) */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
