/* ========================================
   TESTIMONIALS CAROUSEL
   ======================================== */

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 1400px;
}

.testimonials-wrapper {
  flex: 1;
  overflow: hidden;
}

/* Botões de navegação */
.carousel-nav {
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 80, 80, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgb(255, 255, 255);
  flex-shrink: 0;
  z-index: 2;
}

.carousel-nav:hover {
  background: linear-gradient(145deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 80, 80, 0.1));
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.carousel-nav:active {
  transform: scale(0.95);
}

.carousel-nav svg {
  width: 24px;
  height: 24px;
}

/* Grid de testemunhos */
.testemunhos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  transition: opacity 0.3s ease;
}

/* Card de testemunho com avatar */
.testemunho-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testemunho-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testemunho-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testemunho-card:hover::before {
  opacity: 1;
}

/* Header do card com avatar */
.testemunho-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testemunho-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.testemunho-info {
  flex: 1;
  min-width: 0;
}

.testemunho-name {
  display: block;
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Estrelas */
.stars {
  display: flex;
  gap: 4px;
  color: rgb(255, 255, 255);
}

.stars svg {
  width: 14px;
  height: 14px;
}

/* Texto do feedback */
.testemunho-text {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
  flex: 1;
}

/* Footer com produto */
.testemunho-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testemunho-product {
  color: rgb(255, 255, 255);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Indicadores (dots) */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: rgb(255, 255, 255);
  width: 30px;
  border-radius: 5px;
}

/* Animação de fade */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testemunho-card {
  animation: fadeIn 0.4s ease forwards;
}

.testemunho-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testemunho-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testemunho-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
  .testemunhos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .testimonials-carousel {
    gap: 10px;
  }

  .testemunhos-grid {
    grid-template-columns: 1fr;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
  }

  .carousel-nav svg {
    width: 18px;
    height: 18px;
  }

  .testemunho-card {
    padding: var(--spacing-md);
  }

  .testemunho-avatar {
    width: 40px;
    height: 40px;
  }

  .testemunho-name {
    font-size: 14px;
  }

  .testemunho-text {
    font-size: 14px;
  }

  .carousel-dots {
    margin-top: 30px;
  }
}

/* Esconder botões de navegação se houver apenas uma página */
.testimonials-carousel[data-single-page="true"] .carousel-nav {
  display: none;
}
