/* Slideshow Specific Styles */
.slideshow-container {
    position: relative;
    overflow: hidden;
}

.slideshow {
    position: relative;
    width: 100%;
    background: #f8f9fa;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    position: relative;
    opacity: 1;
    z-index: 1;
}

.slide.fade-in {
    opacity: 1;
}

.slide.fade-out {
    opacity: 0;
}

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

/* Slideshow Controls */
.slide-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slide-dot.active {
    background: white;
    border-color: #0D6EFD;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Auto-play indicator */
.slideshow.auto-play .slide-dot.active {
    animation: slideProgress 5s linear infinite;
}

@keyframes slideProgress {
    0% {
        box-shadow: inset 0 0 0 0 #0D6EFD;
    }
    100% {
        box-shadow: inset 0 0 0 6px #0D6EFD;
    }
}

/* Loading state */
.slideshow.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0D6EFD;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Touch/Swipe indicators */
.slideshow.touch-enabled {
    cursor: grab;
}

.slideshow.touch-enabled:active {
    cursor: grabbing;
}

/* Accessibility improvements */
.slide-btn:focus {
    outline: 2px solid #0D6EFD;
    outline-offset: 2px;
}

.slide-dot:focus {
    outline: 2px solid #0D6EFD;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
    }
    
    .slideshow.auto-play .slide-dot.active {
        animation: none;
    }
    
    .slide-btn,
    .slide-dot {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .slide-btn {
        background: white;
        border: 2px solid black;
    }
    
    .slide-dot {
        background: white;
        border: 2px solid black;
    }
    
    .slide-dot.active {
        background: black;
    }
}