/* ==========================================================================
   Hyundai Dynamic Slider - Frontend Styles
   ========================================================================== */

.hyundai-slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hyundai-slider-container {
        height: 350px;
    }
}

.hyundai-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hyundai-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.hyundai-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Gradient overlay for readability */
.hyundai-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 26, 57, 0.85) 0%, rgba(0, 26, 57, 0.2) 50%, rgba(0, 26, 57, 0) 100%);
    pointer-events: none;
    z-index: 3;
}

.hyundai-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    z-index: 4;
}

/* Caption styling */
.hyundai-slide-caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: #ffffff;
    max-width: 700px;
    z-index: 5;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.6s ease-in-out 0.2s;
}

.hyundai-slide.active .hyundai-slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.hyundai-slide-tag {
    display: inline-block;
    background-color: #00AAD2;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hyundai-slide-title {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hyundai-slide-caption {
        bottom: 25px;
        left: 25px;
        right: 25px;
    }
    .hyundai-slide-title {
        font-size: 20px;
    }
}

.hyundai-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hyundai-slide-link:hover .hyundai-slide-btn {
    background-color: #ffffff;
    color: #002C5F;
}

/* Arrows */
.hyundai-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 44, 95, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hyundai-slider-arrow:hover {
    background-color: #002C5F;
    border-color: #00AAD2;
    box-shadow: 0 0 10px rgba(0, 170, 210, 0.4);
}

.hyundai-slider-arrow.prev {
    left: 20px;
}

.hyundai-slider-arrow.next {
    right: 20px;
}

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

.hyundai-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hyundai-dot.active, .hyundai-dot:hover {
    background-color: #00AAD2;
    transform: scale(1.2);
}

/* Single image adjustments */
.hyundai-slider-container.single-image .hyundai-slider-arrow,
.hyundai-slider-container.single-image .hyundai-slider-dots {
    display: none;
}
