/* Rolling Banner Component */

.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-bg-primary);
}

.banner__container {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.banner__track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  width: 100%;
  will-change: transform;
}

.banner__track.dragging {
  transition: none;
  cursor: grabbing;
}

.banner__slide {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  user-select: none;
}

.banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Banner Navigation Dots */
.banner__dots {
  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-color: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner__dot--active {
  background-color: rgba(255, 255, 255, 1);
  width: 24px;
  border-radius: 4px;
}

.banner__dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Pause on Hover */
.banner:hover .banner__track {
  animation-play-state: paused;
}

/* Animation for auto-scroll */
@keyframes banner-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive */
@media (max-width: 400px) {
  .banner__container {
    height: 90px;
  }

  .banner__dots {
    bottom: 8px;
    gap: 6px;
  }

  .banner__dot {
    width: 6px;
    height: 6px;
  }

  .banner__dot--active {
    width: 18px;
  }
}