/* ========================================
   SLIDER - Frontend Styles
   ======================================== */

.simple-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.simple-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.simple-slider-track::-webkit-scrollbar {
    display: none;
}

.slide-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 80vh;
    /* Proteção contra download */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* ========================================
   Setas de Navegação
   ======================================== */

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 28px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.slider-nav:hover {
    background: rgba(0,0,0,0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.slider-nav.prev { left: 15px; }
.slider-nav.next { right: 15px; }

.slider-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   Indicadores (Bolinhas)
   ======================================== */

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dots .dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

.slider-dots .dot:focus {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ========================================
   Contador de Slides
   ======================================== */

.slider-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

/* ========================================
   Responsivo Mobile
   ======================================== */

@media (max-width: 768px) {
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .slider-nav.prev { left: 10px; }
    .slider-nav.next { right: 10px; }
    
    .slider-dots {
        bottom: 10px;
        gap: 8px;
    }
    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }
    .slider-dots .dot.active {
        width: 20px;
    }
    
    .slider-counter {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ========================================
   EDITOR - Estilos do Gutenberg
   ======================================== */

.editor-slider-wrap {
    background: #f9f9f9;
    padding: 30px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    min-height: 200px;
}

.editor-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.editor-empty-state .icon {
    font-size: 48px;
    margin: 0;
}

.editor-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.editor-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.editor-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.editor-image-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.editor-image-item:hover .remove-image {
    opacity: 1;
}

.editor-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}