/* ============================================
   SLIDESHOW CONTENT BLOCK STYLES
   ============================================ */

/* Slideshow Container */
.beanie-slideshow {
  margin: 2rem 0;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(155, 89, 182, 0.15),
              0 3px 10px rgba(233, 30, 99, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.9);
  position: relative;
}

/* Aspect Ratio Containers */
.beanie-slideshow.ratio-16-9 .carousel-inner {
  aspect-ratio: 16 / 9;
}

.beanie-slideshow.ratio-1-1 .carousel-inner {
  aspect-ratio: 1 / 1;
}

/* Carousel Inner */
.beanie-slideshow .carousel-inner {
  background: #000;
  position: relative;
}

/* Carousel Items */
.beanie-slideshow .carousel-item {
  height: 100%;
  position: relative;
}

/* Image Slides */
.slide-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Video Slides */
.slide-video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}

.slide-video-wrapper iframe,
.slide-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Carousel Controls */
.beanie-slideshow .carousel-control-prev,
.beanie-slideshow .carousel-control-next {
  width: 60px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.beanie-slideshow:hover .carousel-control-prev,
.beanie-slideshow:hover .carousel-control-next {
  opacity: 1;
}

.beanie-slideshow .carousel-control-prev-icon,
.beanie-slideshow .carousel-control-next-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(155, 89, 182, 0.8);
  border-radius: 50%;
  padding: 8px;
  transition: all 0.3s ease;
}

.beanie-slideshow .carousel-control-prev:hover .carousel-control-prev-icon,
.beanie-slideshow .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(233, 30, 99, 0.9);
  transform: scale(1.1);
}

/* Carousel Indicators */
.beanie-slideshow .carousel-indicators {
  margin-bottom: 1rem;
}

.beanie-slideshow .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(155, 89, 182, 0.5);
  transition: all 0.3s ease;
}

.beanie-slideshow .carousel-indicators .active {
  background-color: #9b59b6;
  border-color: #9b59b6;
  transform: scale(1.2);
}

/* Captions */
.beanie-slideshow .carousel-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 1.5rem 1.5rem;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.beanie-slideshow .carousel-caption h3,
.beanie-slideshow .carousel-caption h4,
.beanie-slideshow .carousel-caption h5 {
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.beanie-slideshow .carousel-caption p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Fade Transition (Optional) */
.beanie-slideshow.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.beanie-slideshow.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Loading State */
.beanie-slideshow .carousel-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(155, 89, 182, 0.3);
  border-top-color: #9b59b6;
  border-radius: 50%;
  animation: slideshow-spinner 1s linear infinite;
  z-index: -1;
}

.beanie-slideshow .carousel-item.active::before {
  display: none;
}

@keyframes slideshow-spinner {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .beanie-slideshow {
    margin: 1.5rem 0;
    border-radius: 1rem;
  }
  
  .beanie-slideshow .carousel-control-prev,
  .beanie-slideshow .carousel-control-next {
    width: 50px;
  }
  
  .beanie-slideshow .carousel-control-prev-icon,
  .beanie-slideshow .carousel-control-next-icon {
    width: 32px;
    height: 32px;
  }
  
  .beanie-slideshow .carousel-caption {
    padding: 1.5rem 1rem 1rem;
    font-size: 0.9rem;
  }
  
  .beanie-slideshow .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
  }
}

/* Touch-friendly on mobile */
@media (max-width: 768px) {
  .beanie-slideshow .carousel-control-prev,
  .beanie-slideshow .carousel-control-next {
    opacity: 0.7;
  }
}
