/* theme.css — TruthLens "nutritional green" theme
   Drop-in file. Safe to include after your existing style.css.
   Change only --brand-green to tweak the exact shade.
*/

/* ===== Design tokens ===== */
:root {
  /* <<< change this one line to your exact green if you want */
  --brand-green: #16A34A; /* juicy, readable green */
  --brand-green-700: #15803D; /* hover/darker */
  --brand-green-800: #166534; /* active/focus ring */

  /* Neutral dark theme colors (match your screenshots) */
  --bg: #0B1220;
  --card: #101826;
  --border: #1F2A3A;
  --text: #E7F1FF;
  --muted: #9FB0C8;

  /* Shared */
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0,0,0,0.25);
  --ring: 0 0 0 3px rgba(22, 163, 74, 0.35);
}

/* ===== Base ===== */
html, body {
  background: var(--bg);
  color: var(--text);
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--brand-green); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ===== Accent helpers ===== */
.accent { color: var(--brand-green) !important; }
.hr { height: 1px; background: var(--border); border: 0; }

/* ===== Cards / containers ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}

/* ===== Buttons (works with your existing markup) ===== */
button,
.btn,
.button,
#search-btn,
.share,
.share button {
  background: var(--brand-green);
  border: 1px solid var(--brand-green-700);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease;
}

button:hover,
.btn:hover,
.button:hover,
#search-btn:hover,
.share:hover,
.share button:hover {
  background: var(--brand-green-700);
  transform: translateY(-1px);
}

button:active,
.btn:active,
.button:active,
#search-btn:active,
.share:active,
.share button:active {
  background: var(--brand-green-800);
  transform: translateY(0);
}

button:focus-visible,
.btn:focus-visible,
.button:focus-visible,
#search-btn:focus-visible,
.share:focus-visible,
.share button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Outline/ghost style when needed */
.btn--ghost {
  background: transparent;
  color: var(--brand-green);
  border: 1px solid var(--brand-green-700);
}
.btn--ghost:hover { background: rgba(22,163,74,0.12); }

/* ===== Pills / chips / badges ===== */
.pill, .chip, .badge, .tag {
  display: inline-block;
  background: rgba(22,163,74,0.15);
  color: var(--brand-green);
  border: 1px solid var(--brand-green-700);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== Nav (active link turns green) ===== */
.nav a.active,
.nav a[aria-current="page"] {
  color: var(--brand-green);
  font-weight: 700;
}

/* ===== “Top stories with pictures” grid helpers ===== */
#picture-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
#picture-grid .card .thumb { border-radius: 8px; overflow: hidden; }
#headline-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
#headline-list .title { color: var(--text); }
#headline-list .title:hover { color: var(--brand-green); }
#headline-list .meta { color: var(--muted); }
.empty { color: var(--muted); }