/**
 * Hero Slider Styles
 * MyTravel - Effective Full-Screen Slider
 */

/* Slider Container */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

/* Slides */
.slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide Background */
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.slide.active .slide-bg img {
    transform: scale(1.1);
}

/* Overlay */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.85) 0%,
            rgba(30, 58, 95, 0.6) 50%,
            rgba(45, 90, 135, 0.7) 100%);
}

/* Slide Content */
.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    z-index: 3;
}

.slide-inner {
    text-align: center;
    max-width: 1200px;
    color: white;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Slide Badge */
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: white;
}

.slide-badge i {
    color: #fbbf24;
}

/* Slide Title */
.slide-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.slide-title span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slide Subtitle */
.slide-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Slide Actions */
.slide-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-actions .btn {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 50px;
}

.slide-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.slide-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.slide-actions .btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    color: white;
}

.slide-actions .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.slide-actions .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.slide-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slider-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #f59e0b;
    transform: scale(1.2);
}

.slider-dot.active::after {
    border-color: rgba(245, 158, 11, 0.5);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    width: 0%;
    transition: width 0.1s linear;
}

/* Thumbnail Navigation */
.slider-thumbs {
    position: absolute;
    bottom: 100px;
    right: 40px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-thumb.active,
.slider-thumb:hover {
    opacity: 1;
    border-color: #f59e0b;
    transform: translateY(-5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .slider-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .slider-prev {
        left: 15px;
    }

    .slider-next {
        right: 15px;
    }

    .slider-thumbs {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-slider {
        min-height: 100vh;
        /* Use full viewport height */
    }

    .slide-bg img {
        /* Ensure image covers fully */
        height: 100vh;
    }

    .slide-content {
        padding: 80px 20px;
        align-items: center;
        /* Center content vertically */
    }

    .slide-inner {
        transform: translateY(0);
        width: 100%;
        margin-top: -40px;
        /* Slight offset up for optical balance */
    }

    .slide-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(8px);
    }

    .slide-title {
        font-size: 2.25rem;
        /* Fixed readable size */
        line-height: 1.2;
        margin-bottom: 16px;
        padding: 0;
        white-space: normal;
        /* Prevent forcing single lines */
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }

    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .slide-actions {
        gap: 12px;
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .slide-actions .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .slider-dots {
        bottom: 30px;
        gap: 12px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.5);
    }

    .slider-dot.active {
        width: 12px;
        height: 12px;
        background: #f59e0b;
    }

    .slider-nav {
        display: none;
        /* Hide arrows on mobile for cleaner look */
    }
}