/* Modern Audio Player Styles */
.audio-player-container {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-player-container:hover {
    transform: translateY(-5px);
}

/* Ripple Animation for Icon */
.audio-icon-wrapper {
    position: relative;
}

.ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: ripple 2s infinite;
    border-radius: 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Custom Audio Player */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.play-pause-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #60A5FA);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    transform: scale(1.1);
}

.progress-bar-wrapper {
    flex-grow: 1;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #60A5FA);
    width: 0;
    border-radius: 3px;
    position: relative;
    transition: width 0.1s linear;
}

.progress-indicator::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress-indicator::after {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s;
}

.volume-btn:hover {
    color: white;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-progress {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #60A5FA);
    width: 100%;
    border-radius: 2px;
}

/* Audio Visualization */
.audio-visualization {
    margin-top: 1rem;
}

.wave-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
}

.wave-bar {
    width: 4px;
    background: linear-gradient(to top, #4F46E5, #60A5FA);
    border-radius: 2px;
    animation: wave-animation 1.2s ease-in-out infinite;
}

@keyframes wave-animation {
    0%, 100% {
        height: 8px;
    }
    50% {
        height: 30px;
    }
}

/* Generate delays for wave bars */
.wave-bar:nth-child(1) { animation-delay: -1.2s; }
.wave-bar:nth-child(2) { animation-delay: -1.1s; }
.wave-bar:nth-child(3) { animation-delay: -1.0s; }
.wave-bar:nth-child(4) { animation-delay: -0.9s; }
.wave-bar:nth-child(5) { animation-delay: -0.8s; }
.wave-bar:nth-child(6) { animation-delay: -0.7s; }
.wave-bar:nth-child(7) { animation-delay: -0.6s; }
.wave-bar:nth-child(8) { animation-delay: -0.5s; }
.wave-bar:nth-child(9) { animation-delay: -0.4s; }

/* Pause animation when audio is paused */
.paused .wave-bar {
    animation-play-state: paused;
}

/* Add smooth transitions */
.custom-audio-player * {
    transition: all 0.3s ease;
}
