/*
 * CAROUSEL DE FEATURES
 * Para ajustar tamanhos dos cards, edite as variáveis em css/variables.css
 * Variáveis importantes:
 * - --carousel-card-height
 * - --carousel-card-width
 * - --carousel-gap
 * - --carousel-icon-size
 * - --carousel-font-size
 */

/* === SEÇÃO CAROUSEL === */
.features-carousel {
  padding: 5rem 0;
  background: #F8F9FA;
  overflow: hidden;
}

.carousel-header-card {
  max-width: 800px;
  margin: 0 auto 3rem;
  background: var(--white);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.carousel-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.carousel-header-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 0;
  line-height: 1.4;
}

.features-carousel h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* === CONTAINER === */
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
}

/* === TRACK (linha de cards) === */
.carousel-track {
  display: flex;
  gap: 3rem;
  transition: transform 0.5s ease-in-out;
}

/* === CARDS === */
.carousel-card {
  min-width: calc(33.333% - 2rem);
  max-width: calc(33.333% - 2rem);
  flex-shrink: 0;
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.carousel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.carousel-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

/* === ÍCONE === */
.carousel-card i {
  font-size: 3rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

/* === TEXTO === */
.carousel-card h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--dark-blue);
  margin: 0;
  font-weight: 600;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === BOTÕES DE NAVEGAÇÃO === */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-purple);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(139, 126, 216, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--dark-purple);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(139, 126, 216, 0.4);
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

.carousel-btn i {
  font-size: 1.2rem;
}

/* === INDICADORES === */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--light-purple);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.indicator:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

.indicator.active {
  background: var(--primary-purple);
  opacity: 1;
  width: 30px;
  border-radius: 6px;
}

/* === RESPONSIVIDADE === */
@media (max-width: 1200px) {
  .carousel-card {
    min-width: calc(33.333% - calc(var(--carousel-gap) * 0.66));
  }
}

@media (max-width: 1024px) {
  .carousel-card {
    min-width: calc(50% - calc(var(--carousel-gap) / 2));
  }
}

@media (max-width: 768px) {
  .carousel-header-card {
    padding: 2rem 1.5rem;
  }

  .carousel-header-card h2 {
    font-size: 1.6rem;
  }

  .carousel-container {
    padding: 0 50px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-card {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .carousel-header-card {
    padding: 1.5rem 1rem;
  }

  .carousel-header-card h2 {
    font-size: 1.4rem;
  }

  .carousel-container {
    padding: 0 45px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
  }

  .carousel-btn i {
    font-size: 1rem;
  }
}
