/* ---------- stem mee: feature poll (js/poll.js) ----------
   Cards reuse .feature from style.css; this only adds the vote buttons and the
   result bar. Kept in its own file so the poll can be dropped in or out whole. */

.stemmee { background: var(--bg); }
/* the hidden attribute must win over the display rules below */
.stemmee[hidden], .poll-card [hidden] { display: none !important; }
.stemmee .stemmee-lead { margin-top: 12px; max-width: 60ch; color: var(--text-muted); font-size: 16px; }

/* Same build as the other cards (.feature: icon left, title right, text below).
   The description row takes the spare height, so the buttons line up at the
   bottom across cards of different lengths. */
.poll-card { grid-template-rows: auto 1fr; }
.poll-card > .poll-actions,
.poll-card > .poll-result { grid-column: 1 / -1; }

/* Both vote buttons always sit on one line, side by side. Sizes are tuned so the
   labels fit on one line too down to a 360px phone; on anything narrower only
   the "Hoeft niet voor mij" label wraps inside its own button. */
.poll-actions { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 8px; margin-top: 18px; }
.poll-actions .btn { font-size: 14px; padding: 6px 14px 6px 6px; gap: 7px; line-height: 1.15; text-align: left; }
.poll-actions .btn-primary { white-space: nowrap; flex: none; }
.poll-actions .btn-ghost { min-width: 0; }
.poll-actions .btn:disabled { opacity: 0.6; cursor: progress; }
.poll-actions .btn-ghost:hover { border-color: var(--accent); }

/* The little mood orb in front of each vote button. */
.poll-orb { width: 24px; height: 24px; box-shadow: none; }
.poll-orb::after { border-width: 2px; }

@media (max-width: 1079px) {
  .poll-actions { gap: 6px; }
  .poll-actions .btn { font-size: 13px; padding: 5px 12px 5px 5px; gap: 6px; }
  .poll-orb { width: 22px; height: 22px; }
}
@media (max-width: 560px) {
  .poll-card { padding: 20px; }
}

.poll-result { margin-top: 18px; }
.poll-bar {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--accent-soft);
}
.poll-bar > span {
  display: block; height: 100%; width: 0;
  background: var(--accent); border-radius: inherit;
  transition: width 0.6s ease;
}
.poll-pct { margin-top: 10px; font-size: 15px; color: var(--text); }
.poll-pct strong { font-size: 22px; color: var(--accent); margin-right: 2px; }
.poll-thanks { margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.poll-result .poll-bar[hidden] + .poll-pct[hidden] + .poll-thanks { margin-top: 0; font-size: 15px; color: var(--text); }
.poll-error { margin-top: 12px; font-size: 13px; color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .poll-bar > span { transition: none; }
}
