/* =================================================================
   UNDERGROUND FARMER - SOUND EFFECTS STYLES
   ================================================================= */

/* Sound Settings Section in Settings Dialog */
.settings-section.sounds-section {
    border-top: 1px solid #654321;
    padding-top: 15px;
    margin-top: 15px;
}

.sounds-section h4 {
    color: #daa520;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sounds-section h4::before {
    content: "🔊";
    font-size: 16px;
}

/* Sound Volume Control */
.sound-volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(139, 69, 19, 0.2);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.sound-volume-control label {
    color: #daa520;
    font-weight: bold;
    min-width: 80px;
}

.sound-volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #8b4513 0%, #daa520 100%);
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

.sound-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #daa520;
    border: 2px solid #8b4513;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sound-volume-slider::-webkit-slider-thumb:hover {
    background: #ffd700;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.sound-volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #daa520;
    border: 2px solid #8b4513;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sound-volume-slider::-moz-range-thumb:hover {
    background: #ffd700;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.sound-volume-display {
    color: #daa520;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    font-size: 14px;
}

/* Sound Enable Checkbox */
.sound-enable-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sound-enable-checkbox:hover {
    background: rgba(139, 69, 19, 0.2);
}

.sound-enable-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #daa520;
}

.sound-enable-checkbox label {
    color: #daa520;
    cursor: pointer;
    flex: 1;
    font-weight: 500;
}

/* Sound Test Buttons */
.sound-test-section {
    margin-top: 15px;
    padding: 12px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.sound-test-section h5 {
    color: #daa520;
    margin-bottom: 10px;
    font-size: 14px;
}

.sound-test-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.sound-test-btn {
    background: linear-gradient(to bottom, #8b4513, #654321);
    color: #daa520;
    border: 1px solid #654321;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    text-align: center;
}

.sound-test-btn:hover {
    background: linear-gradient(to bottom, #a0522d, #8b4513);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sound-test-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sound Feedback Animations */
@keyframes soundPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sound-feedback {
    animation: soundPulse 0.3s ease;
}

/* Sound Volume Indicator in Top Bar */
.sound-indicator {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.sound-indicator-icon {
    color: #daa520;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sound-indicator-icon:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.sound-indicator.muted .sound-indicator-icon {
    color: #666;
    text-decoration: line-through;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sound-volume-control {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .sound-volume-control label {
        min-width: auto;
        text-align: center;
    }
    
    .sound-test-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sound-test-btn {
        font-size: 11px;
        padding: 8px 6px;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .sound-volume-control,
    .sound-test-section {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .sound-enable-checkbox:hover {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* Animation for sound waves */
@keyframes soundWave {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

.sound-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #daa520;
    border-radius: 50%;
    animation: soundWave 0.6s ease-out;
    pointer-events: none;
}

/* Sound notification styles */
.sound-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(139, 69, 19, 0.95);
    color: #daa520;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #654321;
    z-index: 1000;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.sound-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.sound-notification.fade-out {
    opacity: 0;
    transform: translateX(100%);
} 