/* ============================================
   Hero Carousel Styles
   קרוסלת Hero עם החלפה אוטומטית
   ============================================ */

/* Carousel Container */
.hero-carousel {
    position: relative;
}

.hero-carousel .hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.hero-carousel .hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 0;
}

.hero-carousel .hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slide Content */
.hero-carousel .hero-slide-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

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

.hero-carousel-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex: 0 0 auto;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    line-height: 0;
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.hero-carousel-dot.active {
    background: #c9a227;
    border-color: #c9a227;
    transform: scale(1.2);
}

/* Progress Bar for each dot */
.hero-carousel-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: transparent;
    border-radius: 50%;
    transition: none;
}

.hero-carousel-dot.active::after {
    animation: dotProgress 6s linear forwards;
}

@keyframes dotProgress {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(201, 162, 39, 0);
    }
}

/* Carousel Navigation Arrows */
.hero-carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.hero-carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0;
}

.hero-carousel:hover .hero-carousel-arrow {
    opacity: 1;
}

.hero-carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero-carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Pause indicator */
.hero-carousel.paused .hero-carousel-dot.active::after {
    animation-play-state: paused;
}

/* Slide-specific backgrounds (optional variations) */
.hero-slide[data-slide="1"] {
    /* Default background from hero-v2 */
}

.hero-slide[data-slide="2"] {
    background:
        linear-gradient(180deg, rgba(10, 22, 40, 0.9) 0%, rgba(45, 80, 100, 0.85) 100%),
        url('/src/images/hero_negev_panorama.png') center center / cover no-repeat;
}

.hero-slide[data-slide="3"] {
    background:
        linear-gradient(180deg, rgba(20, 35, 55, 0.9) 0%, rgba(30, 58, 95, 0.85) 100%),
        url('/src/images/hero_negev_panorama.png') center center / cover no-repeat;
}

.hero-slide[data-slide="4"] {
    background:
        linear-gradient(180deg, rgba(15, 30, 50, 0.9) 0%, rgba(40, 70, 100, 0.85) 100%),
        url('/src/images/hero_negev_panorama.png') center center / cover no-repeat;
}

/* Animated entrance for slide content */
.hero-carousel .hero-slide .hero-slide-content>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-carousel .hero-slide.active .hero-slide-content>* {
    opacity: 1;
    transform: translateY(0);
}

.hero-carousel .hero-slide.active .hero-slide-content>*:nth-child(1) {
    transition-delay: 0.1s;
}

.hero-carousel .hero-slide.active .hero-slide-content>*:nth-child(2) {
    transition-delay: 0.2s;
}

.hero-carousel .hero-slide.active .hero-slide-content>*:nth-child(3) {
    transition-delay: 0.3s;
}

.hero-carousel .hero-slide.active .hero-slide-content>*:nth-child(4) {
    transition-delay: 0.4s;
}

.hero-carousel .hero-slide.active .hero-slide-content>*:nth-child(5) {
    transition-delay: 0.5s;
}

.hero-carousel .hero-slide.active .hero-slide-content>*:nth-child(6) {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel .hero-slide .hero-badge {
        display: none;
    }

    .hero-carousel .hero-slide-content {
        padding-top: 1.25rem;
        padding-bottom: 64px;
    }

    html[dir="rtl"] .hero-v2.hero-carousel .hero-slide-content {
        padding-top: 3.5rem;
    }

    .hero-carousel-dots {
        bottom: 14px;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(10, 22, 40, 0.55);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .hero-carousel-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
        border-width: 1px;
        transform: none !important;
        box-shadow: none;
    }

    .hero-carousel-dot::after {
        display: none;
    }

    .hero-carousel-dot.active {
        box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
    }

    .hero-carousel-arrows {
        display: none;
    }
}
