/**
 * CMP Tablica Polls (frontend) — wygląd ankiet w postach
 * Plik: public/assets/css/tablica-polls.css
 */

.cmp-poll{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.cmp-poll-options{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmp-poll-option{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0,0,0,.02);
}

.cmp-poll-option.is-selected{
  border-color: rgba(0,0,0,.20);
}

.cmp-poll-option-vote{
  width: 100%;
  display: block;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.25;
}

.cmp-poll-option[data-selected="1"] .cmp-poll-option-vote{
  font-weight: 700;
}

.cmp-poll-option-vote[disabled],
.cmp-poll-option-vote[aria-disabled="true"]{
  opacity: .75;
  cursor: not-allowed;
}

.cmp-poll-progress{
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,.08);
  margin-top: 10px;
}

.cmp-poll-progress-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: currentColor;
  opacity: .22;
  transition: width .35s ease;
}

.cmp-poll-meta{
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: .9;
}

.cmp-poll-footer{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  opacity: .9;
}

.cmp-poll-voted{
  font-weight: 600;
}

/* Mobile: większe kliki */
@media (max-width: 767px){
  .cmp-poll-option-vote{
    padding: 12px 14px;
  }
}
