/**
 * EB Hero Slider Widget Styles
 *
 * @package EB_Global_Widgets
 */

.eb-hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.eb-hero-slider--fullscreen {
    height: 100vh;
}

.eb-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

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

.eb-hero-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: ebKenBurns 8s ease-in-out forwards;
}

.eb-hero-slide.active .eb-hero-slide__bg {
    animation: ebKenBurns 8s ease-in-out forwards;
}

.eb-hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.eb-hero-slide__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.eb-hero-slide__heading {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: #1E1B4B;
    font-weight: 600;
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.eb-hero-slide__desc {
    color: #4B5563;
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 0 32px;
}

.eb-hero-slide__content[style*="align-items: center"] .eb-hero-slide__desc {
    margin-left: auto;
    margin-right: auto;
}

.eb-hero-slide__btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: #b09360;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: 2px solid #b09360;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.eb-hero-slide__btn:hover {
    background-color: #9A7D4E;
    border-color: #9A7D4E;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(176, 147, 96, 0.3);
}

/* Navigation Dots */
.eb-hero-slider__dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.eb-hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #1E1B4B;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.eb-hero-slider__dot:hover,
.eb-hero-slider__dot.active {
    background-color: #B09360;
    border-color: #B09360;
}

/* Arrow Navigation */
.eb-hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 27, 75, 0.1);
    border-radius: 50%;
    color: #1E1B4B;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
}

.eb-hero-slider__arrow:hover {
    background: #B09360;
    color: #ffffff;
    border-color: #B09360;
    transform: translateY(-50%) scale(1.1);
}

.eb-hero-slider__arrow--prev {
    left: 24px;
}

.eb-hero-slider__arrow--next {
    right: 24px;
}

.eb-hero-slider__arrow svg {
    width: 20px;
    height: 20px;
}

/* Progress Lines Navigation */
.eb-hero-slider__lines {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    width: auto;
    max-width: 300px;
}

.eb-hero-slider__line {
    flex: 1;
    height: 3px;
    background: rgba(30, 27, 75, 0.2);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-width: 60px;
}

.eb-hero-slider__line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #B09360;
    border-radius: 2px;
}

.eb-hero-slider__line.active .eb-hero-slider__line-fill {
    width: 100%;
    animation: ebLineFill linear forwards;
}

@keyframes ebLineFill {
    from { width: 0; }
    to { width: 100%; }
}

/* Ken Burns Animation */
@keyframes ebKenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .eb-hero-slide__content {
        padding: 30px 24px;
    }

    .eb-hero-slider__dots {
        bottom: 20px;
    }
}
