/**
 * D&D AI RPG - Audio System Styles
 * Audio settings UI styling
 */

.audio-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: audioFadeIn 0.3s ease;
}

@keyframes audioFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.audio-settings-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #9b59b6;
    border-radius: 15px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(155, 89, 182, 0.3);
}

.audio-settings-content h2 {
    color: #9b59b6;
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.audio-setting {
    margin-bottom: 20px;
}

.audio-setting label {
    display: block;
    color: #ecf0f1;
    font-size: 14px;
    margin-bottom: 8px;
}

.audio-setting input[type="range"] {
    width: calc(100% - 60px);
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.audio-setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
    transition: transform 0.2s;
}

.audio-setting input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.audio-setting input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.audio-setting .volume-value {
    display: inline-block;
    width: 50px;
    text-align: right;
    color: #9b59b6;
    font-weight: bold;
    font-size: 14px;
    margin-left: 10px;
}

.audio-setting.mute-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mute-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.mute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.mute-btn.muted {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.mute-btn.muted:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.audio-close-btn {
    display: block;
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    background: rgba(127, 140, 141, 0.3);
    border: 2px solid #7f8c8d;
    border-radius: 8px;
    color: #bdc3c7;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.audio-close-btn:hover {
    background: rgba(127, 140, 141, 0.5);
    border-color: #95a5a6;
}

/* Audio toggle button for game UI */
.audio-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.audio-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.5);
}

.audio-toggle-btn.muted {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

/* Now Playing indicator */
.now-playing {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(155, 89, 182, 0.5);
    border-radius: 8px;
    padding: 10px 15px;
    color: #ecf0f1;
    font-size: 12px;
    z-index: 999;
    animation: slideIn 0.3s ease;
    max-width: 200px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.now-playing .track-icon {
    margin-right: 8px;
}

.now-playing .track-name {
    color: #9b59b6;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 500px) {
    .audio-settings-content {
        padding: 20px;
        max-width: 95%;
    }

    .audio-setting input[type="range"] {
        width: calc(100% - 50px);
    }

    .audio-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}
