/* 
File: app/code/ProducersFactory/MusicPlayer/view/frontend/web/css/modern-player.css
Converted from _modern-player.less for production use
*/

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

/* Main Player Container */
.music-player-modern {
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    min-height: 200px;
    max-width: 800px;
    margin: 0 auto;
}

.music-player-modern:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.2);
}

/* Loading state */
.music-player-modern.is-loading .player-container {
    opacity: 0.7;
}

/* Playing state */
.music-player-modern.is-playing .play-btn-main {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.music-player-modern.is-playing .play-btn-main:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.music-player-modern.is-playing .album-art-container {
    animation: pulse 2s ease-in-out infinite;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-overlay .spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Player Container */
.player-container {
    padding: 24px;
    color: white;
    transition: opacity 0.3s ease;
}

/* Track Info Section */
.track-info-section {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

@media (max-width: 768px) {
    .track-info-section {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

.album-art-container {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.album-art-container .album-art,
.album-art-container .album-art-default {
    width: 100%;
    height: 100%;
}

.album-art-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-art-container .album-art-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-player-modern.is-playing .album-art-overlay {
    opacity: 1;
}

.equalizer {
    display: flex;
    gap: 2px;
    align-items: end;
}

.equalizer .eq-bar {
    width: 3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    animation: equalizer 1.5s ease-in-out infinite;
}

.equalizer .eq-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.equalizer .eq-bar:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.equalizer .eq-bar:nth-child(3) { height: 6px; animation-delay: 0.4s; }
.equalizer .eq-bar:nth-child(4) { height: 10px; animation-delay: 0.6s; }

@keyframes equalizer {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.3); }
}

.track-details {
    flex: 1;
    min-width: 0;
}

.track-details .track-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-details .track-artist {
    font-size: 16px;
    color: #9ca3af;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-details .track-meta {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.track-details .track-meta > span {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 12px;
}

.track-details .track-preview-notice .preview-badge {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Main Controls */
.main-controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .main-controls-section {
        flex-direction: column;
        gap: 16px;
    }
}

.playback-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.control-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.1);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.play-btn-main {
    position: relative;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.play-btn-main:hover {
    transform: translateY(-2px);
}

.play-btn-main .play-btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.play-btn-main .play-icon,
.play-btn-main .pause-icon {
    position: relative;
    z-index: 1;
}

/* Secondary Controls */
.secondary-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .secondary-controls {
        justify-content: center;
        order: -1;
    }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-control .volume-icon {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.volume-control:hover .volume-icon {
    color: #3b82f6;
}

.volume-slider {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: #374151;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}

/* Waveform Section */
.waveform-section {
    margin-bottom: 16px;
}

.waveform-section .waveform-container {
    width: 100%;
    height: 60px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.waveform-section .waveform-container:hover {
    background: rgba(255, 255, 255, 0.08);
}

.waveform-section .waveform-container .waveform-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.waveform-section .progress-bar-fallback {
    height: 4px;
    background: #374151;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.waveform-section .progress-bar-fallback:hover {
    height: 6px;
}

.waveform-section .progress-bar-fallback .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.1s ease;
}

/* Time Display */
.time-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 20px;
    font-weight: 500;
}

.time-display .time-separator {
    color: #6b7280;
}

/* Purchase Section */
.purchase-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-section .license-select {
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    color: white;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.purchase-section .license-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.purchase-section .license-select:hover {
    border-color: #6b7280;
}

.purchase-section .add-to-cart-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.purchase-section .add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.purchase-section .add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.purchase-section .add-to-cart-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 ease;
}

.purchase-section .add-to-cart-btn:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .music-player-modern {
        border-radius: 12px;
        margin: 16px;
    }
}

@media (max-width: 768px) {
    .music-player-modern {
        border-radius: 8px;
        margin: 12px;
    }

    .music-player-modern .player-container {
        padding: 16px;
    }

    .music-player-modern .track-title {
        font-size: 18px;
    }

    .music-player-modern .track-artist {
        font-size: 14px;
    }

    .music-player-modern .play-btn-main {
        width: 48px;
        height: 48px;
    }

    .music-player-modern .album-art-container {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .music-player-modern {
        margin: 8px;
    }

    .music-player-modern .player-container {
        padding: 12px;
    }

    .music-player-modern .main-controls-section {
        gap: 12px;
    }

    .music-player-modern .playback-controls {
        gap: 12px;
    }

    .music-player-modern .secondary-controls {
        gap: 12px;
    }

    .music-player-modern .volume-slider {
        width: 60px;
    }
}