/* ===================================================
 * Review Section — Two Column Layout + Avatar Styling
 * =================================================== */

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.review-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.review-left {
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.review-author-avatar,
.review-author-avatar--initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, #0ea5e9);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.review-author-avatar img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.review-author-meta {
  text-align: center;
  font-size: 1.5rem;
  color: #1f2937;
}

.review-author-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.review-date {
  display: block;
  font-size: 1.0rem;
  color: #6b7280;
}

.review-right {
  flex: 1;
}

.review-content {
  color: #374151;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .review-body {
    flex-direction: row;
  }
  .review-left {
    width: 64px;
  }
  .review-author-meta {
    font-size: 0.8rem;
  }
}

/* ===================================================
   APPENDED: Star Rating Presentation (minimal & safe)
   - Only appended styles; no original rules removed.
   - Targets the .comment-rating element inserted by PHP.
   =================================================== */

.comment-rating {
  /* color and size tuned to match your design variables */
  color: var(--gold, #fbbf24);
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  /* ensure stars sit nicely above the review text */
  display: inline-block;
  letter-spacing: 2px; /* small spacing between stars */
  text-shadow: 0 0 0 rgba(0,0,0,0); /* placeholder for clarity */
}

/* if you ever render numeric rating (fallback), style it */
.comment-rating .rating-number {
  font-weight: 700;
  color: var(--muted, #475569);
  margin-left: 0.5rem;
  font-size: 0.95rem;
}

/* give a tiny gap between rating and review content on mobile */
@media (max-width: 480px) {
  .comment-rating { font-size: 1rem; letter-spacing: 1px; margin-bottom: 0.35rem; }
  .review-body { gap: 0.75rem; }
}

/* Accessibility: if you add hidden text for screen readers */
.comment-rating .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===================================================
   End appended block — no other rules were altered
   =================================================== */
