/* dailydraftguides.com — shared design tokens
 * Defined once here, consumed by every tool via var(--token).
 * See STYLE_GUIDE.md for the design system spec.
 */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root,
[data-theme="dark"] {
  /* Core dark theme — charcoal base */
  --bg:           #0e0e0e;
  --surface:      #161616;
  --input-bg:     #1e1e1e;
  --border:       #2a2a2a;

  /* Accent (purple) */
  --accent:       #8b5cf6;
  --accent-light: #a78bfa;
  --accent-soft:  #7c3aed;
  --purple-light: #c084fc;

  /* Text */
  --text:         #f0f0f0;
  --text-dim:     #9e9e9e;

  /* Status */
  --success:      #34d399;
  --warn:         #f87171;
  --away:         #ff4744;
  --away-alt:     #ff5e5b;

  /* Sport accents */
  --blue:         #4a90d9;
  --green:        #50c878;
  --gold:         #d4a843;
  --red:          #e74c3c;

  /* Typography */
  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg:           #f5f5f5;
  --surface:      #ffffff;
  --input-bg:     #eeeeee;
  --border:       #dedede;
  --accent:       #7c3aed;
  --accent-light: #6d28d9;
  --accent-soft:  #5b21b6;
  --purple-light: #8b5cf6;
  --text:         #111111;
  --text-dim:     #595959;
  --success:      #059669;
  --warn:         #dc2626;
  --away:         #dc2626;
  --away-alt:     #dc2626;
  --blue:         #1d6dbf;
  --green:        #16a34a;
  --gold:         #b45309;
  --red:          #c0392b;
}

/* ── Shared masthead ──────────────────────────────────────── */
.masthead {
  padding: 20px 32px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--bg);
}
.masthead-brand {
  text-decoration: none;
  display: flex;
  align-items: baseline;
}
.masthead-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text);
  text-transform: uppercase;
}
.masthead-dot { color: var(--accent); }
.masthead-tagline {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  flex: 1;
}

/* ── Theme toggle ─────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 4px 8px;
  transition: border-color .15s, color .15s;
  margin-left: auto;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--text); }

/* ── Shared nav strip ─────────────────────────────────────── */
.nav-strip {
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background: var(--bg);
}
.nav-strip::-webkit-scrollbar { display: none; }
.nav-item {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 11px 18px 10px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--text); border-bottom-color: var(--accent); }

/* ── Page header (below nav, above content) ───────────────── */
.page-hdr {
  padding: 18px 32px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg);
}
.page-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.page-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  font-family: var(--font-body);
}
.page-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .masthead { padding: 14px 16px 12px; }
  .masthead-wordmark { font-size: 18px; }
  .masthead-tagline { display: none; }
  .nav-strip { padding: 0 12px; }
  .nav-item { padding: 10px 12px 9px; font-size: 11px; }
  .page-hdr { padding: 14px 16px; }
  .page-title { font-size: 15px; }
}

/* ── HOW TO READ accordion (shared) ───────────────────────── */
.howto { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.howto > summary {
  padding: 10px 14px; cursor: pointer; font-size: 11px; font-weight: 700;
  color: var(--accent-light); letter-spacing: .5px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; user-select: none;
}
.howto > summary::-webkit-details-marker { display: none; }
.howto > summary::after {
  content: '+'; font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim); font-size: 14px; transition: transform .2s;
}
.howto[open] > summary::after { content: '−'; }
.howto > summary:hover { color: var(--text); }
.howto-body { padding: 4px 16px 14px; font-size: 11px; color: var(--text); line-height: 1.55; }
.howto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; }
.howto-col h4 {
  font-size: 9px; font-weight: 800; color: var(--accent-light);
  letter-spacing: .8px; margin: 4px 0 6px; padding-bottom: 4px;
  border-bottom: 1px solid #2d255033; text-transform: uppercase;
}
.howto-col .rule {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 10px; padding: 2px 0; line-height: 1.4;
}
.howto-col .rule .pts {
  font-family: 'JetBrains Mono', monospace; color: var(--accent-light);
  font-weight: 700; flex-shrink: 0;
}
.howto-col .rule .pts.neg { color: #f87171; }
.howto-col .rule .dim { color: var(--text-dim); font-size: 9px; }
.howto-col .rule code {
  font-family: 'JetBrains Mono', monospace; color: var(--accent-light);
  background: var(--input-bg); padding: 1px 4px; border-radius: 3px; font-size: 9px;
}
