/* Retro 80s Arcade Styling */
:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-green: #00ff00;
    --neon-purple: #8000ff;
    --dark-purple: #1a0033;
    --retro-bg: #0d001a;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background: linear-gradient(45deg, #0d001a 0%, #1a0033 50%, #0d001a 100%);
    min-height: 100vh;
}

/* Pixel Perfect Images */
.pixel-perfect {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Glow Text Effect */
.glow-text {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor;
}

/* Retro Box Styling */
.retro-box {
    position: relative;
    background: linear-gradient(135deg, #1a0033 0%, #2d0066 100%);
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.retro-box:hover {
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.5),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Retro Card Styling */
.retro-card {
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a0033 0%, #2d0066 100%);
}

.retro-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(255, 0, 255, 0.4),
        0 0 0 1px rgba(0, 255, 255, 0.5);
}

.retro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.retro-card:hover::before {
    opacity: 1;
}

/* Neon Shadow Effect */
.shadow-neon {
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        0 0 40px rgba(255, 0, 255, 0.3),
        0 0 60px rgba(255, 0, 255, 0.1);
}

/* Retro Line Separator */
.retro-line {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--neon-blue) 25%, 
        var(--neon-pink) 50%, 
        var(--neon-purple) 75%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    animation: pulse-line 2s infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* CRT Scanlines Effect */
.retro-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
    animation: scanlines 0.1s linear infinite;
}

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

/* Volume Slider Styling */
.volume-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: #333;
    outline: none;
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--neon-blue);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--neon-blue);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
    border: none;
}

/* MIDI Player Styling */
#midi-player {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--neon-blue);
}

#midi-player button {
    transition: all 0.3s ease;
}

#midi-player button:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px currentColor;
}

/* Progress Bar Animation */
#progress-bar {
    transition: width 0.3s ease;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-blue);
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.show {
    max-height: 200px;
}

/* Animation Utilities */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 255, 0.8); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .font-pixel {
        font-size: 0.8rem;
    }
    
    .glow-text {
        text-shadow: 
            0 0 3px currentColor,
            0 0 6px currentColor,
            0 0 9px currentColor;
    }
    
    .retro-box {
        padding: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-purple);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-green));
}

/* Table Hover Effects */
tbody tr:hover {
    background: rgba(0, 255, 255, 0.1) !important;
    box-shadow: inset 0 0 20px rgba(255, 0, 255, 0.2);
}

/* Button Hover Effects */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* Loading Animation */
@keyframes loading-dots {
    0%, 20% { color: var(--neon-blue); }
    40% { color: var(--neon-pink); }
    60% { color: var(--neon-green); }
    80%, 100% { color: var(--neon-purple); }
}

.loading-dots {
    animation: loading-dots 1.5s ease-in-out infinite;
}

/* Error State Styling */
.error-state {
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444;
}

/* Success State Styling */
.success-state {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

/* Animation Delay Classes */
.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}
