/**
 * MobileCarousel - Companion CSS
 * 
 * Core carousel structure styles for the MobileCarousel component.
 * Minimal, layout-focused styles that work with any theme.
 * 
 * @version 1.0.0
 * @author Quinn Kacic-Midson
 */

/* ========================================
   CAROUSEL STRUCTURE
   ======================================== */

.mobile-carousel-wrapper,
.mobile-slideshow-wrapper {
  width: 100%;
  position: relative;
}

.mobile-carousel-container,
.mobile-slideshow-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Mobile: edge-to-edge breakout */
@media (max-width: 767px) {
  .mobile-carousel-container,
  .mobile-slideshow-container {
    width: 100vw;
  }
}

.mobile-carousel-track,
.mobile-slideshow-track {
  display: flex;
  will-change: transform;
}

.mobile-carousel-slide,
.mobile-slide {
  width: 100%;
  flex-shrink: 0;
  position: relative;
}

/* Mobile: full viewport width per slide */
@media (max-width: 767px) {
  .mobile-carousel-slide,
  .mobile-slide {
    width: 100vw;
  }
}

.mobile-carousel-slide img,
.mobile-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   DOT NAVIGATION
   ======================================== */

.carousel-dots,
.slideshow-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  margin-top: 0;
}

.carousel-dot,
.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #D8D8D8;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active,
.slideshow-dot.active {
  background-color: var(--carousel-dot-active-color, #333);
  transform: scale(1.2);
}

.carousel-dot:hover,
.slideshow-dot:hover {
  background-color: #999;
}

.carousel-dot.active:hover,
.slideshow-dot.active:hover {
  background-color: var(--carousel-dot-active-color, #333);
}

/* ========================================
   TOUCH INTERACTION STATES
   ======================================== */

/* Prevent text selection during swipe */
.mobile-carousel-wrapper,
.mobile-slideshow-wrapper {
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

/* Smooth touch scrolling on slides */
.mobile-carousel-slide,
.mobile-slide {
  touch-action: pan-y pinch-zoom;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus styles for dots */
.carousel-dot:focus,
.slideshow-dot:focus {
  outline: 2px solid var(--carousel-dot-active-color, #333);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .mobile-carousel-track,
  .mobile-slideshow-track {
    transition: none;
  }
  
  .carousel-dot,
  .slideshow-dot {
    transition: none;
  }
}
