/* Music Player Styles for Nomadify.org */

/* Sticky Music Icon */
.sticky-music-icon {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.sticky-music-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.sticky-music-icon i {
    color: white;
    font-size: 24px;
}

.sticky-music-icon.hidden {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* Music Player Card on Resources Page */
.music-player-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin: 20px 0;
}

.music-player-card:hover {
    transform: translateY(-5px);
}

.music-player-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.music-player-card p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.music-player-card .music-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.music-player-card .play-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.music-player-card .play-button:hover {
    background: white;
    color: #667eea;
    transform: scale(1.05);
}

/* Music Player Window */
.music-player-window {
    width: 400px;
    height: 600px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    padding: 20px;
    color: white;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.music-player-header {
    text-align: center;
    margin-bottom: 30px;
}

.music-player-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.music-player-header p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Album Art */
.album-art {
    width: 280px;
    height: 280px;
    border-radius: 15px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Track Info */
.track-info {
    text-align: center;
    margin-bottom: 20px;
}

.track-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.track-artist {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.track-album {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Progress Bar */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Control Buttons */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-btn.play-pause {
    width: 60px;
    height: 60px;
    background: white;
    color: #2a5298;
    font-size: 1.5rem;
}

.control-btn.play-pause:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Playlist */
.playlist {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 20px;
}

.playlist-item {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
    background: rgba(255, 255, 255, 0.2);
}

.playlist-item .track-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.playlist-item .track-duration {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sticky-music-icon {
        bottom: 45px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .sticky-music-icon i {
        font-size: 20px;
    }
    
    .music-player-window {
        width: 90vw;
        max-width: 350px;
        height: 90vh;
        max-height: 550px;
    }
    
    .album-art {
        width: 240px;
        height: 240px;
    }
}

/* Scrollbar Styling */
.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

