/**
 * Signal Post Now — Shared Stylesheet
 * Included on all pages. Page-specific overrides go in each page's <style> block.
 */

/* ── Accessibility ──────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed; top: 0; left: 0;
  transform: translateY(-100%);
  background: #111; color: #fff;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  text-decoration: none; z-index: 9999;
  border-bottom-right-radius: 6px;
  transition: transform 0.1s;
}
.skip-link:focus { transform: translateY(0); }

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111111;
  line-height: 1.6;
  background: #f7f7f7;
}

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --accent:       #111111;
  --accent-hover: #333333;
  --accent-light: #f0f0f0;
  --border:       #d9d9d9;
  --text-muted:   #666666;
  --surface:      #ffffff;
  --radius:       10px;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 58px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 32px;
}
.nav-logo {
  font-size: 15px; font-weight: 600; color: var(--accent);
  letter-spacing: -0.2px; text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link {
  font-size: 14px; color: var(--text-muted); text-decoration: none;
  cursor: pointer; background: none; border: none; font-family: inherit; padding: 0;
}
.nav-link:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500; padding: 8px 18px; border-radius: 6px;
  text-decoration: none; transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* ── Typography helpers ────────────────────────────────────────────────────── */
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: block; width: 100%; padding: 13px;
  background: var(--accent); color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px; font-weight: 500;
  border: none; border-radius: 8px;
  cursor: pointer; transition: background 0.15s;
}
.btn-primary:hover    { background: var(--accent-hover); }
.btn-primary:disabled { background: #999; cursor: not-allowed; }

.btn-send {
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 500; padding: 9px 18px; border-radius: 6px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s; flex-shrink: 0; display: inline-block;
}
.btn-send:hover { background: var(--accent-hover); }

.btn-send-disabled {
  background: var(--accent-light); color: var(--text-muted);
  font-size: 13px; font-weight: 500; padding: 9px 18px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0; cursor: default; display: inline-block;
}

.stance-btns { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.btn-support { background: #15803d; }
.btn-support:hover { background: #166534; }
.btn-oppose  { background: #b91c1c; }
.btn-oppose:hover  { background: #991b1b; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.card-body { padding: 0 20px; }

/* ── Form inputs ───────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 500; color: #444; margin-bottom: 6px; }
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
input:focus, select:focus { border-color: var(--accent); }

/* ── Error / alert boxes ───────────────────────────────────────────────────── */
.error-box {
  display: none;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px; color: #b91c1c;
  margin-top: 16px;
}

/* ── Social login ──────────────────────────────────────────────────────────── */
.social-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none; border: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.btn-google { background: #fff; color: #3c4043; }
.btn-google:hover { background: #f8f8f8; }
.auth-divider {
  text-align: center; color: var(--text-muted); font-size: 13px;
  margin: 4px 0 20px;
  display: flex; align-items: center; gap: 10px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Issue category badge colors ───────────────────────────────────────────── */
.bill-issue-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em;
  border-radius: 3px; padding: 2px 7px;
  color: #374151; background: #f3f4f6;
}
.bill-issue-tag.issue-climate    { color: #065f46; background: #d1fae5; }
.bill-issue-tag.issue-economy    { color: #1e40af; background: #dbeafe; }
.bill-issue-tag.issue-education  { color: #5b21b6; background: #ede9fe; }
.bill-issue-tag.issue-healthcare { color: #991b1b; background: #fee2e2; }
.bill-issue-tag.issue-housing    { color: #92400e; background: #fef3c7; }
.bill-issue-tag.issue-immigration{ color: #0f766e; background: #ccfbf1; }
.bill-issue-tag.issue-medicaid   { color: #9d174d; background: #fce7f3; }
.bill-issue-tag.issue-technology { color: #3730a3; background: #e0e7ff; }
.bill-issue-tag.issue-defense    { color: #1e3a5f; background: #dde5f0; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
footer p   { font-size: 13px; color: var(--text-muted); }
footer a   { font-size: 13px; color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; }

/* ── Loading / error states ────────────────────────────────────────────────── */
#loading-state {
  text-align: center; padding: 80px 0;
  color: var(--text-muted); font-size: 15px;
}
#error-state {
  display: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px 32px;
  text-align: center; margin-top: 32px;
}
#error-state .icon { font-size: 32px; margin-bottom: 16px; }
#error-state h2    { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
#error-state p     { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
#error-state a     { color: var(--accent); font-weight: 500; text-decoration: none; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .nav-right { gap: 14px; }
}
