/* ============================================================
   picks.css — styles local to the /picks (Pro Picks) page
   ============================================================ */

/* Sport tabs / stats sit in .container so they match nav + header width */
.sport-tabs {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ── PRO / FREE gate filters — same pill colors as card badges ── */
.gate-filters {
  width: 100%;
  max-width: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
  box-sizing: border-box;
}
.gate-filters-left,
.date-filters {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.date-filters {
  margin-left: auto;
}
.picks-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0.5rem 0 0;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gate-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--filter-border);
  color: var(--filter-text);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.gate-filter--free {
  color: #42BDA6;
  border-color: rgba(66, 189, 166, 0.45);
}
.gate-filter--pro {
  color: #a78bfa;
  border-color: rgba(109, 79, 181, 0.55);
}
.gate-filter--free:hover,
.gate-filter--free.active {
  background: rgba(66, 189, 166, 0.12);
  border-color: rgba(66, 189, 166, 0.55);
  color: #7ee8d4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.gate-filter--pro:hover,
.gate-filter--pro.active {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.55);
  color: #c4b5fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.gate-filter.active {
  font-weight: 600;
}
.date-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--filter-border);
  color: var(--filter-text);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.date-filter:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.date-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #08090b;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Admin signal badge tooltip — mirrors performance.css kpi-info pattern */
.admin-signal-badge { position: relative; cursor: help; }
.admin-signal-badge::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + .45rem);
  left: 0;
  transform: none;
  background: #1a1a1a;
  color: #e0e0e0;
  padding: .55rem .75rem;
  border-radius: 4px;
  font-size: .72rem;
  line-height: 1.5;
  white-space: pre-line;
  width: 280px;
  max-width: 90vw;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 100;
  border: 1px solid #333;
  text-align: left;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.admin-signal-badge:hover::after { opacity: 1; }

.pick-masked { filter: blur(5px); user-select: none; }
.pick-card--locked { position: relative; }
.pick-card--locked:hover .pick-masked { filter: blur(4px); }
.pick-card--locked .pc2-header,
.pick-card--locked .pc2-pick-block,
.pick-card--locked .rp-conv,
.pick-card--locked .gate-pro,
.pick-card--locked .gate-free {
  opacity: 0.48;
}
.pick-card--locked .pc2-units-pill {
  color: var(--muted, #94A3B8);
  background: rgba(148,163,184,.08);
  border-color: rgba(148,163,184,.22);
}

.pick-cart-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 1rem 0.85rem;
  width: auto;
  align-self: flex-start;
  border: 1px solid #42BDA6;
  border-radius: 8px;
  background: rgba(66, 189, 166, 0.2);
  color: #7ee8d4;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(66, 189, 166, 0.12);
}
.pick-cart-add:hover {
  background: rgba(66, 189, 166, 0.32);
  color: #fff;
}
.pick-cart-add.is-in-cart {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}
.pick-cart-add.is-started,
.pick-cart-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--muted, #94A3B8);
}
.pick-cart-add.is-started:hover,
.pick-cart-add:disabled:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted, #94A3B8);
}

.pick-cart-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
}
.pick-cart-bar.is-open { display: flex; }
.pick-cart-bar #pickCartSummary {
  font-size: 0.9rem;
  font-weight: 700;
}

/* ── Admin signal badge variants (action-flag and sharp) ─ */
.admin-signal-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: none;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1.3;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Action flag variants */
.admin-signal-badge[data-flag="upgrade"] {
  color: #5DCAA5;
  background: #04342C;
}
.admin-signal-badge[data-flag="new_sleeper"] {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
}
.admin-signal-badge[data-flag="downgrade"] {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
}
.admin-signal-badge[data-flag="reject"] {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
}
.admin-signal-badge[data-flag="hold"] {
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.12);
}

/* Sharp signal pill */
.admin-signal-badge.admin-signal-badge--sharp {
  color: #AFA9EC;
  background: #26215C;
}

/* Wrapper for admin signal badges row */
.admin-signal-badges-row {
  margin-top: -0.25rem;
  margin-bottom: 0.35rem;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  padding-left: 1.25rem;
}
.pick-card .admin-signal-badges-row {
  padding-left: 1rem;
  margin-top: -0.45rem;
  margin-bottom: 0.15rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   Pick Card v2 — redesigned layout for /picks page
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Header: sport badge + game time ── */
.pc2-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem 0.5rem;
}

/* Sport badge — color-coded by family */
.pc2-sport-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1.5px solid;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Sport-family colors: see style.css --sport-* tokens */

.pc2-game-time {
  font-size: 0.75rem;
  color: #888780;
  font-weight: 500;
}

/* ── Pick block: matchup (muted) + pick name (dominant) ── */
.pc2-pick-block {
  padding: 0 1rem 0.75rem;
  flex: 1;
}
.pc2-matchup {
  font-size: 0.75rem;
  color: #888780;
  font-weight: 400;
  margin: 0 0 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}
.pc2-matchup-names {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.pc2-tournament {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.pc2-pick-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Bottom section wrapper (Fix 3: padding-bottom so conviction row breathes) ── */
.rp-body {
  border-top: 1px solid var(--border);
  padding: 0.6rem 1rem 14px;
}

/* ── Footer row (Fix 1: pure flex, no positioning, badge is natural child) ── */
.rp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}
.rp-footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Unit pill — more visual weight than the old epc-chip */
.pc2-units-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 1;
  color: #42BDA6;
  background: rgba(66,189,166,.12);
  border: 1px solid rgba(66,189,166,.3);
  border-radius: 8px;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Stacked edge%/odds badge — natural flex child (Fix 3: margin-top 4px) */
.pc2-right-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 0;
  padding: 8px 14px;
  margin-top: 4px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 72px;
}
/* Edge % — dominant, white, top */
.pc2-edge-pct {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}
/* Odds — secondary, teal, below edge% */
.pc2-odds {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: #42BDA6;
  line-height: 1;
  margin-bottom: 3px;
}
/* Combined label at bottom */
.pc2-badge-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1;
}

/* ── Conviction row — flush left, no indent (Fix 1) ── */
.rp-conv {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-left: 0;
  flex-wrap: wrap;
}
.rp-conv-label {
  font-size: 0.72rem;
  color: #c4c3bc;
  font-weight: 600;
}
.rp-conv-tier {
  font-size: 11px;
  font-weight: 600;
  color: #42BDA6;
  background: #0a2a20;
  border: 0.5px solid #1a4a35;
  border-radius: 4px;
  padding: 1px 7px;
  line-height: 1.4;
}
.rp-conv-type {
  font-size: 0.78rem;
  color: #e8e6dc;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── Cart review page (/cart) ── */
.cart-page {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.cart-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.cart-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.cart-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 0.9rem;
}
.cart-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.cart-sport {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.4rem;
}
.cart-game {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.cart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}
.cart-item--removed {
  opacity: 0.72;
}
.cart-meta--removed {
  color: var(--amber, #d4a017);
}
.cart-price--zero {
  color: var(--muted);
  text-decoration: line-through;
}
.cart-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.cart-remove:hover { color: var(--red); }
.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.cart-total {
  font-size: 1rem;
  font-weight: 700;
}
.cart-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.cart-actions form { margin: 0; }
.cart-empty {
  padding: 2rem 0;
  color: var(--muted);
}
.cart-empty .btn { margin-top: 1rem; }
