/* Vozext Vote - Estilo COMBA 2026 */

/* Google Fonts - Fallback para iOS */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600;700&display=swap");

/* Variables de colores del abanico */
:root {
  --vozext-c1: #e42b2d;
  --vozext-c2: #f5a530;
  --vozext-c3: #f8af1e;
  --vozext-c4: #afca3f;
  --vozext-c5: #83ceef;
  --vozext-base: #1f6945;
  --vozext-star: #f5a530;
  --vozext-star-empty: #ddd;
}

.vozext-voting {
  margin: 20px 0;
  font-family:
    "Roboto Condensed", "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.vozext-voting * {
  font-family: inherit !important;
}

.vozext-voting h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--vozext-base);
  margin-bottom: 15px;
  text-align: center;
}

.vozext-voting > p {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Color stripe decoration */
.vozext-voting .color-stripe {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}

.vozext-voting .color-stripe span {
  flex: 1;
}

.vozext-voting .color-stripe .c1 {
  background: var(--vozext-c1);
}
.vozext-voting .color-stripe .c2 {
  background: var(--vozext-c2);
}
.vozext-voting .color-stripe .c3 {
  background: var(--vozext-c3);
}
.vozext-voting .color-stripe .c4 {
  background: var(--vozext-c4);
}
.vozext-voting .color-stripe .c5 {
  background: var(--vozext-c5);
}

/* Mosca Animation iframe */
.vozext-mosca-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 10px 0;
}

.vozext-mosca-container iframe {
  border: none;
  width: 87px;
  height: 87px;
  background: transparent;
  pointer-events: none;
}

.voting-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.voting-option {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.voting-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.voting-option h4 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--vozext-base);
}

/* Star Rating Container */
.stars-rating {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stars-rating .stars-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.stars-rating .star-option {
  position: relative;
}

.stars-rating .star-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.stars-rating .star-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 2px;
}

.stars-rating .star-option label .star-icon {
  color: var(--vozext-star-empty);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hover effect */
.stars-rating
  .stars-container:not(.disabled)
  .star-option:hover
  label
  .star-icon,
.stars-rating
  .stars-container:not(.disabled)
  .star-option:hover
  ~ .star-option
  label
  .star-icon,
.stars-rating
  .stars-container:not(.disabled)
  .star-option.hover
  label
  .star-icon {
  color: var(--vozext-star);
  transform: scale(1.15);
}

/* Selected state */
.stars-rating .stars-container .star-option.selected label .star-icon {
  color: var(--vozext-star);
}

/* Current value display */
.stars-rating .rating-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars-rating .rating-value {
  font-weight: 700;
  font-size: 16px;
  color: var(--vozext-base);
  background: rgba(31, 105, 69, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.stars-rating .rating-value.not-voted {
  color: #999;
  background: #f0f0f0;
}

/* Disabled state */
.stars-rating.disabled .stars-container {
  opacity: 0.4;
}

.stars-rating.disabled .star-option input[type="radio"] {
  cursor: not-allowed;
  pointer-events: none;
}

.stars-rating.disabled .star-option label {
  cursor: not-allowed;
}

.disabled-notice {
  color: #856404;
  font-style: normal;
  font-weight: 500;
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffe9a0 100%);
  border-radius: 6px;
  border-left: 4px solid var(--vozext-c2);
  font-size: 14px;
}

.vote-success {
  color: var(--vozext-base);
  background: linear-gradient(135deg, #d4edda 0%, #b8e0c4 100%);
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 12px;
  display: none;
  font-weight: 500;
  border-left: 4px solid var(--vozext-base);
}

.vote-success.show {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .vozext-voting h3 {
    font-size: 22px;
  }

  .voting-option {
    padding: 14px 16px;
  }

  .voting-option h4 {
    font-size: 17px;
  }

  .stars-rating .star-option label {
    font-size: 22px;
    padding: 1px;
  }

  .stars-rating .stars-container {
    gap: 0;
  }

  .stars-rating .rating-value {
    font-size: 14px;
    padding: 3px 10px;
  }
}
