/* PERFORMANCE OPTIMIZATIONS - Override expensive animations */

/* Disable expensive card hover transforms */
.revved-post-item:hover,
.revved-post-item:hover,
.revved-post-card:hover,
article:hover {
    transform: none !important;
    box-shadow: var(--revved-shadow-sm) !important;
}

/* Disable image scale on hover - causes repaints */
.revved-thumb:hover img,
.revved-thumb:hover img,
.revved-post-item:hover .revved-thumb img,
.revved-post-item:hover img {
    transform: none !important;
}

/* Use simpler transitions - only color/opacity, not "all" */
a, button, .btn, .revved-btn,
.nav-link, .menu-item a {
    transition: color 0.15s ease, opacity 0.15s ease, background-color 0.15s ease !important;
}

/* Remove transitions from cards entirely */
.revved-post-item,
.revved-post-item,
.revved-post-card,
article {
    transition: none !important;
}

/* GPU acceleration for fixed/sticky elements only */
.site-header,
.sticky-header,
.fixed-header,
#masthead {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce box-shadow complexity */
:root {
    --revved-shadow-sm: 0 1px 3px rgba(26,31,26,0.08) !important;
    --revved-shadow-md: 0 2px 8px rgba(26,31,26,0.1) !important;
    --revved-shadow-lg: 0 4px 12px rgba(26,31,26,0.12) !important;
}

/* Content-visibility for off-screen content */
.revved-section,
.revved-section,
section.revved-section,
.sidebar .widget,
footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Contain layout for widgets */
.widget,
.revved-post-item,
.revved-post-item {
    contain: layout style;
}

/* Disable owl carousel transitions during scroll */
.owl-carousel .owl-stage {
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
}

/* Simplify category widget hover */
.widget_categories ul li a,
.popular-category ul li a {
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

/* Remove button glow animations */
.revved-btn-primary:hover,
.btn-primary:hover,
button[type="submit"]:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Optimize scrolling containers */
.main-content,
.revved-main-content,
main,
.content-area {
    -webkit-overflow-scrolling: touch;
}

/* Reduce paint areas for sidebar hover */
.sidebar .revved-post-item:hover,
.widget .revved-post-item:hover {
    margin: 0 !important;
    padding: 14px 0 !important;
    background: rgba(244, 246, 245, 0.5) !important;
    border-radius: 0 !important;
}
