/* ==========================================================================
   Premium Banner Slider (Image Only) Styles
   File: landing-page/components/banner-slider/banner-slider.css
   ========================================================================== */

.banner-slider-section {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 14px;
}

.banner-slider-section.full-bleed {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.banner-slider-viewport {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: var(--surface, #FFFFFF);
  user-select: none;
  cursor: pointer;
}

[data-theme="dark"] .banner-slider-viewport {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Natural aspect ratios that keep banners gorgeous on both mobile and desktop */
.banner-slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9; /* Fit widescreen banners properly without cropping left/right text or items */
}

@media (min-width: 640px) {
  .banner-slides-wrapper {
    aspect-ratio: 21 / 8;
  }
}

@media (min-width: 1024px) {
  .banner-slides-wrapper {
    aspect-ratio: 21 / 8; /* Majestic widescreen desktop cinematic view */
    max-height: 480px;
  }
}

/* Slide Transition */
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Responsive Image & Video Display */
.banner-slide-img,
.banner-slide-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.banner-slide.active .banner-slide-img,
.banner-slide.active .banner-slide-video {
  transform: none;
}

/* Subtle bottom-edge ambient shadow for dot contrast */
.banner-ambient-edge {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Slider Controls: Arrow Buttons */
.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.banner-slider-viewport:hover .banner-nav-btn {
  opacity: 1;
}

@media (max-width: 768px) {
  .banner-nav-btn {
    display: none;
  }
}

.banner-nav-btn:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(1.08);
}

.banner-nav-prev {
  left: 20px;
}

.banner-nav-next {
  right: 20px;
}

/* Pagination: Premium Progress Pill Dots */
.banner-dots-container {
  position: absolute;
  bottom: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 640px) {
  .banner-dots-container {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 14px;
  }
}

.banner-dot-bar {
  position: relative;
  width: 8px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  border: none;
  padding: 0;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.banner-dot-bar.active {
  width: 28px;
  background: rgba(255, 255, 255, 0.4);
}

.banner-dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: #FFFFFF;
  border-radius: 9999px;
}

.banner-dot-bar.active .banner-dot-progress {
  width: 100%;
  transition: width linear;
}
