/* Carrossel de Stories - Notícias Circulares */
.stories-container {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 150px;
    margin: 0;
    width: 100%;
    float: left;
    clear: both;
    position: relative;
    z-index: 1;
}

.stories-wrapper {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    visibility: visible !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Esconder scrollbar em todos os navegadores */
.stories-wrapper::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block !important;
    visibility: visible !important;
    width: 90px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ff8000;
    padding: 3px;
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

/* Story já visualizado */
.story-item.viewed .story-circle {
    border-color: #ccc !important;
}

.story-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.story-category {
    display: none; /* Esconder categoria */
}

.story-title {
    margin-top: 8px;
    font-size: 12px;
    color: #333;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Lato, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Modal/Lightbox para Notícias - Estilo Stories */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000 !important;
    background-color: #000 !important;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.news-modal.active {
    display: block;
}

.news-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

/* Barra de progresso dos stories */
.stories-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10;
    display: flex;
    gap: 4px;
    padding: 15px;
}

.story-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.story-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

.story-progress-bar.active .story-progress-fill {
    animation: progressBar 5s linear forwards;
}

.story-progress-bar.completed .story-progress-fill {
    width: 100%;
}

@keyframes progressBar {
    from { width: 0%; }
    to { width: 100%; }
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 45px;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 300;
}

.news-modal-close:hover {
    transform: scale(1.2);
    background: transparent;
}

.news-modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-touch-callout: none;
}

.news-modal-body {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 90%;
    padding: 40px;
    text-align: left;
}

.news-modal-category {
    display: inline-block;
    background: rgba(255, 128, 0, 0.9);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-modal-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-family: Lato, sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.news-modal-meta {
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0 0 25px 0;
    font-family: Lato, sans-serif;
}

.news-modal-text {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 30px 0;
    font-family: Roboto, sans-serif;
    max-height: 150px;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.news-modal-text p {
    margin-bottom: 10px;
}

.news-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: Lato, sans-serif;
    font-size: 15px;
    border: 2px solid transparent;
}

.news-modal-link:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Navegação do Modal - ESCONDIDA */
.modal-nav {
    display: none !important;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .stories-container {
        padding: 10px 0 5px 0;
        min-height: auto;
        margin: 0;
        margin-top: 100px;
        margin-bottom: -80px;
    }
    
    .stories-wrapper {
        padding: 5px 0;
    }
    
    /* Reduzir espaço do elemento seguinte ao carousel */
    .stories-container + .conteudo {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .story-circle {
        width: 70px;
        height: 70px;
    }
    
    .story-title {
        font-size: 11px;
        max-width: 70px;
    }
    
    /* Modal responsivo - manter igual ao PC */
    .news-modal-content {
        align-items: center;
        justify-content: center;
    }
    
    .news-modal-body {
        padding: 20px;
        max-width: 90%;
        margin-top: 0;
    }
    
    .news-modal-title {
        font-size: 26px;
        margin: 10px 0 15px 0;
    }
    
    .news-modal-text {
        font-size: 15px;
        max-height: 100px;
        margin: 15px 0 20px 0;
    }
    
    .news-modal-link {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .news-modal-close {
        width: 45px;
        height: 45px;
        font-size: 40px;
        top: 30px;
        right: 15px;
        background: transparent;
    }
    
    .news-modal-category {
        font-size: 11px;
        padding: 6px 16px;
        margin-bottom: 15px;
    }
    
    .news-modal-meta {
        font-size: 12px;
        margin: 10px 0 15px 0;
    }
}


/* Botões de scroll do carrossel - ESCONDIDOS */
.stories-scroll-btn {
    display: none !important;
}
