/**
 * FlyMacroPilot - Audio Controls CSS
 * Styling for sound toggle and volume slider
 */

/* Audio toggle button */
.audio-toggle {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 1.2rem;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-toggle:hover {
    background: rgba(100, 200, 255, 0.2);
    border-color: rgba(100, 200, 255, 0.6);
    transform: scale(1.05);
}

.audio-toggle:active {
    transform: scale(0.95);
}

.audio-toggle.muted {
    opacity: 0.6;
}

/* Audio controls container */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Volume slider */
.audio-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 6px;
    background: rgba(100, 200, 255, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #64c8ff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.audio-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.audio-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #64c8ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Header audio control placement */
.header-audio {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* Footer audio control (alternative placement) */
.footer-audio {
    position: fixed;
    bottom: 70px;
    right: 15px;
    z-index: 100;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .audio-volume-slider {
        width: 60px;
    }
    
    .audio-toggle {
        font-size: 1rem;
        padding: 5px 8px;
    }
    
    .footer-audio {
        bottom: 80px;
        right: 10px;
    }
}

/* Sound feedback animation */
@keyframes soundPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.audio-toggle.playing {
    animation: soundPulse 0.2s ease;
}
