/**
 * Hero Slider Frontend Styles
 */

/* Slider container */
.hero-slider,
.vremeplov-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 355px;
    overflow: hidden;
}

@media(max-width: 991.98px) {
    .hero-slider-wrapper {
        height: 400px;
    }
}

@media(max-width: 767.98px) {
    .hero-slider-wrapper {
        height: auto;
        min-height: 300px;
    }
}

/* Individual slides */
.hero-slide,
.vremeplov-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 50px 150px 100px;
    text-align: center;
    display: none;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Light overlay for text readability */
.hero-slide::before,
.vremeplov-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(25, 37, 49, 0.4) 0%, rgba(25, 37, 49, 0.2) 100%);
    z-index: 1;
    border-radius: 5px;
}

.hero-slide .slide-heading,
.hero-slide .slide-text,
.hero-slide .slide-btn,
.vremeplov-slide .slide-heading,
.vremeplov-slide .slide-text,
.vremeplov-slide .slide-btn {
    position: relative;
    z-index: 10;
}

/* Active slide */
.hero-slide.active,
.hero-slide.slick-active,
.vremeplov-slide.active,
.vremeplov-slide.slick-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    z-index: 2;
}

/* Slide content */
.slide-heading {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px #000;
    margin-bottom: 20px;
    margin-top: 0;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.2;
}

.slide-text {
    font-size: 16px;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.slide-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #e63946;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slide-btn:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Navigation controls */
.hero-slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-slider-control:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-slider-control.prev {
    left: 20px;
}

.hero-slider-control.next {
    right: 20px;
}

.hero-slider-control svg {
    width: 20px;
    height: 20px;
    fill: #192531;
}

/* Pagination dots */
.slider-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover,
.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ⭐ SLIDE ANIMATIONS */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Right to Left (Next button - default) */
.hero-slider-rtl .hero-slide.active,
.hero-slider-rtl .vremeplov-slide.active {
    animation: slideInFromRight 0.6s ease-out forwards;
}

.hero-slider-rtl .hero-slide.slide-out,
.hero-slider-rtl .vremeplov-slide.slide-out {
    animation: slideOutToLeft 0.6s ease-out forwards;
}

/* Left to Right (Prev button) */
.hero-slider-ltr .hero-slide.active,
.hero-slider-ltr .vremeplov-slide.active {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.hero-slider-ltr .hero-slide.slide-out,
.hero-slider-ltr .vremeplov-slide.slide-out {
    animation: slideOutToRight 0.6s ease-out forwards;
}

/* Responsive */
@media(max-width: 1399.98px) {
    .hero-slide,
    .vremeplov-slide {
        padding: 30px 80px 100px;
    }
}

@media(max-width: 991.98px) {
    .hero-slide,
    .vremeplov-slide {
        padding: 30px 50px 100px;
    }
    
    .slide-heading {
        font-size: 20px;
    }
    
    .slide-text {
        font-size: 14px;
    }
}

@media(max-width: 767.98px) {
    .hero-slide,
    .vremeplov-slide {
        padding: 30px 20px 80px;
    }
    
    .hero-slider-control {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-control.prev {
        left: 10px;
    }
    
    .hero-slider-control.next {
        right: 10px;
    }
    
    .slider-pagination {
        bottom: 10px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
}
