/* feed.css — home feed styles (index.html). Self-contained so it can't disturb
   the bill page's styles.css. Honors the locked palette: gauge teal→purple,
   never red/blue (CLAUDE.md §5.3). */

:root {
  --teal: #1D9E75;
  --mid-purple: #7F77DD;
  --deep-purple: #534AB7;

  --bg: #f4f4f8;
  --surface: #ffffff;
  --ink: #1a1c22;
  --ink-soft: #5a5e6b;
  --line: #e6e7ec;
  --track: #ecedf1;
  --chip-bg: #eeeef4;
  --shadow: 0 1px 2px rgba(28, 26, 51, 0.05), 0 6px 18px rgba(28, 26, 51, 0.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131419; --surface: #1d1f27; --ink: #eceef3; --ink-soft: #9aa0ad;
    --line: #2b2e39; --track: #2b2e39; --chip-bg: #262935;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 22px rgba(0,0,0,0.28);
  }
}
:root[data-theme="light"] {
  --bg: #f4f4f8; --surface: #ffffff; --ink: #1a1c22; --ink-soft: #5a5e6b;
  --line: #e6e7ec; --track: #ecedf1; --chip-bg: #eeeef4;
  --shadow: 0 1px 2px rgba(28,26,51,0.05), 0 6px 18px rgba(28,26,51,0.04);
}
:root[data-theme="dark"] {
  --bg: #131419; --surface: #1d1f27; --ink: #eceef3; --ink-soft: #9aa0ad;
  --line: #2b2e39; --track: #2b2e39; --chip-bg: #262935;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 22px rgba(0,0,0,0.28);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; }

/* Seeded-data note (honest until the Congress.gov sync lands in Slice 2). */
.preview-note {
  font-size: 11.5px; color: var(--ink-soft); background: var(--chip-bg);
  padding: 8px 16px; text-align: center; border-bottom: 1px solid var(--line);
}
.preview-note strong { color: var(--ink); font-weight: 700; }

/* Sticky header — no white panel; blends with the page ground (cards stay white) */
header.bar {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
}
.wordmark { display: flex; align-items: center; justify-content: center; padding: 16px 16px 10px; }
.feed-logo { height: 132px; width: auto; }
.wordmark .fallback b { font-size: 19px; font-weight: 800; }
.wordmark .fallback span { font-size: 12px; color: var(--ink-soft); margin-left: 6px; }

/* Filter chips */
.filter { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: var(--chip-bg); color: var(--ink);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--line); }
.chip[aria-pressed="true"] { background: var(--deep-purple); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--mid-purple); outline-offset: 2px; }

/* Feed */
.feed { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 40px; }
.feed-empty { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 40px 0; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(28,26,51,0.10); }
.card:focus-visible { outline: 2px solid var(--mid-purple); outline-offset: 2px; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  color: #fff; padding: 4px 10px; border-radius: 999px; background: var(--deep-purple);
}
.heat-word { font-size: 11px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.02em; }

.gauge-track { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.gauge-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--mid-purple), var(--deep-purple));
  background-size: 448px 100%;
}
.gauge-stages { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--ink-soft); margin-top: 5px; }

.status {
  display: inline-block; margin: 12px 0 8px; font-size: 12px; font-weight: 600;
  color: var(--deep-purple); background: color-mix(in srgb, var(--deep-purple) 12%, transparent);
  padding: 3px 10px; border-radius: 999px;
}
.title { font-size: 17px; line-height: 1.32; font-weight: 700; margin: 2px 0 8px; text-wrap: balance; }
.summary {
  font-size: 13.5px; color: var(--ink-soft); margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.votes { display: flex; gap: 10px; }
.vote {
  flex: 1; padding: 11px; border: none; border-radius: 10px;
  font-size: 14px; font-weight: 800; cursor: pointer; color: #fff;
  transition: filter .15s, transform .05s;
}
.vote:active { transform: scale(.98); }
.vote.support { background: var(--teal); }
.vote.oppose { background: var(--deep-purple); }
.vote:focus-visible { outline: 2px solid var(--mid-purple); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
