/**
 * Persistent Audio Player UI Styles
 */

.audio-player-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-control-btn {
    width: 55px;
    height: 55px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.audio-control-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-control-btn:hover {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.audio-control-btn:hover::before {
    opacity: 1;
}

.audio-control-btn:active {
    transform: scale(0.95);
}

.audio-control-btn i {
    z-index: 1;
    transition: transform 0.3s ease;
}

.audio-control-btn:hover i {
    transform: scale(1.1);
}

/* Volume Control */
.audio-volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 12px 18px;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.audio-player-container:hover .audio-volume-control {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.audio-volume-icon {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.audio-volume-icon:hover {
    color: #667eea;
}

.audio-volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.audio-volume-slider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--volume-width, 50%);
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.2s ease;
}

.audio-volume-slider:hover::before {
    background: linear-gradient(90deg, #764ba2, #f093fb);
}

/* Pulse Animation when playing */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.audio-control-btn.playing {
    animation: pulse 2s infinite;
}

/* Progress Indicator (optional) */
.audio-progress-ring {
    position: absolute;
    width: 65px;
    height: 65px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.audio-progress-ring circle {
    fill: none;
    stroke: rgba(102, 126, 234, 0.5);
    stroke-width: 2;
    stroke-dasharray: 188.5;
    stroke-dashoffset: 188.5;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.5s ease;
}

/* Responsive */
@media (max-width: 991px) {
    .audio-player-container {
        top: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .audio-control-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .audio-player-container {
        top: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .audio-control-btn {
        width: 45px;
        height: 45px;
        font-size: 15px;
    }
    
    .audio-volume-control {
        padding: 10px 15px;
    }
    
    .audio-volume-slider {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .audio-player-container {
        top: 10px;
        right: 10px;
    }
    
    .audio-control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* Hide volume control on mobile, just show mute button */
    .audio-volume-control {
        display: none;
    }
}

/* Tooltip */
.audio-control-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.audio-control-btn:hover::after {
    opacity: 1;
}
