/* Custom styles for Sony TV-511 simulator */

.tv-body {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #4b5563 100%);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.1),
        inset 0 -2px 4px rgba(0,0,0,0.1);
}

.tv-screen-bezel {
    background: radial-gradient(circle, #1f2937 0%, #000000 70%);
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.5),
        inset 0 -4px 8px rgba(255,255,255,0.1);
}

.screen-glow {
    box-shadow: 
        inset 0 4px 8px rgba(0,0,0,0.5),
        inset 0 -4px 8px rgba(255,255,255,0.1),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 40px rgba(59, 130, 246, 0.1);
}

.crt-screen {
    background: radial-gradient(circle, transparent 0%, rgba(0,0,0,0.1) 100%);
    position: relative;
}

.crt-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.3) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.scanlines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.05) 2px,
        rgba(255,255,255,0.05) 4px
    );
    opacity: 0.6;
    animation: scanlineFlicker 0.1s infinite linear alternate;
}

@keyframes scanlineFlicker {
    0% { opacity: 0.6; }
    100% { opacity: 0.8; }
}

.static-noise {
    background: 
        radial-gradient(circle, #333 1px, transparent 1px),
        radial-gradient(circle, #666 1px, transparent 1px);
    background-size: 4px 4px, 6px 6px;
    background-position: 0 0, 3px 3px;
    animation: staticNoise 0.1s infinite linear;
}

@keyframes staticNoise {
    0% { 
        background-position: 0 0, 3px 3px; 
        opacity: 0.8;
    }
    25% { 
        background-position: 1px 1px, 2px 4px; 
        opacity: 0.6;
    }
    50% { 
        background-position: 2px 0px, 1px 2px; 
        opacity: 0.9;
    }
    75% { 
        background-position: 0px 2px, 4px 1px; 
        opacity: 0.7;
    }
    100% { 
        background-position: 1px 1px, 2px 3px; 
        opacity: 0.8;
    }
}

.knob {
    transition: all 0.3s ease;
    background: 
        radial-gradient(circle at 30% 30%, #e5e7eb, #9ca3af 50%, #4b5563 100%);
    border: 4px solid #374151;
    position: relative;
}

.knob:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.knob::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #374151, #1f2937);
    border-radius: 50%;
}

.power-btn {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #4b5563, #1f2937);
}

.power-btn:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Channel indicators around knobs */
.knob-container::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255,255,255,0.1) 30deg,
        transparent 60deg,
        rgba(255,255,255,0.1) 90deg,
        transparent 120deg,
        rgba(255,255,255,0.1) 150deg,
        transparent 180deg,
        rgba(255,255,255,0.1) 210deg,
        transparent 240deg,
        rgba(255,255,255,0.1) 270deg,
        transparent 300deg,
        rgba(255,255,255,0.1) 330deg,
        transparent 360deg
    );
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tv-body {
        padding: 1rem;
    }
    
    .tv-screen-bezel {
        width: 200px !important;
        height: 200px !important;
    }
    
    .knob {
        width: 3rem;
        height: 3rem;
    }
    
    .power-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Retro glow effect for active elements */
@keyframes retroGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3); 
    }
    50% { 
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.6); 
    }
}

.screen-glow {
    animation: retroGlow 2s ease-in-out infinite;
}