/* File: engagement.css
   Description: Poll, voting, chart, and engagement layout styles. Button visuals live in buttons.css.
*/

.poll-image img {
  display: block;
  margin: 0 auto 20px;
  height: auto;
}

.cp-poll-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  background-color: #fff;
}

#show-poll-results {
  text-decoration: underline;
}

.chart-container {
  position: relative;
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
  height: auto;
}

.chart-container canvas {
  display: block;
  margin: 0 auto;
  width: 100% !important;
  height: auto;
}

.poll-subscriber-message {
  padding: 15px;
}

.poll-subscriber-message ul {
  margin: 10px 0 10px 20px;
}

.poll-subscriber-message a {
  color: #0073aa;
  text-decoration: underline;
}

#poll-results-container {
  margin-top: 30px;
}

.vote-container {
  background: #fff;
  border: 1px solid #ccc;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
  color: #000;
}

.vote-container.voted {
  background: red;
  color: #fff;
}

/* Keep only structural rules */
.vote-container button {
  padding: 0 5px;
}

.vote-container .vote-count {
  font-size: 1.2em;
  margin: 0 8px;
}

.points-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 0 auto;
}

.points-table th,
.points-table td {
  border: 1px solid #000;
  padding: 8px;
}

.points-table th {
  background-color: #f4f4f4;
  text-align: center;
}

.points-table td:nth-child(2) {
  text-align: center;
}

.points-table tr:last-child th {
  background-color: #e0e0e0;
}