/* Reviews Section - Modernized */
.reviews-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Review Form */
.review-form-container {
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.review-form-container:hover {
  box-shadow: var(--shadow-md);
}

.btn-rating {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  background-color: white;
  color: #ccc;
  font-size: 18px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-rating:hover {
  border-color: #ffc107;
  color: #ffc107;
  transform: translateY(-2px);
}

.btn-rating.active {
  background-color: #ffc107;
  border-color: #ffc107;
  color: white;
}

.review-textarea {
  border-color: #e0e0e0;
  transition: all 0.3s ease;
  padding: 15px;
  font-size: 15px;
}

.review-textarea:focus {
  box-shadow: 0 0 0 0.25rem rgba(6, 108, 250, 0.15);
  border-color: var(--primary-color);
}

.image-upload-container {
  width: 100%;
}

.image-upload-area {
  border: 2px dashed #d0d0d0;
  border-radius: 8px;
  padding: 30px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-upload-area:hover {
  border-color: var(--primary-color);
  background-color: rgba(6, 108, 250, 0.03);
}

.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.image-preview {
  width: 85px;
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-image {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  padding: 0;
}

.btn-remove-image:hover {
  background: white;
  color: #b81c2f;
  transform: scale(1.1);
}

.image-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Review Summary */
.average-rating-showcase {
  padding: 10px 0;
}

.average-rating-value {
  color: var(--primary-color);
  font-weight: 700;
}

.rating-distribution {
  padding: 10px 0;
}

.rating-bar-row {
  margin: 8px 0;
}

.rating-progress {
  flex-grow: 1;
}

.progress {
  background-color: #e9ecef;
  overflow: hidden;
  border-radius: 50px;
}

.progress-bar {
  background-color: var(--primary-color);
  transition: width 1s ease;
}

/* Review Cards */
.review-card {
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  background-color: var(--light-bg);
  margin-bottom: 20px;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.reviewer-info {
  display: flex;
  align-items: center;
}

.reviewer-avatar {
  margin-right: 12px;
}

.reviewer-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 3px;
}

.review-date {
  font-size: 13px;
  color: var(--text-muted);
}

.review-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.review-stars {
  color: #ffc107;
  font-size: 14px;
  margin-bottom: 5px;
}

.verified-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.verified-badge i {
  font-size: 10px;
}

.review-content {
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.review-images {
  margin-top: 15px;
}

.review-image-wrapper {
  width: 85px;
  height: 85px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.review-image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.review-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No Reviews */
.no-reviews {
  text-align: center;
  padding: 60px 0;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background-color: rgba(6, 108, 250, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.no-reviews-text {
  max-width: 400px;
  margin: 0 auto 25px;
}

.no-reviews-text h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.no-reviews-text p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Write Review Button */
.btn-write-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-write-review:hover {
  background-color: #0559cc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}
