/**
 * Candelea Slides — Frontend Carousel Styles
 */

/* ========================= */
/* Main container             */
/* ========================= */
.candelea-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    --candelea-height: 500px;
}

/* ========================= */
/* Embla viewport & container */
/* ========================= */
.candelea-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.candelea-carousel__container {
    display: flex;
    touch-action: pan-y pinch-zoom;
}

/* ========================= */
/* Individual slide           */
/* ========================= */
.candelea-carousel__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    height: var(--candelea-height);
    overflow: hidden;
}

.candelea-carousel__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.candelea-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================= */
/* Text overlay               */
/* ========================= */
.candelea-carousel__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 2rem;
    pointer-events: none;
}

.candelea-carousel__content {
    max-width: 600px;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    color: #fff;
    pointer-events: auto;
}

.candelea-carousel__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.candelea-carousel__description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* ====================================== */
/* Text position variants (3x3 grid)      */
/* ====================================== */

/* Top row */
.candelea-carousel__text-top-left {
    align-items: flex-start;
    justify-content: flex-start;
}
.candelea-carousel__text-top-center {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}
.candelea-carousel__text-top-right {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: right;
}

/* Center row */
.candelea-carousel__text-center-left {
    align-items: center;
    justify-content: flex-start;
}
.candelea-carousel__text-center {
    align-items: center;
    justify-content: center;
    text-align: center;
}
.candelea-carousel__text-center-right {
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

/* Bottom row */
.candelea-carousel__text-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}
.candelea-carousel__text-bottom-center {
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}
.candelea-carousel__text-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

/* ========================= */
/* Navigation arrows          */
/* ========================= */
.candelea-carousel__prev,
.candelea-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.candelea-carousel__prev:hover,
.candelea-carousel__next:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.candelea-carousel__prev:disabled,
.candelea-carousel__next:disabled {
    opacity: 0.3;
    cursor: default;
}

.candelea-carousel__prev {
    left: 1rem;
}

.candelea-carousel__next {
    right: 1rem;
}

/* ========================= */
/* Dot indicators             */
/* ========================= */
.candelea-carousel__dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 999px;
}

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

.candelea-carousel__dot:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.4);
}

.candelea-carousel__dot--active {
    background: #fff;
    border-color: #fff;
}

/* ========================= */
/* Responsive                 */
/* ========================= */
@media (max-width: 768px) {
    .candelea-carousel {
        --candelea-height: 300px;
    }

    .candelea-carousel__overlay {
        padding: 1rem;
    }

    .candelea-carousel__content {
        max-width: 100%;
        padding: 1rem 1.25rem;
    }

    .candelea-carousel__title {
        font-size: 1.25rem;
    }

    .candelea-carousel__description {
        font-size: 0.875rem;
    }

    .candelea-carousel__prev,
    .candelea-carousel__next {
        width: 36px;
        height: 36px;
    }

    .candelea-carousel__prev {
        left: 0.5rem;
    }

    .candelea-carousel__next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .candelea-carousel {
        --candelea-height: 220px;
    }

    .candelea-carousel__title {
        font-size: 1rem;
    }

    .candelea-carousel__description {
        font-size: 0.8rem;
    }
}
