/* ============================================================
   REVIEWS SECTION — Nextdoor Reviews Display
   ============================================================ */

.reviews-section {
  padding: 80px 0;
  background-color: var(--color-bg);
}

.reviews-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: var(--color-bg-card);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 0 0 2px 2px;
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
  flex-grow: 1;
}

.review-text.long {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-text.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}

.review-readmore {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  margin-top: -12px;
  margin-bottom: 16px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.review-readmore:hover {
  text-decoration: underline;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.review-author {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.review-date {
  font-size: 12px;
  color: var(--color-text-dim);
}

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-source::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #00B386;
  border-radius: 50%;
}

.reviews-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.reviews-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* Quote icon decorative */
.review-card::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 24px;
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FCD202' opacity='0.15'%3E%3Cpath d='M4.583 17.321C3.553 16.227 3 15 3 13.011c0-3.513 2.261-6.603 5.583-8.177l.591.814c-2.665 1.495-3.923 4.124-4.009 6.39a6.57 6.57 0 013.335-.886c1.862 0 3.372 1.51 3.372 3.371 0 1.86-1.51 3.371-3.372 3.371-1.144 0-2.159-.571-2.77-1.443zm10 0C13.553 16.227 13 15 13 13.011c0-3.513 2.261-6.603 5.583-8.177l.591.814c-2.665 1.495-3.923 4.124-4.009 6.39a6.57 6.57 0 013.335-.886c1.862 0 3.372 1.51 3.372 3.371 0 1.86-1.51 3.371-3.372 3.371-1.144 0-2.159-.571-2.77-1.443z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.6;
  pointer-events: none;
}
