/**
 * Interactive Rating Component
 * 
 * Estilos para o componente de avaliação interativo
 * Inspirado no estilo da Amazon
 */

/* Container principal */
.interactive-rating {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: Arial, sans-serif;
  padding: 18px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: box-shadow 0.3s ease;
}

.interactive-rating:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Estrelas */
.interactive-rating-stars {
  display: inline-flex;
  position: relative;
  margin-bottom: 12px;
}

.interactive-rating-stars .star {
  color: #e0e0e0;
  font-size: 1.6rem;
  margin-right: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  position: relative;
}

.interactive-rating-stars .star:hover {
  transform: scale(1.15);
}

.interactive-rating-stars .star.hover {
  color: #ffb700;
}

.interactive-rating-stars .star.active {
  color: #ffb700;
}

/* Efeito de brilho nas estrelas ativas */
.interactive-rating-stars .star.active i,
.interactive-rating-stars .star.hover i {
  text-shadow: 0 0 5px rgba(255, 183, 0, 0.5);
}

/* Feedback */
.interactive-rating-feedback {
  margin: 5px 0 12px 2px;
  font-size: 0.95rem;
  color: #555;
  min-height: 20px;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Botão de limpar */
.rating-clear-btn {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
  margin-left: 2px;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: #f0f0f0;
  transition: all 0.2s ease;
  border: 1px solid #e0e0e0;
}

.rating-clear-btn:hover {
  background-color: #e0e0e0;
  color: #333;
  text-decoration: none;
  border-color: #ccc;
}

.rating-clear-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.3);
}

/* Acessibilidade */
.interactive-rating {
  outline: none;
}

.interactive-rating:focus {
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.3);
}

.interactive-rating-stars .star:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.3);
  border-radius: 4px;
}

/* Botão de enviar avaliação */
.btn-enviar-avaliacao {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #212529;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-enviar-avaliacao:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #212529;
  transform: translateY(-1px);
}

.btn-enviar-avaliacao:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Campo de comentário */
#rating-comment {
  border-color: #ddd;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
  min-height: 80px;
}

#rating-comment:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Responsividade */
@media (max-width: 576px) {
  .interactive-rating {
    padding: 15px;
  }
  
  .interactive-rating-stars .star {
    font-size: 1.4rem;
    margin-right: 4px;
  }
  
  .interactive-rating-feedback {
    font-size: 0.9rem;
  }
}

/* Alerta */
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 320px;
}

.alert {
  margin-bottom: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-left-width: 4px;
}

.alert.show {
  transform: translateX(0);
}

.alert.fade {
  transform: translateX(100%);
}
