/* ============================================================
   Bee Sharp - pages.css
   Shared styling for all static content pages.
   Design tokens copied from about.html so everything matches.
   ============================================================ */

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

:root {
  --accent:      #b8960f;
  --accent-dark: #9a7c0a;
  --music:       #c084fc;
  --danger:      #ff6b6b;
  --bg:          #f5f5f0;
  --bg-card:     #ffffff;
  --bg-subtle:   #e0ddd5;
  --text:        #1a1a1a;
  --text-muted:  #666;
  --text-faint:  #999;
  --border:      #e0ddd5;
}

[data-theme="dark"] {
  --accent:      #f5c518;
  --accent-dark: #d4a800;
  --bg:          #0d0d0d;
  --bg-card:     #1a1a1a;
  --bg-subtle:   #222;
  --text:        #e8e8e8;
  --text-muted:  #888;
  --text-faint:  #555;
  --border:      #222;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 40px;
}

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link img  { width: 34px; height: 34px; }
.logo-link span { font-size: 1.1rem; font-weight: 700; color: var(--accent); }

.play-btn {
  background: var(--accent);
  color: #0d0d0d;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.2s;
  white-space: nowrap;
}
.play-btn:hover { background: var(--accent-dark); }

/* ── PAGE LAYOUT ────────────────────────────────────── */
.page-wrap { max-width: 680px; margin: 0 auto; padding: 32px 20px; }

/* ── HERO ───────────────────────────────────────────── */
.page-hero { text-align: center; margin-bottom: 36px; }
.page-hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
}

/* ── SECTION CARDS ──────────────────────────────────── */
.section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.section h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}
.section p, .section li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.section > p:last-child { margin-bottom: 0; }
.section ul, .section ol { padding-left: 22px; margin-bottom: 14px; }
.section li { margin-bottom: 7px; }
.section a { color: var(--accent); }
.section strong { color: var(--text); }

/* ── STAT BLOCKS ────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
@media (max-width: 420px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.stat-block {
  text-align: center;
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 16px 8px;
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}
.stat-label { font-size: 0.7rem; color: var(--text-faint); line-height: 1.4; }

/* ── MUSIC WORD TAGS ────────────────────────────────── */
.music-words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.music-tag {
  background: var(--bg-subtle);
  color: var(--music);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.music-tag.never { color: var(--text-faint); }
.music-tag .count {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.68rem;
  margin-left: 5px;
}

/* ── WORD TABLE ─────────────────────────────────────── */
.word-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.82rem; }
.word-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
.word-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.word-table td:first-child { color: var(--music); font-weight: 600; }
.word-table tr:last-child td { border-bottom: none; }

/* ── CATEGORY GRID (hub page) ───────────────────────── */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: transform 0.15s;
}
.cat-card:hover { transform: translateY(-2px); }
.cat-icon  { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.cat-title { font-size: 0.88rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.cat-desc  { font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }

/* ── CALLOUT ────────────────────────────────────────── */
.callout {
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}
.callout p { margin-bottom: 0; font-size: 0.85rem; }

/* ── SITE FOOTER ────────────────────────────────────── */
.site-footer {
  max-width: 680px;
  margin: 40px auto 0;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 18px;
}
.footer-nav a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); }
.footer-note { font-size: 0.72rem; color: var(--text-faint); line-height: 1.7; }
.footer-note a { color: var(--text-muted); }
