/* Media Enhancement Styles */

.enhanced-hd {
    /* HD Filtering */
    filter: contrast(1.06) saturate(1.1) brightness(1.02) !important;
    
    /* Chrome/Safari sharpening */
    image-rendering: -webkit-optimize-contrast;
    
    /* Firefox sharpening */
    image-rendering: crisp-edges;
    
    /* Apply SVG sharpening filter if supported */
    filter: url('#hdSharpenFilter') contrast(1.06) saturate(1.1) brightness(1.02) !important;
}

/* Enhancement Overlay/Animation */
.enhancement-processing {
    position: relative;
    overflow: hidden;
}

.enhancement-processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: enhancement-shimmer 1.5s ease-in-out;
}

@keyframes enhancement-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* HD Badge */
.hd-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 5;
    pointer-events: none;
    display: none;
}

.enhanced-hd + .hd-badge,
.enhanced-hd .hd-badge {
    display: block;
}
