/* Recensioni.css - Mobile-first, moderno e sofisticato */

.bg-gradient-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.hero-section {
  position: relative;
  background-color: #f8f9fa; /* Clean light background */
}

.rating-bar {
  font-size: 0.9rem;
}

.rating-bar .progress {
  height: 10px;
}

.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: none;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#averageRating {
  font-size: 3rem;
  font-weight: bold;
}

#filterStars {
  max-width: 150px;
}

#loadMoreBtn {
  transition: all 0.3s ease;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
}

#loadMoreBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.review-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
}

.review-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid #e9ecef;
  flex-shrink: 0;
}

.review-stars {
  color: #ffc107;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.review-stars i {
  margin-right: 2px;
}

#averageStars {
  color: #ffc107;
}

#averageStars i {
  margin: 0 2px;
}

.review-content {
  line-height: 1.6;
}

.btn-outline-primary {
  border-color: #007bff;
  color: #007bff;
}

.btn-outline-primary:hover {
  background: #007bff;
  border-color: #007bff;
}

/* Animazioni leggere */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__animated {
  animation-duration: 0.6s;
  animation-fill-mode: both;
}

.animate__fadeInDown {
  animation-name: fadeInDown;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

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

/* Responsive */
@media (max-width: 576px) {
  .hero-section {
    padding: 3rem 0;
  }

  .display-4 {
    font-size: 2rem;
  }

  .col-md-4,
  .col-md-8 {
    margin-bottom: 1.5rem;
  }

  #averageRating {
    font-size: 2.5rem;
  }

  #filterStars {
    max-width: 100%;
  }

  .review-header {
    flex-direction: column;
    text-align: center;
  }

  .review-avatar {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  .col-md-4,
  .col-md-8 {
    margin-bottom: 2rem;
  }

  #averageRating {
    font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding: 5rem 0;
  }

  #averageRating {
    font-size: 3rem;
  }
}

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 32px;
  z-index: 10001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(90deg, #3a7bd5 0%, #00d2ff 100%);
  color: #fff;
  font-size: 1.2rem;
  border: none;
  box-shadow: 0 2px 8px rgba(58, 123, 213, 0.18);
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
}

.scroll-top-btn:hover {
  background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
  box-shadow: 0 4px 16px rgba(58, 123, 213, 0.26);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .scroll-top-btn {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
