/* Reviews Widget Styles */
.reviews-widget {
  max-width: 100%;
  margin: 0 auto;
}

.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.review-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.review-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.review-name {
  font-weight: 600;
  font-size: 16px;
  color: #333333;
  margin: 0;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars .star {
  font-size: 18px;
  color: #ddd;
  transition: color 0.2s ease;
}

.review-stars .star.filled {
  color: #ffc107;
}

.review-text {
  color: #666666;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

.hidden-review {
  display: none;
}

.load-more-container {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn {
  background: #007cba;
  color: #ffffff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
  background: #005a87;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .review-item {
    padding: 20px;
  }

  .review-name {
    font-size: 15px;
  }

  .review-stars .star {
    font-size: 16px;
  }

  .load-more-btn {
    padding: 10px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .review-item {
    padding: 16px;
  }

  .review-name {
    font-size: 14px;
  }

  .review-text {
    font-size: 13px;
  }

  .review-stars .star {
    font-size: 15px;
  }
}

/* Animation for showing reviews */
.review-item.show-review {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for button */
.load-more-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.load-more-btn.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
