/* Recensioni Page - Modern Design */

/* Statistics Section */
.review-stats-section {
  margin-top: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--bs-white) 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 2rem 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(var(--bs-accent-rgb), 0.1);
}

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

.stat-icon {
  font-size: 2.5rem;
  color: var(--bs-accent);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 0.5rem;
  font-family: 'Oswald', sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 600;
}

/* Filter Controls */
.review-filters {
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--bs-white);
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6c757d;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--bs-accent);
  color: var(--bs-accent);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--bs-accent);
  border-color: var(--bs-accent);
  color: var(--bs-white);
  box-shadow: 0 4px 15px rgba(var(--bs-accent-rgb), 0.3);
}

/* Modern Review Cards */
.review-card-modern {
  background: var(--bs-white);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  position: relative;
}

.review-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.featured-review {
  border: 2px solid var(--bs-accent);
  position: relative;
}

.review-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bs-accent);
  color: var(--bs-white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 10;
}

.review-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #f8f9fa;
}

.reviewer-avatar {
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--bs-accent), var(--bs-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-white);
  font-weight: 700;
  font-size: 1.1rem;
}

.reviewer-info {
  flex-grow: 1;
}

.reviewer-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--bs-dark);
}

.review-date {
  font-size: 0.8rem;
  color: #6c757d;
}

.review-rating {
  text-align: right;
  flex-shrink: 0;
}

.stars {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.rating-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
}

.review-content {
  padding: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.service-tag {
  background: rgba(var(--bs-accent-rgb), 0.1);
  color: var(--bs-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

.review-text {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.review-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.review-like,
.review-share {
  background: none;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-like:hover,
.review-share:hover {
  border-color: var(--bs-accent);
  color: var(--bs-accent);
  transform: translateY(-2px);
}

.review-like.liked {
  background: var(--bs-accent);
  border-color: var(--bs-accent);
  color: var(--bs-white);
}

/* Modern CTA Section */
.cta-section-modern {
  background: linear-gradient(135deg, var(--bs-dark) 0%, #2c3e50 100%);
  color: var(--bs-white);
  padding: 4rem 2rem;
  border-radius: 25px;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--bs-white);
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cta-rating-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cta-rating-display .rating-stars {
  color: #ffc107;
  font-size: 1.5rem;
}

.cta-rating-display .rating-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cta-rating-display .rating-count {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

.cta-description {
  color: rgba(255,255,255,0.95);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cta-benefits {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.95);
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.benefit-item i {
  color: var(--bs-accent);
}

.google-review-btn {
  font-weight: 600;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(var(--bs-accent-rgb), 0.3);
}

.google-review-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--bs-accent-rgb), 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .review-stats-section {
    margin-top: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .review-header {
    padding: 1.25rem 1.25rem 0.75rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .review-rating {
    text-align: center;
  }
  
  .review-content {
    padding: 1.25rem;
  }
  
  .cta-section-modern {
    padding: 2.5rem 1.5rem;
    margin: 2rem 0;
  }
  
  .cta-benefits {
    flex-direction: column;
    gap: 1rem;
  }
  
  .google-review-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .review-card-modern {
    margin-bottom: 1.5rem;
  }
  
  .service-tags {
    justify-content: center;
  }
  
  .review-actions {
    justify-content: center;
  }
  
  .cta-section-modern {
    padding: 2rem 1rem;
  }
}

/* Animation Classes */
.review-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.review-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.review-item.visible {
  opacity: 1;
  transform: scale(1);
}
