/* Neon Light Theme */
.neon-light-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e, #0f0f23);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

.neon-light-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Neon Grid Background */
.neon-grid-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: 
        linear-gradient(90deg, transparent 98%, #00ffff 100%),
        linear-gradient(transparent 98%, #00ffff 100%);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Neon Circuit Lines */
.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="200" viewBox="0 0 400 200"><path stroke="%2300ffff" stroke-width="2" fill="none" d="M50,100 L100,100 L100,50 L200,50 L200,150 L300,150 L300,100 L350,100" opacity="0.6"/><circle cx="100" cy="100" r="3" fill="%2300ffff"/><circle cx="200" cy="50" r="3" fill="%2300ffff"/><circle cx="300" cy="150" r="3" fill="%2300ffff"/></svg>');
    opacity: 0.4;
    animation: circuitFlow 8s linear infinite;
}

@keyframes circuitFlow {
    from { background-position: 0 0; }
    to { background-position: 800px 0; }
}

/* Neon Fish */
.neon-fish {
    position: absolute;
    width: 150px;
    height: 80px;
    background: linear-gradient(135deg, #00ffff, #0080ff);
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: neonFloat 6s ease-in-out infinite;
    box-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 60px #00ffff,
        inset 0 0 20px rgba(0, 255, 255, 0.2);
    z-index: 10;
    border: 2px solid #00ffff;
}

.neon-fish:before {
    content: '';
    position: absolute;
    top: 30%;
    right: -20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 30px;
    border-color: transparent transparent transparent #00ffff;
    transform: rotateY(180deg);
    filter: drop-shadow(0 0 10px #00ffff);
}

.neon-fish:after {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 10px;
    height: 10px;
    background: #ff00ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff00ff;
}

@keyframes neonFloat {
    0%, 100% { 
        transform: translateY(0) rotateY(0);
        box-shadow: 
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 60px #00ffff;
    }
    50% { 
        transform: translateY(-20px) rotateY(10deg);
        box-shadow: 
            0 0 30px #00ffff,
            0 0 60px #00ffff,
            0 0 90px #00ffff;
    }
}

/* Neon Detective Agent */
.neon-detective-agent {
    position: absolute;
    width: 100px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.neon-detective-hat {
    position: absolute;
    width: 60px;
    height: 20px;
    background: #1a1a1a;
    top: 0;
    left: 20px;
    border-radius: 5px 5px 0 0;
    border: 2px solid #00ffff;
    box-shadow: 0 0 15px #00ffff;
}

.neon-detective-hat:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 30px;
    background: #1a1a1a;
    top: -25px;
    left: -10px;
    border-radius: 50% 50% 0 0;
    border: 2px solid #00ffff;
    box-shadow: 0 0 15px #00ffff;
}

.neon-detective-face {
    position: absolute;
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    top: 40px;
    left: 20px;
    border-radius: 30px 30px 20px 20px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    overflow: hidden;
}

/* Neon Search Status */
.neon-search-status {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    color: #00ffff;
    text-align: center;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff;
    z-index: 20;
}

.neon-search-status h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        0 0 40px #00ffff;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

.neon-search-status p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #80ffff;
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 30px #00ffff,
            0 0 40px #00ffff;
    }
    to {
        text-shadow: 
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff,
            0 0 20px #00ffff,
            0 0 35px #00ffff;
    }
}

/* Neon Progress Bar */
.neon-progress-container {
    width: 300px;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    border-radius: 8px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.neon-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00ffff, #0080ff, #ff00ff);
    border-radius: 6px;
    transition: width 0.3s ease;
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
    animation: progressGlow 1.5s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    from {
        box-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff;
    }
    to {
        box-shadow: 
            0 0 20px #00ffff,
            0 0 30px #00ffff,
            0 0 40px #00ffff;
    }
}

/* Floating Neon Clues */
.neon-clue {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 26, 46, 0.9));
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    z-index: 15;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.neon-clue.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Neon Particles */
.neon-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.neon-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
    animation: particleFloat 8s linear infinite;
}

.neon-particle:nth-child(2n) {
    background: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
    animation-duration: 12s;
}

.neon-particle:nth-child(3n) {
    background: #ffff00;
    box-shadow: 0 0 10px #ffff00;
    animation-duration: 10s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Holographic Effect */
.holographic-text {
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShift 3s ease-in-out infinite;
}

@keyframes holographicShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .neon-fish {
        width: 100px;
        height: 60px;
    }
    
    .neon-search-status h2 {
        font-size: 1.5rem;
    }
    
    .neon-search-status p {
        font-size: 1rem;
    }
    
    .neon-progress-container {
        width: 200px;
    }
    
    .neon-grid-container {
        background-size: 30px 30px;
    }
}

/* Cyberpunk Glow Effects */
.cyber-glow {
    position: relative;
}

.cyber-glow:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00, #00ffff);
    border-radius: inherit;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: cyberRotate 4s linear infinite;
}

@keyframes cyberRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
