.reviews-section {
  padding: 2rem 1rem;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2rem;
  text-align: center;
}

.reviews-grid {
  column-count: 3;
  column-gap: 20px;
  contain: content;
}

.review-card {
  background: white;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
  height: fit-content;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 20px;
  contain: layout paint;
}

.review-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.review-header {
  margin-bottom: 8px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.reviewer-name {
  font-size: 2rem;
  font-weight: 600;
  color: #111827;
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  color: #059669;
  font-weight: 500;
}

.verified-icon {
  width: 16px;
  height: 16px;
  color: #059669;
}

.star-rating {
  display: flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
}

.star-filled {
  color: #fbbf24;
  fill: #fbbf24;
}

.star-outline {
  color: #d1d5db;
  fill: none;
  stroke-width: 2;
}

.review-content {
  margin-bottom: 8px;
}

.review-text {
  color: #374151;
  line-height: 1.6;
  font-size: 1rem;
}

.read-more {
  color: #3b82f6;
  cursor: pointer;
  text-decoration: underline;
}

.read-more:hover {
  color: #1d4ed8;
}

.review-media {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex: 1;
  min-width: 150px;
}

/* Multiple images layout */
.review-media:has(.review-image:nth-child(2)) .review-image {
  flex: 1 1 calc(50% - 4px);
  height: 150px;
}

.review-media:has(.review-image:nth-child(3)) .review-image {
  flex: 1 1 calc(33.333% - 6px);
  height: 120px;
}

.review-media:has(.review-image:nth-child(4)) .review-image {
  flex: 1 1 calc(50% - 4px);
  height: 100px;
}

.review-media:has(.review-image:nth-child(5)) .review-image {
  flex: 1 1 calc(33.333% - 6px);
  height: 100px;
}

.video-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 24px;
  height: 24px;
  color: white;
  margin-left: 2px;
}

.media-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.review-footer {
  display: flex;
  justify-content: flex-end;
}

.review-form {
  width: 100%;
}

/* ===== USER REVIEW HIGHLIGHT ===== */
.review-card--mine {
  border: 2px solid var(--color-primary, #3b82f6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.review-card--mine:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.review-user-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary, #3b82f6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
  .reviews-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .reviews-section {
    padding: 0px 16px;
  }

  .reviews-grid {
    column-count: 1;
  }

  .review-card {
    padding: 10px;
  }

  .reviews-title {
    font-size: 1.5rem;
  }
}
