/* Custom styles for CRT TV experience */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

.retro-title {
    font-family: 'Orbitron', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 40px #00ff00;
}

.retro-font {
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.screen-glow {
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 0, 0.3),
        0 0 20px rgba(0, 255, 0, 0.2),
        0 0 40px rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.5);
}

.shadow-green-glow {
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

.scanlines {
    background: linear-gradient(
        transparent 50%, 
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.static-noise {
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.8'/%3E%3C/svg%3E");
    animation: static 0.1s infinite;
}

@keyframes static {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-1px, 1px); }
    20% { transform: translate(1px, -1px); }
    30% { transform: translate(-1px, -1px); }
    40% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, 1px); }
    60% { transform: translate(1px, -1px); }
    70% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
    90% { transform: translate(-1px, 1px); }
    100% { transform: translate(1px, -1px); }
}

.static-bg {
    background: repeating-linear-gradient(
        0deg,
        #666 0px,
        #666 1px,
        #999 1px,
        #999 2px
    );
    animation: staticBg 0.1s infinite;
}

@keyframes staticBg {
    0% { background-position: 0 0; }
    100% { background-position: 0 2px; }
}

.power-on-effect {
    animation: powerOn 0.8s ease-out forwards;
}

@keyframes powerOn {
    0% {
        clip-path: circle(0% at 50% 50%);
        background: white;
    }
    50% {
        clip-path: circle(30% at 50% 50%);
        background: rgba(255, 255, 255, 0.8);
    }
    100% {
        clip-path: circle(100% at 50% 50%);
        background: transparent;
    }
}

.power-off-effect {
    animation: powerOff 0.5s ease-in forwards;
}

@keyframes powerOff {
    0% {
        clip-path: circle(100% at 50% 50%);
        background: rgba(255, 255, 255, 0.1);
    }
    70% {
        clip-path: circle(5% at 50% 50%);
        background: rgba(255, 255, 255, 0.8);
    }
    100% {
        clip-path: circle(0% at 50% 50%);
        background: white;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .retro-title {
        font-size: 2.5rem;
        text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    }
    
    .screen-glow {
        box-shadow: 
            inset 0 0 10px rgba(0, 255, 0, 0.3),
            0 0 10px rgba(0, 255, 0, 0.2);
    }
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

button:active {
    transform: translateY(0);
    transition: transform 0.05s ease;
}

/* Custom scrollbar for retro feel */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}