/**
 * ESTILOS: Banner Slider
 * 
 * Componente de carrossel de imagens com transição horizontal simples
 * e suporte para desktop, mouse e touch
 */

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */

.banner-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: transparent;
  margin: 0;
  padding: 0;
  z-index: 1;
  /* Compensar navbar fixed: empurra banner para baixo da navbar */
  margin-top: 78px;
}

/* Desktop: ajuste fino para altura real da navbar */
@media (min-width: 769px) {
  .banner-slider-wrapper {
    margin-top: 78px;
  }
}

/* Mobile: navbar menor */
@media (max-width: 768px) {
  .banner-slider-wrapper {
    margin-top: 62px;
  }
}

.banner-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 653; /* Proporção exata dos banners (1920×653px) */
  overflow: hidden;
  background: transparent;
}

.banner-slider-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  will-change: transform;
  /* GPU acceleration */
  transform: translate3d(0, 0, 0);
  background: transparent;
}

/* ========================================
   SLIDES DE IMAGEM
   ======================================== */

.banner-slider-track .banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  overflow: hidden;
  background: transparent;
}

.banner-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mostra a imagem inteira sem cortar */
  object-position: center;
  will-change: transform;
  /* GPU acceleration */
  transform: translate3d(0, 0, 0);
}

/* ========================================
   ARRASTAR/DRAG (Feedback Visual)
   ======================================== */

.banner-slider-track.dragging {
  will-change: transform;
}

.banner-slider-track.dragging .banner-slide img {
  will-change: transform;
}

/* ========================================
   SETAS DE NAVEGAÇÃO
   ======================================== */

.banner-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 24px;
  color: #000 !important;
  font-weight: bold;
}

.banner-slider-arrow::before {
  color: #000 !important;
}

.banner-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.banner-slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.banner-slider-arrow-left {
  left: 20px;
}

.banner-slider-arrow-left::before {
  content: '‹';
  font-size: 32px;
}

.banner-slider-arrow-right {
  right: 20px;
}

.banner-slider-arrow-right::before {
  content: '›';
  font-size: 32px;
}

/* ========================================
   INDICADORES (Dots)
   ======================================== */

.banner-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.banner-slider-dot.active {
  background: rgba(255, 255, 255, 1);
  width: 30px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 1);
}

/* ========================================
   RESPONSIVO (MOBILE)
   ======================================== */

@media (max-width: 768px) {
  .banner-slider-container {
    aspect-ratio: 1920 / 653;
    min-height: 180px;
  }

  .banner-slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .banner-slider-arrow-left {
    left: 10px;
  }

  .banner-slider-arrow-right {
    right: 10px;
  }

  .banner-slider-dots {
    bottom: 15px;
    gap: 8px;
  }

  .banner-slider-dot {
    width: 10px;
    height: 10px;
  }

  .banner-slider-dot.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .banner-slider-container {
    aspect-ratio: 1920 / 653;
    min-height: 120px;
  }

  .banner-slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .banner-slider-arrow::before {
    font-size: 22px;
  }

  .banner-slider-arrow-left {
    left: 5px;
  }

  .banner-slider-arrow-right {
    right: 5px;
  }

  .banner-slider-dots {
    bottom: 10px;
    gap: 6px;
  }

  .banner-slider-dot {
    width: 8px;
    height: 8px;
  }

  .banner-slider-dot.active {
    width: 20px;
  }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

.banner-slider-arrow:focus,
.banner-slider-dot:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* ========================================
   MODO ESCURO (Prefers Reduced Motion)
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .banner-slider-arrow,
  .banner-slider-dot {
    transition: none;
  }
}
