/* ── RLP Poll Public Widget ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500&display=swap');

.rlp-poll-widget {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto 32px;
  color: #f0f0f0;
}

.rlp-poll-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid #2a2a2a;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

.rlp-label {
  display: block;
  font-size: .72rem;
  color: #e63946;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rlp-question {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  color: #f0f0f0;
}

.rlp-poll-body {
  padding: 18px 26px 26px;
}

/* ── Option items (voting view) ── */
.rlp-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .2s;
  background: #1a1a1a;
  user-select: none;
}
.rlp-option-item:hover {
  border-color: #e63946;
  background: rgba(230,57,70,.05);
}
.rlp-option-item.rlp-selected {
  border-color: #e63946;
  background: rgba(230,57,70,.08);
}

.rlp-option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #2a2a2a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.rlp-option-item.rlp-selected .rlp-option-radio {
  border-color: #e63946;
  background: #e63946;
}
.rlp-option-item.rlp-selected .rlp-option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.rlp-option-label {
  font-size: .95rem;
  font-weight: 500;
  color: #f0f0f0;
}

/* Submit button */
.rlp-submit-btn {
  width: 100%;
  padding: 13px;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 6px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  transition: all .2s;
}
.rlp-submit-btn:hover:not(:disabled) { background: #c1121f; }
.rlp-submit-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Error */
.rlp-error-msg {
  color: #ff6b6b;
  font-size: .82rem;
  text-align: center;
  margin-top: 8px;
}

/* ── Result bars ── */
.rlp-result-item { margin-bottom: 16px; }

.rlp-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.rlp-result-name {
  font-size: .9rem;
  font-weight: 500;
  color: #f0f0f0;
}

.rlp-result-pct {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: #e63946;
}

.rlp-bar-track {
  height: 10px;
  background: #1e1e1e;
  border-radius: 99px;
  overflow: hidden;
}

.rlp-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #c1121f, #e63946);
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.rlp-bar-fill.winner {
  background: linear-gradient(90deg, #cc8400, #ffd60a);
}

.rlp-result-votes {
  font-size: .78rem;
  color: #888;
  margin-top: 3px;
}

/* Badge + total */
.rlp-voted-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,.1);
  border: 1px solid rgba(230,57,70,.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 16px;
  font-size: .82rem;
  color: #e63946;
  font-weight: 500;
}

.rlp-total-votes {
  font-size: .8rem;
  color: #888;
  text-align: right;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #2a2a2a;
}

.rlp-empty {
  color: #888;
  font-size: .9rem;
}

@media (max-width: 480px) {
  .rlp-poll-header { padding: 16px 18px 14px; }
  .rlp-poll-body   { padding: 14px 18px 20px; }
}
