/* DJ Mixer - Kova Portfolio */
/* Purple/Neon Aesthetic */

:root {
    --primary: #bf5af2;
    --secondary: #9b4dca;
    --bg-dark: #0d0d0d;
    --bg-panel: #1a1a2e;
    --bg-deck: #16213e;
    --text: #e0e0e0;
    --text-dim: #888;
    --neon-glow: 0 0 10px #bf5af2, 0 0 20px #bf5af2, 0 0 30px #9b4dca;
    --neon-glow-subtle: 0 0 5px #bf5af2, 0 0 10px #9b4dca;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: var(--neon-glow);
}

header .highlight {
    color: var(--primary);
    font-weight: 700;
}

.subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Main Mixer Board */
.mixer-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
}

/* Decks */
.deck {
    background: var(--bg-deck);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--secondary);
    box-shadow: var(--neon-glow-subtle), inset 0 0 30px rgba(0,0,0,0.5);
}

.deck h2 {
    text-align: center;
    color: var(--primary);
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: var(--neon-glow-subtle);
}

/* Vinyl */
.vinyl-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.vinyl-container canvas {
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.3);
}

/* Waveform */
.waveform {
    width: 100%;
    height: 60px;
    background: #0a0a15;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

/* Track Selector */
.track-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.track-selector label {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.track-selector select {
    flex: 1;
    min-width: 100px;
    padding: 8px;
    background: var(--bg-panel);
    color: var(--text);
    border: 1px solid var(--secondary);
    border-radius: 5px;
    cursor: pointer;
}

.load-btn {
    padding: 8px 15px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.load-btn:hover {
    background: var(--primary);
    box-shadow: var(--neon-glow-subtle);
}

/* Transport */
.transport {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.play-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    letter-spacing: 2px;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-glow);
}

.play-btn.playing {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px #ff6b6b; }
    50% { box-shadow: 0 0 25px #ff6b6b, 0 0 40px #ee5a5a; }
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.control-group {
    flex: 1;
    text-align: center;
}

.control-group label {
    display: block;
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Sliders - Webkit */
.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-panel);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--neon-glow-subtle);
    transition: all 0.2s;
    border: none;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--neon-glow);
}

/* Sliders - Firefox */
.slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: var(--bg-panel);
    border-radius: 4px;
    border: none;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--neon-glow-subtle);
    border: none;
}

.slider::-moz-range-thumb:hover {
    box-shadow: var(--neon-glow);
}

.pitch-slider {
    background: linear-gradient(to right, #ff6b6b 0%, var(--bg-panel) 50%, #4ecdc4 100%);
}

.pitch-slider::-moz-range-track {
    background: linear-gradient(to right, #ff6b6b 0%, var(--bg-panel) 50%, #4ecdc4 100%);
}

/* EQ Section */
.eq-section {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
}

.eq-section h3 {
    text-align: center;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.eq-controls {
    display: flex;
    justify-content: space-around;
}

.eq-knob {
    text-align: center;
}

.eq-knob label {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.eq-slider {
    width: 60px;
    height: 6px;
}

.eq-slider::-moz-range-track {
    height: 6px;
}

/* Center Mixer */
.mixer-center {
    background: var(--bg-panel);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--secondary);
    box-shadow: var(--neon-glow-subtle);
}

#spectrum {
    background: #0a0a15;
    border-radius: 10px;
    border: 1px solid #333;
}

/* Crossfader - Webkit */
.crossfader-section {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.crossfader-section label {
    color: var(--primary);
    font-weight: bold;
}

.crossfader {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex: 1;
    height: 12px;
    background: linear-gradient(to right, var(--primary) 0%, var(--bg-dark) 50%, var(--primary) 100%);
    border-radius: 6px;
    cursor: pointer;
}

.crossfader::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #fff, #ccc);
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: none;
}

/* Crossfader - Firefox */
.crossfader::-moz-range-track {
    flex: 1;
    height: 12px;
    background: linear-gradient(to right, var(--primary) 0%, var(--bg-dark) 50%, var(--primary) 100%);
    border-radius: 6px;
    border: none;
}

.crossfader::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #fff, #ccc);
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: none;
}

/* Master Section */
.master-section {
    width: 100%;
    text-align: center;
}

.master-section label {
    display: block;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.master-slider {
    width: 100%;
}

/* BPM Display */
.bpm-display {
    background: #000;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    border: 2px solid #333;
}

#bpm-value {
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

footer strong {
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .mixer-board {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mixer-center {
        order: -1;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .deck {
        padding: 15px;
    }

    .vinyl-container canvas {
        width: 150px;
        height: 150px;
    }

    .play-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .controls {
        flex-direction: column;
        gap: 15px;
    }

    .crossfader-section {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header h1 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .track-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .track-selector select {
        width: 100%;
    }

    .eq-controls {
        gap: 5px;
    }

    .eq-slider {
        width: 50px;
    }
}

/* Touch-friendly adjustments - Webkit */
@media (pointer: coarse) {
    .slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .crossfader::-webkit-slider-thumb {
        width: 40px;
        height: 40px;
    }

    /* Touch-friendly adjustments - Firefox */
    .slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .crossfader::-moz-range-thumb {
        width: 40px;
        height: 40px;
    }

    .play-btn {
        padding: 18px 45px;
    }
}
