/* ===============================================
   SISTEMA DE BANNERS - CARROSSEL
   =============================================== */

.banner-container {
  width: 100%;
  margin: 0 0 24px 0;
  position: relative;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #1A1A1A 0%, #161616 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  user-select: none;
  touch-action: pan-y; /* Permite scroll vertical mas bloqueia horizontal */
  display: none;
}

.banner-wrapper {
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.banner-slide:hover .banner-image {
  transform: scale(1.02);
}

/* Overlay sutil para melhor contraste */
.banner-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
  border-radius: 20px;
  pointer-events: none;
}

/* Indicadores (bolinhas) */
.banner-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-dot.active {
  background: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

/* Loading state */
.banner-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(145deg, #1A1A1A 0%, #161616 100%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.banner-loading::before {
  content: '🎨';
  margin-right: 8px;
  animation: pulse 2s infinite;
}

/* Efeito de pulse para loading */
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Responsividade */
@media (max-width: 480px) {
  .banner-container {
    margin: 0 auto 20px auto;
    height: 160px;
  }
  
  .banner-indicators {
    bottom: 10px;
  }
  
  .banner-dot {
    width: 6px;
    height: 6px;
  }
}

/* Estados de interação móvel */
.banner-track.dragging {
  transition: none;
}

.banner-slide.no-click {
  pointer-events: none;
}

/* Animação de fade in quando carregado */
.banner-container.loaded {
  display: block;
  animation: bannerFadeIn 0.6s ease-out;
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback quando não há banners */
.no-banners {
  display: none;
}

/* Esconder container até carregar */
.banner-container:not(.loaded) .banner-wrapper {
  opacity: 0;
}

.banner-container.loaded .banner-wrapper {
  opacity: 1;
  transition: opacity 0.3s ease;
}