/* feedback.css — Feedback page styles */

.fb-hero {
  padding: 64px 0 40px;
  text-align: center;
}
.fb-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.fb-lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Feature votes section */
.fb-votes-section {
  padding: 48px 0;
}
.fb-votes-section h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.fb-sub {
  color: var(--muted);
  margin-bottom: 28px;
}

.fb-feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.fb-card {
  border: 1px solid var(--border, rgba(0,0,0,.1));
  border-radius: 12px;
  padding: 24px;
  background: var(--card-bg, #fff);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fb-card-icon {
  font-size: 2rem;
  line-height: 1;
}
.fb-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.fb-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  margin: 0;
}

.fb-vote-btns {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.fb-vote {
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: opacity .15s;
}
.fb-vote:hover { opacity: .8; }
.fb-vote-up {
  background: rgba(34, 197, 94, .12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, .3);
}
.fb-vote-down {
  background: rgba(0,0,0,.05);
  color: var(--muted);
  border: 1px solid rgba(0,0,0,.1);
}

/* General feedback section */
.fb-general-section {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border, rgba(0,0,0,.08));
}
.fb-general-section h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.fb-general-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}
.fb-or {
  color: var(--muted);
  font-size: 0.9rem;
}
.fb-email {
  /* var(--accent) is never defined anywhere in the site's CSS, so this
     always fell through to the hardcoded #2563eb blue -- the site's only
     non-brand link color, and only ~3.43:1 against the dark-mode body bg
     (--cream: #111827), failing WCAG AA (4.5:1) for normal text. Switched
     to the same amber/gold link pattern used everywhere else on the site
     (about.css, terms.css, faq.css), which is verified AA-safe both themes. */
  color: #7a5800;
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .fb-email { color: var(--gold, #f0b429); }
}
.fb-privacy-note {
  font-size: 0.82rem;
  /* was var(--text-muted, #9ca3af) -- #9ca3af is the dark-mode shade, mistakenly
     used as the (always-applied, since --text-muted is never defined) fallback
     here; on the light cream bg it computed ~2.3:1 (WCAG fail). var(--muted) is
     the site's real, theme-aware token and matches every sibling rule below. */
  color: var(--muted);
  max-width: 480px;
}

/* URL-param thank-you banner (shown when arriving from extension with ?feature=X&vote=Y) */
.fb-thanks-banner {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--ink, #1a1a1a);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

/* Voted card highlight */
.fb-card--voted {
  border-color: rgba(34, 197, 94, .45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .2);
}
.fb-vote--voted {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .fb-card {
    background: var(--card-bg-dark, rgba(255,255,255,.04));
    border-color: rgba(255,255,255,.1);
  }
  .fb-card--voted {
    border-color: rgba(34, 197, 94, .35);
  }
  .fb-vote-up {
    background: rgba(34, 197, 94, .15);
    color: #86efac;
    border-color: rgba(34, 197, 94, .25);
  }
  .fb-vote-down {
    background: rgba(255,255,255,.06);
    color: var(--text-muted-dark, #9ca3af);
    border-color: rgba(255,255,255,.1);
  }
  .fb-thanks-banner {
    background: rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .2);
    color: #d1fae5;
  }
}
