/* ================================================
   REVIEWS.CSS — Xtreme Fitness Studio
   Rating panel + review cards
================================================ */

.reviews-section {
  background-color: var(--bg-secondary);
  padding: 5rem 0;
}

.reviews-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Layout: Rating Panel (left) + Cards (right) ---- */
.reviews-rating-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---- LEFT: Rating Summary Panel ---- */
.reviews-rating-panel {
  background: #111111;
  border: 1px solid rgba(230, 0, 0, 0.2);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: sticky;
  top: calc(var(--navbar-height, 64px) + 1.5rem);
}

.rating-score-huge {
  font-size: 4.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(230, 0, 0, 0.3);
}

.rating-stars-large {
  color: #e60000;
  font-size: 1.75rem;
  letter-spacing: 3px;
  margin: 0.5rem 0 0.25rem;
  text-shadow: 0 0 10px rgba(230, 0, 0, 0.5);
}

.rating-subtext {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

/* ---- Star Bars ---- */
.rating-bars-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rating-star-label {
  color: #e0e0e0;
  font-size: 0.85rem;
  min-width: 22px;
  text-align: right;
}

.rating-bar-bg {
  flex: 1;
  background: #222222;
  border-radius: 50px;
  height: 7px;
  overflow: hidden;
}

.bar-fill {
  background: var(--primary-color);
  border-radius: 50px;
  height: 100%;
  transition: width 0.6s ease;
}

.w-78 { width: 78%; }
.w-14 { width: 14%; opacity: 0.75; }
.w-5  { width: 5%;  opacity: 0.55; }
.w-2  { width: 2%;  opacity: 0.4;  }
.w-1  { width: 1%;  opacity: 0.3;  min-width: 3px; }

.rating-percent-label {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  min-width: 32px;
  text-align: right;
}

/* ---- JustDial Badge ---- */
.jd-badge {
  padding: 0.875rem 1rem;
  background: rgba(230, 0, 0, 0.07);
  border: 1px solid rgba(230, 0, 0, 0.18);
  border-radius: var(--radius-md);
}

.jd-badge-title {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 0.9rem;
}

.jd-badge-stats {
  color: var(--text-tertiary);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

/* ---- RIGHT: Review Cards Column ---- */
.reviews-list-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Individual Review Card ---- */
.review-card {
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(230, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(230, 0, 0, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
}

.reviewer-info {
  flex-grow: 1;
  min-width: 0;
}

.reviewer-name {
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviewer-role {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  margin: 0;
}

.review-time {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.review-stars {
  color: var(--primary-color);
  font-size: 1rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(230, 0, 0, 0.5);
}

.review-text {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}

/* ---- No Dislikes Alert ---- */
.no-dislikes-alert {
  padding: 1rem 1.25rem;
  background: rgba(230, 0, 0, 0.05);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
}

.no-dislikes-check {
  color: var(--primary-color);
  font-weight: 800;
}

.no-dislikes-text {
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ================================================
   BREAKPOINTS — Reviews
================================================ */

/* Tablet (960px) — stack to single column */
@media (max-width: 960px) {
  .reviews-rating-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reviews-rating-panel {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  .reviews-section {
    padding: 3.5rem 0;
  }

  .review-card {
    padding: 1.25rem;
  }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
  .reviews-section {
    padding: 2.5rem 0;
  }

  .reviews-container {
    padding: 0 1rem;
  }

  .reviews-rating-panel {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
  }

  .rating-score-huge {
    font-size: 3.5rem;
  }

  .rating-stars-large {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .reviewer-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 0.8rem;
  }

  .reviewer-name {
    font-size: 0.875rem;
  }

  .review-text {
    font-size: 0.875rem;
  }

  .review-card {
    padding: 1rem;
  }
}
