/* ============================================
   EMBLA CAROUSEL STYLES - FESTICS
   Responsive carousel for mobile, tablet, and desktop
   ============================================ */

/* Hero Carousel Container (shown in hero when countdown is finished) */
.hero-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-carousel-title {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-carousel-title h2 {
    font-family: 'Glitten', serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: #F4B41A;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-carousel-title p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Embla Container */
.embla {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.embla-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

.embla__viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

.embla__container {
    display: flex;
    touch-action: pan-y;
    margin-left: calc(var(--spacing-md, 2rem) * -1);
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
    padding-left: var(--spacing-md, 2rem);
    position: relative;
}

/* Parallax Effect */
.embla__parallax {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.embla__parallax:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 
                0 0 0 3px rgba(244, 180, 26, 0.3);
}

.embla__parallax__layer {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.embla__slide__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.embla__slide__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    border-radius: 0 0 12px 12px;
}

.embla__slide__caption h3 {
    font-family: 'Glitten', serif;
    font-size: 2rem;
    color: #F4B41A;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Navigation Buttons */
.embla__prev,
.embla__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #F4B41A 0%, #E5A617 100%);
    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 4px 20px rgba(244, 180, 26, 0.4);
    color: #000;
}

.embla__prev {
    left: -25px;
}

.embla__next {
    right: -25px;
}

.embla__prev:hover:not([disabled]),
.embla__next:hover:not([disabled]) {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(244, 180, 26, 0.6);
}

.embla__prev:active:not([disabled]),
.embla__next:active:not([disabled]) {
    transform: translateY(-50%) scale(0.95);
}

.embla__prev[disabled],
.embla__next[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

.embla__prev i,
.embla__next i {
    font-size: 1.3rem;
    font-weight: 900;
}

/* Dot Navigation */
.embla__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.embla__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.embla__dot:hover {
    background: rgba(244, 180, 26, 0.5);
    transform: scale(1.2);
}

.embla__dot--selected {
    background: linear-gradient(135deg, #F4B41A 0%, #E5A617 100%);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(244, 180, 26, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    .embla__slide {
        flex: 0 0 70%;
    }

    .embla__slide__img {
        height: 450px;
    }

    .embla__prev {
        left: -10px;
    }

    .embla__next {
        right: -10px;
    }

    .embla__prev,
    .embla__next {
        width: 56px;
        height: 56px;
    }

    .embla__prev i,
    .embla__next i {
        font-size: 1.4rem;
    }

    .embla__slide__caption h3 {
        font-size: 2.2rem;
    }

    .embla__dot {
        width: 12px;
        height: 12px;
    }

    .embla__dot--selected {
        width: 32px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .hero-carousel-container {
        padding: 2.5rem 0;
    }

    .embla__slide {
        flex: 0 0 55%;
    }

    .embla__slide__img {
        height: 500px;
    }

    .embla__prev,
    .embla__next {
        width: 60px;
        height: 60px;
    }

    .embla__prev {
        left: 5px;
    }

    .embla__next {
        right: 5px;
    }

    .embla__prev i,
    .embla__next i {
        font-size: 1.6rem;
    }

    .embla__slide__caption {
        padding: 2.5rem;
    }

    .embla__slide__caption h3 {
        font-size: 2.5rem;
    }

    .embla__dots {
        margin-top: 2rem;
        gap: 12px;
    }

    .embla__dot {
        width: 12px;
        height: 12px;
    }

    .embla__dot--selected {
        width: 36px;
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .embla__slide {
        flex: 0 0 50%;
    }

    .embla__slide__img {
        height: 550px;
    }

    .embla__prev {
        left: 15px;
    }

    .embla__next {
        right: 15px;
    }
}

/* Mobile Small (max 480px) */
@media (max-width: 480px) {
    .hero-carousel-container {
        padding: 1.5rem 0;
    }

    .embla-hero {
        padding: 0.5rem 0;
    }

    .embla__container {
        margin-left: calc(var(--spacing-sm, 1rem) * -1);
    }

    .embla__slide {
        padding-left: var(--spacing-sm, 1rem);
    }

    .embla__slide__img {
        height: 350px;
    }

    .embla__prev,
    .embla__next {
        width: 44px;
        height: 44px;
    }

    .embla__prev {
        left: -22px;
    }

    .embla__next {
        right: -22px;
    }

    .embla__prev i,
    .embla__next i {
        font-size: 1.1rem;
    }

    .embla__slide__caption {
        padding: 1.5rem;
    }

    .embla__slide__caption h3 {
        font-size: 1.5rem;
    }

    .embla__dots {
        gap: 8px;
        margin-top: 1rem;
    }

    .embla__dot {
        width: 8px;
        height: 8px;
    }

    .embla__dot--selected {
        width: 22px;
    }

    .hero-carousel-title h2 {
        font-size: 1.5rem;
    }

    .hero-carousel-title p {
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .embla__parallax,
    .embla__prev,
    .embla__next,
    .embla__dot {
        transition: none;
    }

    .embla__parallax:hover {
        transform: none;
    }
}

/* Loading State */
.embla.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Focus Styles for Accessibility */
.embla__prev:focus-visible,
.embla__next:focus-visible,
.embla__dot:focus-visible {
    outline: 3px solid #F4B41A;
    outline-offset: 4px;
}
