/* ==========================================
   SERVME - PAGES AUTHENTICATED DESKTOP REVIEWS
   Reviews page desktop - DESKTOP uniquement
   Extrait de reviews.css (hors @media mobile)
   ========================================== */

/* ============================================
   SERVME - REVIEWS STYLES
   Styles pour les avis et notes
   =========================================== */

/* === REVIEWS LIST === */
.reviews-section {
  margin-top: 32px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.reviews-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 12px;
  margin-bottom: 24px;
}

.reviews-average {
  text-align: center;
}

.reviews-average-rating {
  font-size: 48px;
  font-weight: 700;
  color: #222;
  line-height: 1;
  margin-bottom: 8px;
}

.reviews-average-stars {
  color: #FF385C;
  font-size: 20px;
  margin-bottom: 8px;
}

.reviews-average-count {
  font-size: 14px;
  color: #717171;
}

.reviews-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reviews-breakdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-breakdown-stars {
  font-size: 13px;
  color: #717171;
  min-width: 60px;
}

.reviews-breakdown-bar {
  flex: 1;
  height: 8px;
  background: #ebebeb;
  border-radius: 4px;
  overflow: hidden;
}

.reviews-breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF385C, #E61E4D);
  transition: width 0.3s ease;
}

.reviews-breakdown-count {
  font-size: 13px;
  color: #717171;
  min-width: 40px;
  text-align: right;
}

/* === REVIEW ITEM === */
.review-item {
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid #ebebeb;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.review-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #ddd;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
  flex-shrink: 0;
}

.review-avatar.placeholder {
  background: linear-gradient(135deg, #E61E4D, #BD1E59);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.review-author-info {
  flex: 1;
}

.review-author-name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.review-date {
  font-size: 13px;
  color: #717171;
}

.review-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.review-stars {
  color: #FF385C;
  font-size: 16px;
}

.review-rating-value {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.review-comment {
  color: #484848;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.review-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.review-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 2px solid #ebebeb;
}

.review-photo:hover {
  transform: scale(1.05);
  border-color: #E61E4D;
}

.review-response {
  margin-top: 16px;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 8px;
  border-left: 4px solid #E61E4D;
}

.review-response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-response-header strong {
  color: #222;
  font-size: 14px;
}

.review-response-date {
  font-size: 12px;
  color: #717171;
}

.review-response-text {
  color: #484848;
  line-height: 1.6;
  font-size: 14px;
  white-space: pre-wrap;
}

.review-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #ebebeb;
}

.review-helpful-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f7f7f7;
  border: 1px solid #ebebeb;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #484848;
  cursor: pointer;
  transition: all 0.2s;
}

.review-helpful-btn:hover {
  background: #ebebeb;
  border-color: #ddd;
}

.review-helpful-btn.active {
  background: #E61E4D;
  color: white;
  border-color: #E61E4D;
}

.review-helpful-btn.active i {
  color: white;
}

.review-delete-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #ebebeb;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #dc3545;
  cursor: pointer;
  transition: all 0.2s;
}

.review-delete-btn:hover {
  background: #fff5f5;
  border-color: #dc3545;
}

/* === REVIEW MODAL === */
.rating-input {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
}

.rating-input input[type="radio"] {
  display: none;
}

.rating-star {
  font-size: 32px;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.rating-star:hover {
  color: #FFD700;
  transform: scale(1.1);
}

.rating-star.active {
  color: #FFD700;
}

/* Effet hover sur les étoiles précédentes */
.rating-input:hover .rating-star {
  color: #ddd;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #FFD700;
}

/* Étoiles sélectionnées */
.rating-input input[type="radio"]:checked + label,
.rating-input input[type="radio"]:checked ~ input[type="radio"] + label {
  color: #ddd;
}

.rating-input input[type="radio"]:checked + label,
.rating-input input[type="radio"]:checked + label ~ label.active {
  color: #FFD700;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #717171;
  margin-top: 4px;
}

.review-photos-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.review-photo-preview-item {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #ebebeb;
}

.review-photo-preview-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.remove-photo:hover {
  background: rgba(220, 53, 69, 0.9);
  transform: scale(1.1);
}

/* === EMPTY STATE === */
.reviews-empty {
  text-align: center;
  padding: 60px 20px;
  color: #717171;
}

.reviews-empty-icon {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 16px;
}

.reviews-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #484848;
  margin-bottom: 8px;
}

.reviews-empty-text {
  font-size: 14px;
  color: #717171;
}

