/* ============================================
   TechSnack — shared theme (light/dark)
   Include on every page:
   <link rel="stylesheet" href="/theme.css">
   ============================================ */

:root {
  /* brand — same in both modes */
  --lime: #b2e02b;
  --lime-bright: #b8e533;
  --lime-deep: #82bd3a;

  /* surfaces / text — light (default) */
  --ink: #1c1d1f;
  --ink-soft: #2a2b2d;
  --text-muted: #5a5d61;
  --faq-title-color: #34373a;
  --surface: #ffffff;
  --pill-gray: #e7e7e7;
  --pill-gray-hover: #dcdcdc;
  --border: #eeeeee;
  --header-blur-bg: rgba(237,239,241,0.82);

  --body-bg:
    radial-gradient(46% 40% at 14% 52%, rgba(176,224,120,0.55), rgba(176,224,120,0) 72%),
    radial-gradient(42% 38% at 40% 66%, rgba(150,224,205,0.45), rgba(150,224,205,0) 70%),
    radial-gradient(40% 34% at 70% 78%, rgba(196,232,150,0.40), rgba(196,232,150,0) 72%),
    linear-gradient(180deg, #eceef0 0%, #eef0f1 45%, #eaeef0 100%);
}

[data-theme="dark"] {
  --ink: #f1f3ee;
  --ink-soft: #d8dad5;
  --text-muted: #a8aca5;
  --faq-title-color: #f1f3ee;
  --surface: #1c1e1c;
  --pill-gray: #2f3230;
  --pill-gray-hover: #3a3d3b;
  --border: rgba(255,255,255,0.08);
  --header-blur-bg: rgba(18,20,18,0.82);

  --body-bg:
    radial-gradient(46% 40% at 14% 52%, rgba(90,130,40,0.28), rgba(90,130,40,0) 72%),
    radial-gradient(42% 38% at 40% 66%, rgba(40,90,80,0.28), rgba(40,90,80,0) 70%),
    radial-gradient(40% 34% at 70% 78%, rgba(60,100,50,0.22), rgba(60,100,50,0) 72%),
    linear-gradient(180deg, #0e0f0e 0%, #101210 45%, #0d0f0d 100%);
}

/* ===== Toggle button ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--pill-gray);
  color: var(--ink);
  transition: background .18s ease, transform .18s ease;
}
.theme-toggle:hover { background: var(--pill-gray-hover); }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
