/**
 * Custom Carousel Banner Block - Styles
 *
 * @package SEO
 */

/* Main container */
.wp-block-seo-custom-carousel-banner {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Track */
.carousel-banner-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

/* Slides - both class patterns */
.wp-block-seo-carousel-slide,
.carousel-slide {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.wp-block-seo-carousel-slide img,
.carousel-slide img,
.wp-block-seo-carousel-slide .wp-block-image img,
.carousel-slide .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.wp-block-seo-carousel-slide figure,
.carousel-slide figure,
.wp-block-seo-carousel-slide .wp-block-image,
.carousel-slide .wp-block-image {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
}

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

/* Arrow buttons */
.carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #333333;
}

/* Arrows outside position */
.arrows-outside .carousel-banner-arrows {
    left: -60px;
    right: -60px;
    padding: 0;
}

/* Dots container */
.carousel-banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    z-index: 10;
}

/* Dots inside position */
.dots-inside .carousel-banner-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    padding: 0;
}

/* Dots outside position */
.dots-outside .carousel-banner-dots {
    position: relative;
    margin-top: 16px;
}

/* Dot buttons */
.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-dot.active {
    background: #333333;
    transform: scale(1.2);
}

/* Inside position - lighter dots for visibility */
.dots-inside .carousel-dot {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dots-inside .carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dots-inside .carousel-dot.active {
    background: #ffffff;
}

/* Editor styles */
.carousel-banner-editor {
    border: 1px dashed #ccc;
    padding: 16px;
    background: #f9f9f9;
}

.carousel-banner-editor .block-editor-inner-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.carousel-banner-editor .wp-block-seo-carousel-slide,
.carousel-banner-editor .carousel-slide {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 200px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.carousel-banner-editor-info {
    margin-top: 12px;
    padding: 8px 12px;
    background: #e7f3ff;
    border-left: 3px solid #0073aa;
    font-size: 13px;
    color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

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

    .carousel-banner-arrows {
        padding: 0 8px;
    }

    .arrows-outside .carousel-banner-arrows {
        left: 0;
        right: 0;
        padding: 0 8px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-banner-track {
        border-radius: 8px;
    }

    .wp-block-seo-carousel-slide,
    .carousel-slide {
        border-radius: 8px;
    }

    .wp-block-seo-carousel-slide img,
    .carousel-slide img,
    .wp-block-seo-carousel-slide .wp-block-image img,
    .carousel-slide .wp-block-image img {
        border-radius: 8px;
    }

    .wp-block-seo-carousel-slide figure,
    .carousel-slide figure,
    .wp-block-seo-carousel-slide .wp-block-image,
    .carousel-slide .wp-block-image {
        border-radius: 8px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

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