/* ============================================================
   REVIEWS.CSS — Testimonials Carousel Section
   ============================================================ */

#depoimentos {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

#depoimentos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(124,58,237,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(6,182,212,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Rating Summary ───────────────────────────────────────── */
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.reviews-overall {
  text-align: center;
}

.reviews-overall-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.reviews-overall-stars {
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin: var(--space-xs) 0;
}

.reviews-overall-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reviews-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating-bar-track {
  width: 120px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), #ff9500);
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-smooth);
}

.rating-bar-count {
  min-width: 30px;
  text-align: right;
}

/* ── Carousel ─────────────────────────────────────────────── */
.reviews-carousel-wrapper {
  position: relative;
}

.reviews-carousel-wrapper::before,
.reviews-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}

.reviews-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}

.reviews-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}

#reviews-track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-md) var(--space-sm);
}

#reviews-track::-webkit-scrollbar { display: none; }

/* ── Review Card ──────────────────────────────────────────── */
.review-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: var(--space-lg);
  font-size: 8rem;
  font-family: Georgia, serif;
  color: rgba(124,58,237,0.08);
  line-height: 1;
  pointer-events: none;
}

.review-card:hover {
  border-color: rgba(124,58,237,0.25);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(124,58,237,0.1);
  transform: translateY(-4px);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.review-user { flex: 1; }

.review-name-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.review-verified {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.review-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.review-rating-badge {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.review-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
}

.review-product {
  color: var(--primary-light);
  font-weight: 500;
}

.review-date { color: var(--text-muted); }

/* ── Carousel Controls ────────────────────────────────────── */
.reviews-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.reviews-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration-fast);
}

.reviews-controls button:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 16px var(--primary-glow);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .reviews-summary { gap: var(--space-xl); }
  .review-card { width: 300px; }
  .rating-bar-track { width: 80px; }
}
