/* Frontend Slider Styles for Antwerpen Tango Festival */

.atf-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Height Modes */
.atf-slider-wrapper.atf-height-auto .atf-slider {
    aspect-ratio: 16 / 9;
}

.atf-slider-wrapper.atf-height-full .atf-slider {
    height: 100vh;
    max-height: 900px;
}

.atf-slider-wrapper.atf-height-custom .atf-slider {
    height: 600px;
}

.atf-slider {
    position: relative;
    width: 100%;
}

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

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

.atf-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

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

/* Caption Overlay with Belgian/Antwerp styling */
.atf-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(0,0,0,0.95) 0%, 
        rgba(0,0,0,0.7) 50%, 
        rgba(0,0,0,0.3) 80%, 
        transparent 100%);
    padding: 80px 60px 50px;
    color: #fff;
    z-index: 3;
}

.atf-caption-content {
    max-width: 1200px;
    margin: 0 auto;
}

.atf-slide-title {
    margin: 0 0 15px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    color: #fff;
    animation: fadeInUp 0.8s ease-out;
}

.atf-slide-text {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Arrows - Belgian Red theme */
.atf-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(196, 18, 48, 0.9);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.atf-arrow:hover {
    background: rgba(196, 18, 48, 1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.atf-arrow:focus {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.atf-arrow-prev {
    left: 25px;
}

.atf-arrow-next {
    right: 25px;
}

.atf-arrow svg {
    color: #fff;
    width: 28px;
    height: 28px;
}

/* Navigation Dots - Belgian styling */
.atf-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.atf-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.atf-dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.25);
    border-color: rgba(196, 18, 48, 1);
}

.atf-dot:focus {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.atf-dot.active {
    background: rgba(196, 18, 48, 1);
    border-color: rgba(196, 18, 48, 1);
    transform: scale(1.35);
}

/* Slide Counter */
.atf-slide-counter {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.atf-current-slide {
    color: rgba(196, 18, 48, 1);
    font-size: 16px;
}

/* Loading State */
.atf-slider-wrapper.loading {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atf-slider-wrapper.loading::after {
    content: "";
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.2);
    border-top-color: rgba(196, 18, 48, 1);
    border-radius: 50%;
    animation: atf-spin 1s linear infinite;
}

@keyframes atf-spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .atf-slide-caption {
        padding: 60px 40px 40px;
    }
    
    .atf-slide-title {
        font-size: 2.5rem;
    }
    
    .atf-slide-text {
        font-size: 1.15rem;
    }
    
    .atf-arrow {
        width: 48px;
        height: 48px;
    }
    
    .atf-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    .atf-arrow-prev {
        left: 20px;
    }
    
    .atf-arrow-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .atf-slider-wrapper.atf-height-auto .atf-slider {
        aspect-ratio: 4 / 3;
    }
    
    .atf-slider-wrapper.atf-height-full .atf-slider,
    .atf-slider-wrapper.atf-height-custom .atf-slider {
        height: 70vh;
        max-height: 600px;
    }
    
    .atf-slide-caption {
        padding: 40px 25px 30px;
    }
    
    .atf-slide-title {
        font-size: 1.8rem;
    }
    
    .atf-slide-text {
        font-size: 1rem;
    }
    
    .atf-arrow {
        width: 42px;
        height: 42px;
    }
    
    .atf-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .atf-arrow-prev {
        left: 15px;
    }
    
    .atf-arrow-next {
        right: 15px;
    }
    
    .atf-dot {
        width: 12px;
        height: 12px;
    }
    
    .atf-dots {
        bottom: 25px;
        gap: 10px;
    }
    
    .atf-slide-counter {
        top: 20px;
        right: 20px;
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .atf-current-slide {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .atf-slider-wrapper.atf-height-auto .atf-slider {
        aspect-ratio: 1 / 1;
    }
    
    .atf-slider-wrapper.atf-height-full .atf-slider,
    .atf-slider-wrapper.atf-height-custom .atf-slider {
        height: 60vh;
        max-height: 500px;
    }
    
    .atf-slide-caption {
        padding: 30px 20px 25px;
    }
    
    .atf-slide-title {
        font-size: 1.5rem;
    }
    
    .atf-slide-text {
        font-size: 0.9rem;
    }
    
    .atf-arrow {
        width: 38px;
        height: 38px;
    }
    
    .atf-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .atf-arrow-prev {
        left: 12px;
    }
    
    .atf-arrow-next {
        right: 12px;
    }
    
    .atf-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .atf-dot {
        width: 10px;
        height: 10px;
    }
    
    .atf-slide-counter {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Print Styles */
@media print {
    .atf-arrow,
    .atf-dots,
    .atf-slide-counter {
        display: none;
    }
    
    .atf-slide {
        position: relative !important;
        opacity: 1 !important;
        page-break-inside: avoid;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .atf-arrow {
        background: #000;
        border: 2px solid #fff;
    }
    
    .atf-dot {
        border-width: 3px;
    }
    
    .atf-slide-caption {
        background: rgba(0,0,0,0.95);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .atf-slide,
    .atf-arrow,
    .atf-dot {
        transition: none !important;
        animation: none !important;
    }
    
    .atf-slide-title,
    .atf-slide-text {
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .atf-slider-wrapper {
        box-shadow: 0 4px 20px rgba(255,255,255,0.1);
    }
}
