/* NewsFlash Stories Pro v4.2.4 */

/* Filtros de Plataforma */
.newsflash-only-mobile { display: block; }
.newsflash-only-desktop { display: none; }

@media (min-width: 768px) {
    .newsflash-only-mobile { display: none; }
    .newsflash-only-desktop { display: block; }
}

/* Container de Stories na Home */
.newsflash-story-wrapper { width: 100%; background: #fff; border-bottom: 1px solid #efefef; margin-bottom: 20px; }
.newsflash-story-container { display: flex; overflow-x: auto; padding: 15px 10px; gap: 15px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.newsflash-story-container::-webkit-scrollbar { display: none; }
.newsflash-story-item { flex: 0 0 auto; width: 85px; text-align: center; cursor: pointer; }
.newsflash-image-ring { width: 76px; height: 76px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, var(--newsflash-ring-1), var(--newsflash-ring-2)); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.newsflash-inner-circle { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; overflow: hidden; background: #fff; position: relative; }
.newsflash-inner-circle img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; position: absolute; top: 0; left: 0; }
.newsflash-story-label { font-size: 12px; font-family: sans-serif; color: #000; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Modal - Tela Cheia Real */
.newsflash-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483647 !important;
    background: #000;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.newsflash-modal-content {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    background: #000;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 768px) {
    .newsflash-modal-content {
        width: 420px !important;
        height: 90vh !important;
        max-height: 850px;
        border-radius: 16px;
        box-shadow: 0 0 50px rgba(0,0,0,1);
    }
}

.newsflash-main-img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    z-index: 1; 
}

.newsflash-nav { position: absolute; top: 0; width: 45%; height: 100%; z-index: 100; cursor: pointer; }
.newsflash-nav-left { left: 0; }
.newsflash-nav-right { right: 0; }

.newsflash-progress-bar { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    display: flex; 
    padding: 15px 10px 5px; 
    gap: 4px; 
    z-index: 110; 
}
.newsflash-prog-segment { height: 2px; background: rgba(255,255,255,0.3); flex: 1; border-radius: 2px; overflow: hidden; }
.newsflash-prog-fill { height: 100%; background: #fff; width: 0%; }

.newsflash-header { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    display: flex; 
    align-items: center; 
    padding: 30px 15px 10px; 
    justify-content: space-between; 
    z-index: 110; 
    background: linear-gradient(rgba(0,0,0,0.6), transparent); 
}
.newsflash-user { display: flex; align-items: center; gap: 10px; }
.newsflash-user img { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #fff; object-fit: cover; }
.newsflash-user-meta { display: flex; align-items: center; gap: 8px; color: #fff; }
.newsflash-user-meta span:first-child { font-weight: 600; font-size: 14px; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); }
.newsflash-time-ago { font-size: 13px; color: rgba(255,255,255,0.9); text-shadow: 1px 1px 4px rgba(0,0,0,0.8); }
.newsflash-close { font-size: 36px; cursor: pointer; line-height: 1; color: #fff; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); }

/* Área de Rodapé */
.newsflash-footer-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: linear-gradient(transparent, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0.95) 100%);
    padding: 60px 20px 0 20px;
    padding-bottom: calc(45px + env(safe-area-inset-bottom, 0px));
}

.newsflash-text-content {
    flex: 1;
    overflow: hidden;
    margin-bottom: 25px;
}

.newsflash-tag { 
    display: inline-block; 
    padding: 4px 12px; 
    border-radius: 6px; 
    background: linear-gradient(45deg, var(--newsflash-tag-1), var(--newsflash-tag-2)); 
    font-size: 13px; 
    font-weight: 600; 
    margin-bottom: 10px; 
    color: #fff; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.4); 
}

.newsflash-title { 
    font-size: 22px; 
    line-height: 1.25; 
    font-weight: 700; 
    margin: 0 0 8px; 
    color: #fff; 
    text-shadow: 1px 1px 8px rgba(0,0,0,0.6); 
}

.newsflash-img-caption { 
    font-size: 11px; 
    color: rgba(255,255,255,0.7); 
    font-style: italic; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); 
    margin-top: 5px;
}

/* Botão Centralizado e Área de Clique Expandida */
.newsflash-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    position: relative;
}

.newsflash-swipe-up-link {
    text-decoration: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 60px; /* Área de clique invisível muito maior */
    margin: -30px -60px; /* Compensa o padding para não afetar o layout visual */
    z-index: 150;
    position: relative;
}

.newsflash-swipe-up-visual { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px; 
    padding: 12px 35px; 
    border: 1.5px solid #fff; 
    border-radius: 35px; 
    color: #fff; 
    font-weight: 600; 
    font-size: 14px; 
    background: rgba(255,255,255,0.15); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    white-space: nowrap;
    transition: all 0.2s ease;
    min-width: 180px;
    pointer-events: none; /* Faz o clique passar direto para o link pai */
}

.newsflash-swipe-up-link:active .newsflash-swipe-up-visual {
    transform: scale(0.95);
    background: rgba(255,255,255,0.3);
}

.newsflash-link-icon { 
    width: 18px; 
    height: 18px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1' /%3E%3C/svg%3E"); 
    background-size: contain; 
    background-repeat: no-repeat; 
}


