/* ===================================================================
 * theme_dark.css — Kipp palette override layer (Phase 1, reversible).
 * Loaded AFTER base.css. Retokens the whole app to:
 *   bg #090D14 · panel #111927 · steel #415A77 (chrome) / #8DA3C0 (meta)
 *   copper #C07A4A (values, CTAs) · bone #E0E1DD (text)
 *   verdigris #4BA48C (micro-accents: live/up/confirmed ONLY)
 * Also: kills the gradient atmosphere, flattens CTA gradients (they are
 * built from the accent tokens, so retokening collapses them), compact
 * mobile cards, and nav tab symbols.
 * Remove the single <link> in base.html to revert everything.
 * =================================================================== */
:root {
  /* surfaces */
  --bg-page:    #090D14;
  --bg-overlay: rgba(9, 13, 20, 0.96);
  --bg-panel:   #111927;
  --bg-panel-2: #16202F;
  --bg-input:   #0C121D;
  --bg-chip:    #1A2536;
  --bg-banner:  #111927;
  /* strokes */
  --stroke:      #1E2B40;
  --stroke-soft: #121A28;
  /* text: bone scale */
  --text:       #E0E1DD;
  --text-2:     #8DA3C0;
  --text-muted: #5F7189;
  --text-faint: #44536A;
  /* accents: copper primary; verdigris replaces green; purple/teal fold
     into the copper/steel families so existing gradients flatten */
  --accent:             #C07A4A;
  --accent-bright:      #D28D5C;
  --accent-soft:        #3A2415;
  --accent-warn:        #D2A45C;
  --accent-good:        #4BA48C;   /* verdigris: the oxidized-copper accent */
  --accent-ok:          #4BA48C;
  --accent-bad:         #C96A57;   /* muted terracotta, stays in palette */
  --accent-action:      #B06A3C;
  --accent-gold:        #D28D5C;   /* value copper */
  --accent-teal:        #4BA48C;
  --accent-teal-2:      #5FB89E;
  --accent-purple:      #C07A4A;   /* collapses purple->orange gradients flat */
  --accent-purple-deep: #A5653A;
  /* glows: atmosphere off */
  --glow-accent: rgba(0,0,0,0);
  --glow-gold:   rgba(0,0,0,0);
  --glow-teal:   rgba(0,0,0,0);
  --glow-purple: rgba(0,0,0,0);
}

/* kill the radial-gradient atmosphere + grid overlay on the page body */
body { background: var(--bg-page) !important; }
body::before, body::after { display: none !important; }

/* nav tab symbols (his reference had icons on tabs). Pure CSS, no markup. */
.bbnav-link::before {
  font-size: 11px; margin-right: 6px; opacity: .75; font-weight: 400;
}
a.bbnav-link[href="/"]::before              { content: "⇄"; }
a.bbnav-link[href="/rankings"]::before      { content: "▤"; }
a.bbnav-link[href="/market-pulse"]::before  { content: "◉"; }
a.bbnav-link[href="/player-value"]::before  { content: "◈"; }
a.bbnav-link[href="/player-stats"]::before  { content: "▦"; }
a.bbnav-link[href="/trade-finder"]::before  { content: "◎"; }
a.bbnav-link[href="/league-view"]::before   { content: "◆"; }
a.bbnav-link[href="/dashboard"]::before     { content: "✦"; }
a.bbnav-link[href="/waiver"]::before        { content: "＋"; }
a.bbnav-link[href="/mock-draft"]::before    { content: "▽"; }
a.bbnav-link[href="/trade-timeline"]::before{ content: "↺"; }
a.bbnav-link[href="/leaderboard"]::before   { content: "♛"; }

/* compact mobile cards (the 334px -> 171px chip layout) */
@media (max-width: 640px) {
  .bbdt-scroll { overflow-x: visible; }
  .bbdt-table { font-size: 13px; }
  .bbdt-table thead { display: none; }
  .bbdt-table, .bbdt-table tbody { display: block; width: 100%; }
  .bbdt-table tbody tr {
    display: flex; flex-wrap: wrap; align-items: baseline;
    column-gap: 12px; row-gap: 2px;
    background: var(--bg-panel);
    border: 1px solid var(--stroke-soft);
    border-radius: 12px;
    padding: 9px 12px 10px; margin-bottom: 8px;
  }
  .bbdt-table tbody td {
    display: flex; flex-direction: column; gap: 0;
    border: 0; padding: 2px 0; text-align: left;
    white-space: nowrap; font-size: 12.5px;
  }
  .bbdt-table tbody td::before {
    content: attr(data-label);
    font-size: 9.5px; line-height: 1.3; text-transform: uppercase;
    letter-spacing: 0.07em; font-weight: 700; color: var(--text-faint);
  }
  .bbdt-table tbody td:not([data-label])::before { content: none; }
  .bbdt-table tbody td.rk-player,
  .bbdt-table tbody td.bbdt-primary {
    order: -1; flex: 1 1 100%; flex-direction: row; align-items: baseline;
    gap: 8px; font-size: 15px; white-space: normal;
    border-bottom: 1px solid var(--stroke-soft);
    padding-bottom: 5px; margin-bottom: 3px;
  }
  .bbdt-table tbody td.rk-player::before,
  .bbdt-table tbody td.bbdt-primary::before { content: none; }
  .bbdt-table tbody td .conf-wrap { max-width: 96px; }
  .bbdt-toolbar { gap: 8px; }
  .bbdt-search { max-width: none; min-width: 0; flex: 1 1 100%; }
  .bbdt-count { margin-left: 0; }
}
