/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Seção principal da galeria */
.image-slider-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
}

/* Container principal do slider */
.slider-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 1rem;
}

/* Wrapper do slider */
.slider-wrapper {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

/* Track do slider (container das imagens) */
.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 1rem;
    padding: 0.5rem 0;
}

/* Slide individual */
.slide {
    flex: 0 0 auto;
    width: 280px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Imagens do slider */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide:hover .slide-image {
    transform: scale(1.05);
}

/* Setas de navegação */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.slider-arrow-left {
    left: 1rem;
}

.slider-arrow-right {
    right: 1rem;
}

/* Indicadores */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #007bff;
    transform: scale(1.2);
}

.indicator:hover {
    background: #0056b3;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
    animation: zoomIn 0.3s ease;
}

.modal-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Botão de fechar modal */
.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #333;
}

.modal-close:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .image-slider-section {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .slider-container {
        padding: 0.5rem;
    }
    
    .slide {
        width: 220px;
        height: 160px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow-left {
        left: 0.5rem;
    }
    
    .slider-arrow-right {
        right: 0.5rem;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .slide {
        width: 180px;
        height: 130px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .modal-overlay {
        padding: 0.5rem;
    }
}

/* Estados de foco para acessibilidade */
.slider-arrow:focus,
.modal-close:focus,
.indicator:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.slide:focus {
    outline: 2px solid #007bff;
    outline-offset: 4px;
}

/* Smooth scrolling para o slider */
.slider-track.smooth-scroll {
    scroll-behavior: smooth;
}

/* Loading state */
.slide-image[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Estilo para quando o JavaScript está desabilitado */
.no-js .slider-track {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
}

.no-js .slider-track::-webkit-scrollbar {
    height: 8px;
}

.no-js .slider-track::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.no-js .slider-track::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.no-js .slider-arrow {
    display: none;
}

/* Melhorias de performance */
.slide-image {
    will-change: transform;
}

.modal {
    will-change: opacity;
}

.slider-track {
    will-change: transform;
}

