/**
 * Vitalisite FSE - Slider Styles
 * 
 * Styles for Swiper.js image sliders
 * 
 * @package Vitalisite_FSE
 * @since 1.0.0
 */

/* Slider Wrapper */
.vitalisite-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Slider Container */
.vitalisite-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

/* Swiper Wrapper */
.vitalisite-slider .swiper-wrapper {
  display: flex;
  align-items: center;
}

/* Slides */
.vitalisite-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
}

.vitalisite-slider .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

/* Navigation Arrows */
.vitalisite-slider .swiper-button-next,
.vitalisite-slider .swiper-button-prev {
  color: var(--wp--preset--color--bg, #ffffff);
  background-color: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.vitalisite-slider .swiper-button-next:hover,
.vitalisite-slider .swiper-button-prev:hover {
  background-color: var(--wp--preset--color--primary, #0b3d91);
  transform: scale(1.1);
}

.vitalisite-slider .swiper-button-next:focus,
.vitalisite-slider .swiper-button-prev:focus {
  outline: 2px solid var(--wp--preset--color--primary, #0b3d91);
  outline-offset: 2px;
}

.vitalisite-slider .swiper-button-next::after,
.vitalisite-slider .swiper-button-prev::after {
  font-size: 20px;
  font-weight: bold;
}

/* Pagination Dots */
.vitalisite-slider .swiper-pagination {
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
}

.vitalisite-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.vitalisite-slider .swiper-pagination-bullet:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.vitalisite-slider .swiper-pagination-bullet-active {
  background-color: var(--wp--preset--color--primary, #0b3d91);
  width: 32px;
  border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vitalisite-slider .swiper-slide img {
    max-height: 400px;
  }

  .vitalisite-slider .swiper-button-next,
  .vitalisite-slider .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .vitalisite-slider .swiper-button-next::after,
  .vitalisite-slider .swiper-button-prev::after {
    font-size: 16px;
  }

  .vitalisite-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }

  .vitalisite-slider .swiper-pagination-bullet-active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .vitalisite-slider .swiper-slide img {
    max-height: 300px;
  }

  .vitalisite-slider .swiper-button-next,
  .vitalisite-slider .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
}

/* Accessibility - Keyboard Focus */
.vitalisite-slider .swiper-pagination-bullet:focus {
  outline: 2px solid var(--wp--preset--color--primary, #0b3d91);
  outline-offset: 2px;
}

/* Loading State */
.vitalisite-slider:not(.swiper-initialized) {
  opacity: 0.7;
}

.vitalisite-slider.swiper-initialized {
  opacity: 1;
  transition: opacity 0.3s ease;
}
