/* Frontend styles for Elegant Banner Slider */

.no-js .ebs-slide {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* Wrapper base */
.ebs-slider-wrapper {
    position: relative;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0;
    height: auto;
}

/* Força altura automática com base na imagem */
.ebs-slider-wrapper[data-height] {
    height: auto !important;
}

.ebs-slider-wrapper[data-height]:not([data-height=""]) {
    height: auto !important;
}

/* Themes */
.ebs-theme-dark {
    background: #020617;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.ebs-theme-light {
    background: #f9fafb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(209, 213, 219, 0.9);
}

/* Inner */
.ebs-slider-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slides */
.ebs-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.ebs-slide.ebs-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.ebs-slide-image,
.ebs-slide-html {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebs-slide-image img,
.ebs-slide-html iframe,
.ebs-slide-html img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Arrows */
.ebs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(15, 23, 42, 0.72);
    color: #f9fafb;
    padding: 0.45rem 0.95rem;
    cursor: pointer;
    font-size: 1.35rem;
    border-radius: 0;
    line-height: 1;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.45);
}

.ebs-theme-light .ebs-arrow {
    background: rgba(31, 41, 55, 0.85);
    color: #f9fafb;
    box-shadow: 0 10px 25px rgba(31, 41, 55, 0.38);
}

.ebs-arrow:hover {
    background: rgba(37, 99, 235, 0.95);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.55);
}

.ebs-arrow.ebs-prev {
    left: 14px;
}

.ebs-arrow.ebs-next {
    right: 14px;
}

/* Dots */
.ebs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px 14px;
    margin: 0 !important;
}

.ebs-dot {
    width: 9px;
    height: 9px;
    border-radius: 0;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(148, 163, 184, 0.6);
    transition: background 0.18s ease, transform 0.18s ease, width 0.18s ease;
}

.ebs-theme-light .ebs-dot {
    background: rgba(107, 114, 128, 0.5);
}

.ebs-dot.ebs-dot-active {
    width: 18px;
    background: #3b82f6;
    transform: translateY(-1px);
}

.ebs-dot:hover {
    background: #60a5fa;
}

/* Responsive */
@media (max-width: 768px) {
    .ebs-slider-wrapper {
        height: auto !important;
    }

    .ebs-slider-inner,
    .ebs-slide,
    .ebs-slide-image {
        height: auto !important;
    }

    .ebs-slide-image img {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }

    .ebs-arrow {
        padding: 0.35rem 0.75rem;
        font-size: 1.1rem;
    }

    .ebs-arrow.ebs-prev { left: 8px; }
    .ebs-arrow.ebs-next { right: 8px; }

    .ebs-dots { padding-bottom: 10px; }
}

/* Reset */
.ebs-slide-inner,
.ebs-slide,
.ebs-slide-image img {
    margin: 0 !important;
    padding: 0 !important;
}

.ebs-dots {
    padding: 0 !important;
    margin: 0 !important;
}

/* Rounded corners */
.ebs-slider-wrapper.ebs-rounded {
    border-radius: 12px;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.ebs-slider-wrapper.ebs-rounded .ebs-arrow {
    border-radius: 8px;
}

.ebs-slider-wrapper.ebs-rounded .ebs-slide-image img {
    border-radius: 12px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}