/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Orbitron:wght@400;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    width: 90%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff;
    }
    to {
        text-shadow: 0 0 20px #0099cc, 0 0 40px #0099cc;
    }
}

/* File input styling */
.file-input-container {
    margin-bottom: 2rem;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Song info */
.song-info {
    margin-bottom: 2rem;
}

#songTitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#songDuration {
    font-size: 1rem;
    opacity: 0.8;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.control-btn:active {
    transform: translateY(0);
}

/* Progress bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: 'Orbitron', monospace;
}

.progress-slider {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    transition: all 0.3s ease;
}

.progress-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

/* Volume slider */
.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.volume-slider {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #a8e6cf 0%, #ffd3a5 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(168, 230, 207, 0.6);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(168, 230, 207, 0.8);
}

/* Equalizer */
.equalizer-container {
    margin-bottom: 2rem;
}

.equalizer-container h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.eq-sliders {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.eq-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.eq-slider label {
    font-size: 0.9rem;
    font-weight: 500;
}

.eq-range {
    width: 60px;
    height: 120px;
    writing-mode: bt-lr; /* Vertical slider */
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.eq-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #00d4ff 0%, #0099cc 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    transition: all 0.3s ease;
}

.eq-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}

/* Visualizer */
#visualizer {
    width: 100%;
    max-width: 800px;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Theme button */
.theme-container {
    margin-top: 2rem;
}

.theme-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .title {
        font-size: 2rem;
    }

    .controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .control-btn {
        width: 100%;
        max-width: 200px;
    }

    .progress-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .volume-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .volume-slider {
        width: 100%;
        max-width: 200px;
    }

    #visualizer {
        height: 150px;
    }
}

/* Additional animations */
.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.control-btn, .file-label, .theme-btn {
    position: relative;
    overflow: hidden;
}

.control-btn::before, .file-label::before, .theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.control-btn:hover::before, .file-label:hover::before, .theme-btn:hover::before {
    left: 100%;
}
