/**
 * PurpleLab Elementor Widgets - Styles
 */

/* ================================================
   Brand Carousel
   ================================================ */

.plew-brand-carousel {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.plew-brand-swiper {
    overflow: hidden;
    padding: 30px 0;
}

.plew-brand-swiper .swiper-wrapper {
    align-items: center;
}

.plew-brand-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Slide container */
.plew-brand-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Image container */
.plew-brand-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.plew-brand-image img {
    max-height: 100%;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}

/* Link wrapper */
.plew-brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Grayscale effect for non-active slides */
.plew-brand-carousel.grayscale-enabled .swiper-slide:not(.swiper-slide-active) .plew-brand-image img {
    filter: grayscale(100%);
}

.plew-brand-carousel.grayscale-enabled .swiper-slide.swiper-slide-active .plew-brand-image img,
.plew-brand-carousel.grayscale-enabled .swiper-slide:hover .plew-brand-image img {
    filter: grayscale(0%);
}

/* Hover effects */
.plew-brand-carousel.hover-scale .swiper-slide:hover .plew-brand-image img {
    transform: scale(1.1);
}

.plew-brand-carousel.hover-brightness .swiper-slide:hover .plew-brand-image img {
    filter: brightness(1.2);
}

/* ================================================
   Navigation Arrows
   ================================================ */

.plew-nav-arrow {
    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-color: #ffffff;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.plew-nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.plew-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.plew-nav-arrow svg {
    width: 22px;
    height: 22px;
}

.plew-nav-prev {
    left: 10px;
}

.plew-nav-next {
    right: 10px;
}

.plew-nav-arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.plew-nav-arrow.swiper-button-disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ================================================
   Pagination
   ================================================ */

.plew-pagination {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.plew-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.plew-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Progressbar pagination */
.plew-pagination.swiper-pagination-progressbar {
    position: relative;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-top: 20px;
}

/* Fraction pagination */
.plew-pagination.swiper-pagination-fraction {
    font-size: 14px;
    font-weight: 500;
}

/* ================================================
   Coverflow Effect Enhancements
   ================================================ */

.plew-brand-carousel[data-effect="coverflow"] .swiper-slide {
    perspective: 1000px;
}

/* ================================================
   Responsive
   ================================================ */

@media (max-width: 1024px) {
    .plew-nav-arrow {
        width: 38px;
        height: 38px;
    }

    .plew-nav-arrow svg {
        width: 18px;
        height: 18px;
    }

    .plew-nav-prev {
        left: 5px;
    }

    .plew-nav-next {
        right: 5px;
    }
}

@media (max-width: 767px) {
    .plew-brand-carousel {
        padding-bottom: 60px;
    }

    .plew-nav-arrow {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 0;
        transform: none;
    }

    .plew-nav-arrow:hover {
        transform: scale(1.1);
    }

    .plew-nav-prev {
        left: calc(50% - 50px);
    }

    .plew-nav-next {
        right: calc(50% - 50px);
    }

    .plew-nav-arrow svg {
        width: 18px;
        height: 18px;
    }

    .plew-brand-swiper {
        padding: 20px 0;
    }
}

/* ================================================
   Editor Adjustments
   ================================================ */

.elementor-editor-active .plew-brand-carousel {
    min-height: 150px;
}
