/* Estilos específicos para a página de avaliação */

/* Rating Groups */
.rating-group {
  margin-bottom: 36px;
  padding: 24px;
  background: var(--neutral-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.rating-group:hover {
  background: #f0f8f4;
  box-shadow: 0 2px 8px rgba(28, 124, 78, 0.08);
}

.rating-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.rating-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Sistema de Estrelas */
.stars-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  position: relative;
}

.star {
  font-size: 48px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.star:hover {
  transform: scale(1.15);
}

.star.active {
  color: var(--solar-yellow);
  text-shadow: 0 0 10px rgba(244, 180, 0, 0.5);
  animation: starPulse 0.3s ease;
}

.star.hover {
  color: var(--solar-orange);
  transform: scale(1.1);
}

@keyframes starPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Feedback visual após seleção */
.rating-group.completed {
  border: 2px solid var(--primary-green);
  background: rgba(28, 124, 78, 0.05);
}

.rating-group.completed::after {
  content: '✓';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  animation: checkmark 0.4s ease;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

/* Rating value display */
.rating-value {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: var(--primary-green);
  font-weight: 600;
  min-height: 20px;
}

/* Success message */
.success-message {
  background: #d4edda;
  border: 2px solid #c3e6cb;
  color: #155724;
  padding: 16px;
  border-radius: var(--radius);
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  animation: fadeIn 0.5s ease;
}

/* Animação de envio */
.btn-primary.sending {
  position: relative;
  color: transparent;
}

.btn-primary.sending::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Responsivo para estrelas */
@media (max-width: 640px) {
  .star {
    font-size: 36px;
    gap: 4px;
  }

  .rating-group {
    padding: 16px;
  }

  .rating-label {
    font-size: 16px;
  }

  .rating-description {
    font-size: 13px;
  }

  .stars-container {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .star {
    font-size: 32px;
  }

  .stars-container {
    gap: 2px;
  }
}

/* Tooltip para estrelas */
.star-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neutral-dark);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.stars-container:hover .star-tooltip {
  opacity: 1;
}

/* Indicador de progresso */
.progress-indicator {
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.progress-indicator span {
  color: var(--primary-green);
  font-size: 18px;
}
