/* ── BerryTheFacts — Light mode theme + shared UI overrides ── */

/* ── Light mode variables ────────────────────────────────────── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:           #F5F5F3;
    --surface:      #FFFFFF;
    --surface2:     #EDEDE9;
    --surface3:     #E2E2DE;
    --border:       rgba(0,0,0,0.09);
    --border-light: rgba(0,0,0,0.15);
    --white:        #1A1A1A;
    --grey:         #888888;
    --grey-mid:     #666666;
    --grey-light:   #444444;
    --primary:      #0AAFB6;
    --primary-dim:  rgba(10,175,182,0.10);
    --primary-glow: rgba(10,175,182,0.20);
    --orange:       #E07B10;
    --orange-dim:   rgba(224,123,16,0.10);
    --orange-border:rgba(224,123,16,0.25);
    --red-dim:      rgba(220,38,38,0.10);
  }
}
[data-theme="light"] {
  --bg:           #F5F5F3;
  --surface:      #FFFFFF;
  --surface2:     #EDEDE9;
  --surface3:     #E2E2DE;
  --border:       rgba(0,0,0,0.09);
  --border-light: rgba(0,0,0,0.15);
  --white:        #1A1A1A;
  --grey:         #888888;
  --grey-mid:     #666666;
  --grey-light:   #444444;
  --primary:      #0AAFB6;
  --primary-dim:  rgba(10,175,182,0.10);
  --primary-glow: rgba(10,175,182,0.20);
  --orange:       #E07B10;
  --orange-dim:   rgba(224,123,16,0.10);
  --orange-border:rgba(224,123,16,0.25);
  --red-dim:      rgba(220,38,38,0.10);
}

/* ── Light mode surface overrides ───────────────────────────── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .nav { background: rgba(245,245,243,0.92); border-bottom: 1px solid rgba(0,0,0,0.08); }
  :root:not([data-theme="dark"]) .footer { background: var(--surface); border-top: 1px solid var(--border); }
}
[data-theme="light"] .nav    { background: rgba(245,245,243,0.92); border-bottom: 1px solid rgba(0,0,0,0.08); }
[data-theme="light"] .footer { background: var(--surface); border-top: 1px solid var(--border); }

/* ── Light mode hero colours ─────────────────────────────────── */
/* "They bury it." → near-black (overrides dark-mode var(--white)) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-bury { color: #0d0d0d; }
}
[data-theme="light"] .hero-bury { color: #0d0d0d; }

/* Redact bar: swap to slightly-visible dark stripe in light mode */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-bury::after { background: #111111; }
}
[data-theme="light"] .hero-bury::after { background: #111111; }

/* ── Theme toggle button ─────────────────────────────────────── */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--surface2);
  color: var(--grey-light);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-right: 4px;
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

/* ── Article share/like action bar ──────────────────────────── */
.article-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--surface2);
  color: var(--grey-light);
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font);
  line-height: 1;
}
.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}
.action-btn svg { flex-shrink: 0; transition: transform 0.15s; }
.action-like.liked {
  border-color: rgba(239,68,68,0.35);
  color: #ef4444;
  background: rgba(239,68,68,0.08);
}
.action-like.liked svg { fill: #ef4444; stroke: #ef4444; }
.action-like { transition: all 0.2s, transform 0.15s; }
