/* Sondages de sorties (/fr/sondages-sorties-jeux-de-societe/) : carte de vote,
   visuel en attente et contenus « à venir ». Complète game-page.css. */

.poll-card {
  align-self: center;
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 0 40px var(--primary-glow);
}

.poll-badge,
.poll-soon-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.poll-badge {
  color: #FFFFFF;
  background: var(--primary);
}

.poll-question {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.35;
  color: #FFFFFF;
}

.poll-btn {
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  background: var(--primary);
  border: 0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
}

.poll-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.poll-btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.poll-btn-done,
.poll-card.is-voted .poll-btn-label {
  display: none;
}

.poll-card.is-voted .poll-btn-done {
  display: inline;
}

.poll-card.is-voted .poll-btn {
  background: var(--accent-green);
}

.poll-count {
  font-weight: 600;
  color: var(--accent-gold);
  min-height: 1.5em;
}

.poll-note,
.poll-card-meta {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.poll-card-count {
  font-weight: 600;
  color: var(--accent-gold);
  font-size: 14px;
}

.poll-cover-soon {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-focus);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.poll-cover-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
}

.poll-cover-sub {
  color: var(--text-muted);
  font-size: 14px;
}

.poll-soon {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.92;
}

.poll-soon-tag {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
}

.game-link-card[data-poll-card] {
  position: relative;
}

.poll-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  border-radius: 999px;
  padding: 3px 10px;
}

.poll-ranking-note {
  margin-bottom: 28px;
}

.poll-intro {
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 14px;
}

.poll-cats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 0;
}

.poll-cats li {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  border-radius: 999px;
  padding: 6px 14px;
}

.poll-ranking-link {
  font-weight: 700;
  font-size: 15px;
  color: #C4BEFC;
  text-decoration: none;
  border-top: 1px solid var(--border-focus);
  padding-top: 14px;
}

.poll-ranking-link:hover {
  text-decoration: underline;
}

.poll-relation {
  margin: 6px 0 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent-green);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  line-height: 1.55;
}

.poll-relation.is-extension {
  border-left-color: var(--accent-gold);
}

.poll-relation a {
  color: #C4BEFC;
  font-weight: 700;
}

.poll-free {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 18px 0 14px;
}

.poll-free strong {
  color: var(--accent-green);
}

/* Classement : le titre passe à la ligne avant la pastille de position. */
[data-poll-ranking] .game-link-card h3 {
  padding-right: 72px;
}
