/* ===== REVIEW SECTION STYLES ===== */

.review-section {
  padding: 50px 0;
  background: #ffffff;
}

.review-wrapper {
  max-width: 1184px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Review Header & Stats */
.review-header {
  margin-bottom: 35px;
}

.review-header .section-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 3px solid #4502c7;
}

.review-header .section-title i {
  color: #4502c7;
  font-size: 28px;
}

.review-stats-summary {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.average-rating-box {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rating-number {
  font-size: 48px;
  font-weight: 700;
  color: #4502c7;
  line-height: 1;
  margin-bottom: 8px;
}

.rating-stars {
  font-size: 18px;
  margin-bottom: 8px;
}

.star-filled {
  color: #ffc107;
}

.star-half {
  color: #ffc107;
}

.star-empty {
  color: #dee2e6;
}

.rating-count {
  font-size: 13px;
  color: #6c757d;
  margin-top: 5px;
}

.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.rating-label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 45px;
  font-weight: 600;
  color: #495057;
}

.rating-label .mini-star {
  color: #ffc107;
  font-size: 13px;
}

.progress-bar-container {
  flex: 1;
  height: 10px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4502c7 0%, #6f42c1 100%);
  transition: width 0.3s ease;
  border-radius: 5px;
}

.rating-percentage {
  min-width: 45px;
  font-weight: 600;
  color: #4502c7;
  text-align: right;
}

.rating-count {
  min-width: 50px;
  color: #6c757d;
  font-size: 12px;
}

/* Review Write Section */
.review-write-section {
  margin-bottom: 35px;
}

.review-info-box {
  background: #e7f3ff;
  border: 1px solid #4502c7;
  border-left: 4px solid #4502c7;
  border-radius: 6px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #2d3748;
  margin-bottom: 20px;
}

.review-info-box i {
  font-size: 18px;
  color: #4502c7;
}

.review-info-box.info-warning {
  background: #fff8e1;
  border-color: #ff9800;
  border-left-color: #ff9800;
}

.review-info-box.info-warning i {
  color: #ff9800;
}

.review-info-box.info-login {
  background: #fce4ec;
  border-color: #e91e63;
  border-left-color: #e91e63;
}

.review-info-box.info-login i {
  color: #e91e63;
}

.review-info-box a {
  color: #4502c7;
  text-decoration: underline;
  font-weight: 600;
}

/* Review Form */
.review-form-container {
  background: white;
  padding: 25px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  margin-bottom: 20px;
}

.review-form-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.review-form-title i {
  color: #4502c7;
}

.review-form .form-group {
  margin-bottom: 20px;
}

.review-form .form-label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 14px;
}

.review-form .form-label .required {
  color: #e91e63;
  margin-right: 3px;
  font-size: 16px;
}

/* Star Rating Input */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  font-size: 36px;
  margin-bottom: 8px;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: #dee2e6;
  transition: all 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ffc107;
  transform: scale(1.15);
}

.star-rating input[type="radio"]:checked ~ label {
  color: #ffc107;
}

.form-text {
  display: block;
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
}

.review-form .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  resize: vertical;
}

.review-form .form-control:focus {
  outline: none;
  border-color: #4502c7;
  box-shadow: 0 0 0 3px rgba(69, 2, 199, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.form-actions .btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.form-actions .btn-primary {
  background: #4502c7;
  color: white;
}

.form-actions .btn-primary:hover {
  background: #3602a0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(69, 2, 199, 0.3);
}

.form-actions .btn-secondary {
  background: #e2e8f0;
  color: #2d3748;
}

.form-actions .btn-secondary:hover {
  background: #cbd5e0;
}

/* Review List */
.review-list-section {
  margin-top: 35px;
}

.review-list-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Review Card */
.review-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: #4502c7;
  box-shadow: 0 2px 12px rgba(69, 2, 199, 0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-user-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.review-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4502c7;
}

.review-avatar-placeholder {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #4502c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.review-user-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 3px;
}

.review-date {
  font-size: 12px;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-rating {
  display: flex;
  gap: 3px;
  font-size: 16px;
}

.review-content {
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 12px;
}

.review-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #2d3748;
  margin: 0;
}

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.review-actions .form-inline {
  display: inline;
}

.review-actions button {
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-edit-review {
  background: #4502c7;
  color: white;
}

.btn-edit-review:hover {
  background: #3602a0;
  transform: translateY(-1px);
}

.btn-delete-review {
  background: #e91e63;
  color: white;
}

.btn-delete-review:hover {
  background: #c2185b;
  transform: translateY(-1px);
}

/* Empty State */
.review-empty {
  text-align: center;
  padding: 50px 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.review-empty i {
  font-size: 56px;
  color: #cbd5e0;
  margin-bottom: 16px;
}

.review-empty p {
  font-size: 15px;
  color: #6c757d;
  margin: 8px 0;
}

/* Load More Button */
.review-load-more {
  text-align: center;
  margin-top: 25px;
}

.review-load-more .btn-outline {
  padding: 10px 24px;
  border: 2px solid #4502c7;
  background: transparent;
  color: #4502c7;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.review-load-more .btn-outline:hover {
  background: #4502c7;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(69, 2, 199, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
  .review-wrapper {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  .review-section {
    padding: 35px 0;
  }

  .review-stats-summary {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .average-rating-box {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 15px;
  }

  .review-user-info {
    flex-direction: row;
  }

  .review-header {
    flex-direction: column;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
