/**
 * Photo Slider Shortcode Styles
 * Non-Bootstrap HTML/CSS implementation
 * 
 * @package MG LeadBuilder
 * @since 2025.12.10
 */

/* Photo Slider Container */
.mg-photo-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mg-photo-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.mg-photo-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Photo Slides */
.mg-photo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}

.mg-photo-slide.active {
  opacity: 1;
  z-index: 2;
}

.mg-photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation Arrows */
.mg-photo-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  padding: 0;
}

.mg-photo-slider-nav:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.mg-photo-slider-nav:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.mg-photo-slider-nav svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.mg-photo-slider-prev {
  left: 20px;
}

.mg-photo-slider-next {
  right: 20px;
}

/* Pagination Dots */
.mg-photo-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.mg-photo-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
  opacity: 0.7;
}

.mg-photo-slider-dot:hover {
  opacity: 1;
  transform: scale(1.2);
}

.mg-photo-slider-dot.active {
  background-color: #ffffff;
  opacity: 1;
  transform: scale(1.2);
}

.mg-photo-slider-dot:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .mg-photo-slider-nav {
    width: 36px;
    height: 36px;
  }

  .mg-photo-slider-nav svg {
    width: 20px;
    height: 20px;
  }

  .mg-photo-slider-prev {
    left: 10px;
  }

  .mg-photo-slider-next {
    right: 10px;
  }

  .mg-photo-slider-dots {
    bottom: 15px;
  }

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