/* Reviews List Plugin Styles */
.reviews-list-container {
  max-width: 800px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.review-item {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.review-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.review-author {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.review-rating {
  display: flex;
  align-items: center;
}

.star {
  font-size: 18px;
  margin-right: 2px;
  transition: color 0.2s ease;
}

.star-full {
  color: #ffd700;
}

.star-half {
  color: #ffd700;
  position: relative;
}

.star-half::after {
  content: "★";
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #ffd700;
}

.star-empty {
  color: #e1e5e9;
}

.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 15px;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #4285f4;
}

.review-date {
  font-size: 13px;
  color: #6c757d;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .reviews-list-container {
    margin: 10px;
    padding: 0 10px;
  }

  .review-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-author {
    font-size: 15px;
  }

  .review-text {
    font-size: 14px;
    padding: 12px;
  }
}

/* Loading Animation */
.reviews-loading {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.reviews-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 50%;
  border-top-color: #4285f4;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error State */
.reviews-error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  color: #c53030;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

/* No Reviews State */
.reviews-empty {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-style: italic;
}

/* Reviews Stats Styles */
.reviews-stats-container {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stats-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.stats-label {
  font-weight: 600;
  color: #333333;
  font-size: 15px;
}

.stats-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.rating-number {
  font-size: 14px;
  color: #6c757d;
}

.rating-distribution {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.rating-distribution h4 {
  margin: 0 0 15px 0;
  color: #333333;
  font-size: 16px;
}

.distribution-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.rating-stars {
  min-width: 80px;
  font-size: 14px;
}

.distribution-bar {
  flex: 1;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.distribution-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  border-radius: 10px;
  transition: width 0.8s ease;
}

.distribution-count {
  min-width: 20px;
  text-align: right;
  font-weight: 600;
  color: #333333;
  font-size: 14px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .review-item {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .review-author {
    color: #f7fafc;
  }

  .review-text {
    background: #4a5568;
    color: #e2e8f0;
    border-left-color: #63b3ed;
  }

  .review-date {
    color: #a0aec0;
  }

  .reviews-stats-container {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .stats-item {
    border-bottom-color: #4a5568;
  }

  .stats-label {
    color: #f7fafc;
  }

  .stats-value {
    color: #e2e8f0;
  }

  .rating-number {
    color: #a0aec0;
  }

  .rating-distribution {
    border-top-color: #4a5568;
  }

  .rating-distribution h4 {
    color: #f7fafc;
  }

  .distribution-bar {
    background: #4a5568;
  }

  .distribution-count {
    color: #e2e8f0;
  }
}
