/* ========================================
   CORREÇÕES DE PERFORMANCE - ANTI-TREMOR
   ======================================== */

/* Prevenir reflow durante scroll */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Otimizar renderização de imagens */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    vertical-align: middle;
}

/* Prevenir layout shift */
img[src=""],
img:not([src]) {
    opacity: 0;
    visibility: hidden;
}

/* Container para imagens - prevenir tremor */
.destaque,
.noticia-card,
.noticia-completa {
    position: relative;
}

/* Wrapper para imagens */
.destaque img,
.noticia-card img,
.noticia-imagem {
    position: relative;
    z-index: 1;
}

/* Prevenir reflow durante carregamento */
img[loading="lazy"] {
    content-visibility: auto;
}

/* Otimizar scroll */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Forçar aceleração de hardware em elementos críticos */
header,
main,
.container,
.noticias-grid,
.noticia-card {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Prevenir flicker em elementos sticky */
header {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}
