/* Ses testi özel stilleri */

.audio-player-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.equalizer-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

#equalizer-canvas {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.audio-controls {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.control-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.control-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-range {
    background: transparent;
}

.form-range::-webkit-slider-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    height: 8px;
}

.form-range::-webkit-slider-thumb {
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-range::-moz-range-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    height: 8px;
    border: none;
}

.form-range::-moz-range-thumb {
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Equalizer bars animation */
.equalizer-bar {
    background: linear-gradient(to top, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 2px;
    transition: height 0.1s ease;
    margin: 0 1px;
}

/* Audio controls buttons */
.audio-controls .btn {
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.audio-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.audio-controls .btn-primary {
    background: rgba(13, 110, 253, 0.8);
    border-color: rgba(13, 110, 253, 0.5);
}

.audio-controls .btn-secondary {
    background: rgba(108, 117, 125, 0.8);
    border-color: rgba(108, 117, 125, 0.5);
}

.audio-controls .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Value displays */
#volume-value,
#balance-value,
#bass-value,
#treble-value {
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Audio info section */
.audio-info {
    border: 1px solid rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.audio-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .audio-player-container {
        padding: 1rem;
    }
    
    .audio-controls {
        padding: 1rem;
    }
    
    .control-group {
        padding: 0.75rem;
        margin-top: 0.75rem !important;
    }
    
    #equalizer-canvas {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .audio-player-container {
        padding: 0.75rem;
    }
    
    #equalizer-canvas {
        height: 120px;
    }
    
    .control-group label {
        font-size: 0.9rem;
    }
}

/* Loading animation for audio */
.audio-loading {
    position: relative;
    overflow: hidden;
}

.audio-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: audio-shimmer 2s infinite;
}

@keyframes audio-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Pulse animation for playing state */
.playing-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(13, 110, 253, 0.6);
    }
}

/* Accessibility improvements */
.form-range:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .audio-player-container {
        background: #000;
        border: 2px solid #fff;
    }
    
    .control-group {
        border: 1px solid #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .equalizer-bar,
    .audio-controls .btn,
    .audio-info {
        transition: none;
        animation: none;
    }
}
