/* Synthesis Course Styles */

/* Custom range slider */
.synth-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    outline: none;
}

.synth-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #A78BFA;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.synth-slider::-webkit-slider-thumb:hover {
    background: #c4b5fd;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.synth-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #A78BFA;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

.synth-slider::-moz-range-thumb:hover {
    background: #c4b5fd;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

/* Waveform buttons */
.wave-btn {
    color: #a0a0a0;
    transition: all 0.2s;
}

.wave-btn:hover {
    color: #f5f5f5;
    border-color: #A78BFA;
}

.wave-btn.active {
    border-color: #A78BFA;
    color: #A78BFA;
    background: rgba(167, 139, 250, 0.1);
}

.wave-btn.active svg {
    color: #A78BFA;
}

/* Active lesson nav */
.lesson-nav-link.active {
    background: rgba(167, 139, 250, 0.1);
    color: #A78BFA;
}

/* Canvas styles */
#waveform-canvas {
    image-rendering: pixelated;
}

/* Tool disabled state */
.synth-tool.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.synth-tool.disabled::after {
    content: 'Enable audio to use this tool';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem 2rem;
    border-radius: 12px;
    color: #a0a0a0;
    font-size: 0.875rem;
    border: 1px solid #2a2a2a;
}

/* Vertical sliders for ADSR */
.vertical-slider {
    -webkit-appearance: slider-vertical;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 8px;
    height: 120px;
}

/* Touch-friendly on mobile */
@media (max-width: 768px) {
    .synth-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .synth-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .wave-btn {
        padding: 0.75rem;
    }

    /* Fix Hold to Play buttons on mobile */
    .btn-play {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .btn-play span {
        display: inline;
    }
}
