/**
 * CSS para a seção de Stories
 */

/* Esconder a barra de rolagem no container de stories no Chrome, Safari e Opera */
.stories-wrapper::-webkit-scrollbar {
    display: none;
}

/* Esconder a barra de rolagem para IE, Edge e Firefox */
.stories-wrapper {
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Seção completa dos stories */
.stories-section {
    border-bottom: 1px solid rgba(163, 0, 0, 0.1);
    padding-bottom: 1rem;
    width: 100%;
}

/* Container dos stories */
.stories-container {
    position: relative;
}

@media (min-width: 768px) {
    .stories-section {
        padding-top: 2rem;
    }
    .stories-wrapper {
        justify-content: center;
    }
}

/* Indicador de mais stories (apenas mobile) */
@media (max-width: 767px) {
    .stories-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 20px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        pointer-events: none;
    }
}

/* Efeitos de hover nos stories */
.story-item:hover .border-primary {
    border-color: #ff0000; /* Vermelho mais vibrante no hover */
}

.story-item:hover .fa-play {
    transform: scale(1.2) translate(1px, 0);
    transition: transform 0.2s ease;
}

/* Estilo para Story Modal */
.story-modal-content {
    max-height: 90vh;
    width: 100%;
    max-width: 400px;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

/* Botões de navegação */
.story-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.story-nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.story-nav-prev {
    left: -50px;
}

.story-nav-next {
    right: -50px;
}

/* Animações de transição */
.slide-left {
    animation: slideLeft 0.3s ease-in-out;
}

.slide-right {
    animation: slideRight 0.3s ease-in-out;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100px);
        opacity: 0;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100px);
        opacity: 0;
    }
}

/* Ajustes para Mobile */
@media (max-width: 640px) {
    .story-nav-button {
        width: 36px;
        height: 36px;
    }

    .story-nav-prev {
        left: 10px;
    }

    .story-nav-next {
        right: 10px;
    }
}
