/* FlurrySports Draft Kit — Shared Styles */
/* draft.flurrysports.org */

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

:root {
  --navy:    #0B1829;
  --navy2:   #111E30;
  --navy3:   #162338;
  --gold:    #C9A84C;
  --gold2:   #E8C46A;
  --gold-dim:rgba(201,168,76,0.12);
  --surface: #162338;
  --surface2:#1C2B42;
  --surface3:#223050;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text1:   #F5F8FB;
  --text2:   #C3D2E0;
  --text3:   #96AABD;
  --green:   #22C55E;
  --rb:      #22C55E;
  --wr:      #3B9EFF;
  --qb:      #F97316;
  --te:      #A78BFA;
  --k:       #94A3B8;
  --dst:     #F43F5E;
  --font:    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius:  8px;
  --radius-lg: 12px;
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbars ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,.55); }

/* ── Position badges ── */
.pos-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.pos-QB  { background: rgba(249,115,22,0.14); color: var(--qb); }
.pos-RB  { background: rgba(34,197,94,0.12);  color: var(--rb); }
.pos-WR  { background: rgba(59,158,255,0.12); color: var(--wr); }
.pos-TE  { background: rgba(167,139,250,0.12);color: var(--te); }
.pos-K   { background: rgba(148,163,184,0.1); color: var(--k);  }
.pos-DST { background: rgba(244,63,94,0.1);   color: var(--dst);}

/* ── Flurry Score pills ── */
.score-hi { background: rgba(34,197,94,0.13);  color: #22C55E; }
.score-md { background: rgba(201,168,76,0.13); color: var(--gold2); }
.score-lo { background: rgba(244,63,94,0.12);  color: #F87171; }
.score-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
}

/* ── Buttons ── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(201,168,76,.25);
  transition: all 0.18s ease;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold2), var(--gold)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,.4); }
.btn-gold:active { transform: translateY(0) scale(.97); }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold2); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0) scale(.97); }

/* ── Live pill ── */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #22C55E;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
}
.live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ── Meta pill ── */
.meta-pill {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── Chip (toggle selector) ── */
.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border2);
  color: var(--text3);
  background: transparent;
  user-select: none;
  transition: all 0.15s;
}
.chip:hover { color: var(--text2); }
.chip.active { background: var(--gold-dim); color: var(--gold); border-color: rgba(201,168,76,0.35); }

/* ── Info note ── */
.info-note {
  font-size: 11px;
  color: var(--text3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.5;
}

/* ── Alert cards ── */
.alert {
  border-radius: 6px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  margin-bottom: 4px;
}
.alert:last-child { margin-bottom: 0; }
.alert-warn  { background: rgba(249,115,22,0.1);  border-color: var(--qb); }
.alert-good  { background: rgba(34,197,94,0.08);  border-color: var(--rb); }
.alert-info  { background: rgba(59,158,255,0.08); border-color: var(--wr); }
.alert-title { font-size: 11px; font-weight: 600; color: var(--text1); }
.alert-body  { font-size: 10px; color: var(--text2); margin-top: 2px; line-height: 1.4; }

/* ── Form inputs ── */
select, input[type="number"], input[type="text"] {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text1);
  font-family: var(--font);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
select { appearance: none; cursor: pointer; padding-right: 28px; }
select option { background: var(--navy2); }
select:focus, input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,168,76,0.12); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text3);
  pointer-events: none;
}

/* ── Modal ── */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--navy2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  width: 96%;
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.modal-body { overflow: auto; padding: 14px; }
