/* Classima Image Slider Styles */
.classima-image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #000000;
}

/* Retro Style */
.classima-image-slider.retro-style {
    border: 3px solid #2c3e50;
    background: linear-gradient(145deg, #1a1a1a, #2d3436);
}

.classima-image-slider.retro-style .slide-overlay {
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.7), transparent) !important;
}

.classima-image-slider.retro-style .slide-caption {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border: 2px solid #ecf0f1;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modern Style */
.classima-image-slider.modern-style {
    border: 1px solid #e0e0e0;
    background: #ffffff;
}

.classima-image-slider.modern-style .slide-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), transparent) !important;
}

.classima-image-slider.modern-style .slide-caption {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333333 !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Minimal Style */
.classima-image-slider.minimal-style {
    border: none;
    background: transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.classima-image-slider.minimal-style .slide-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), transparent) !important;
}

.classima-image-slider.minimal-style .slide-caption {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    border: none;
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease-in-out;
}

.slide.active .slide-image {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.4), transparent);
    transition: opacity 0.8s ease;
}

.slide-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background: rgba(231, 76, 60, 0.9);
    color: #ffffff;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 200px;
    max-width: 80%;
    transition: all 0.3s ease;
}

.caption-text {
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 4;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Retro Decoration */
.retro-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(255,255,255,0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(255,255,255,0.1) 100%);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Placeholder for Editor */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.no-images {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 16px;
    text-align: center;
    border: 2px dashed #dee2e6;
    padding: 40px 20px;
}

.no-images p {
    margin: 0;
}

/* Loading state */
.classima-image-slider.loading .slide-image {
    filter: blur(5px);
}

.classima-image-slider.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    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); }
}

/* Animation for slide transitions */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .classima-image-slider {
        border-radius: 8px;
    }
    
    .slide-caption {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 14px;
        min-width: 150px;
        border-radius: 20px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        padding: 0 15px;
    }
    
    .nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .retro-decoration {
        background-size: 15px 15px;
    }
}

@media (max-width: 480px) {
    .slide-caption {
        bottom: 15px;
        padding: 10px 15px;
        font-size: 12px;
        min-width: 120px;
        border-radius: 15px;
    }
    
    .slider-nav {
        padding: 0 10px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
}

/* Focus styles for accessibility */
.nav-btn:focus,
.dot:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .classima-image-slider.retro-style {
        border-color: #000000;
    }
    
    .nav-btn {
        border-color: #000000;
    }
    
    .dot {
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: opacity 0.3s ease;
    }
    
    .nav-btn,
    .dot {
        transition: none;
    }
    
    .classima-image-slider.loading::after {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .classima-image-slider.modern-style {
        background: #1a1a1a;
        border-color: #333333;
    }
    
    .classima-image-slider.modern-style .slide-caption {
        background: rgba(0, 0, 0, 0.9) !important;
        color: #ffffff !important;
    }
}

/* Print styles */
@media print {
    .classima-image-slider {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #cccccc;
    }
    
    .slider-nav,
    .slider-dots {
        display: none;
    }
    
    .slide {
        position: relative;
        opacity: 1;
        transform: none;
        break-inside: avoid;
    }
    
    .slide:not(.active) {
        display: none;
    }
}