/* Music Modal Styles */

/* Header Music Button */
.music-modal-btn {
    background: transparent;
    border: none;
    color: #00ff41 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    font-size: 26.25px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.music-modal-btn::before,
.music-modal-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 255, 65, 0.7);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

.music-modal-btn::after {
    animation-delay: 1s;
}

.music-modal-btn:hover {
    color: #00ff00 !important;
    text-shadow: 0 0 15px var(--matrix-green);
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.9));
    transform: scale(1.15);
}

.music-modal-btn:hover::before,
.music-modal-btn:hover::after {
    animation: none;
}

@keyframes pulseRing {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 220%;
        height: 220%;
        opacity: 0;
    }
}

/* Music Modal */
.music-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.music-modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 2px solid var(--matrix-green);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.music-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--matrix-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-modal-header h2 {
    color: var(--matrix-green);
    margin: 0;
    font-size: 24px;
    font-family: 'Orbitron', sans-serif;
}

.music-modal-header h2 i {
    margin-right: 10px;
}

.music-modal-close {
    background: transparent;
    border: none;
    color: var(--matrix-green);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.music-modal-close:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--matrix-green);
}

.music-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* Track List */
.music-track-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.music-track-item {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.music-track-item:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--matrix-green);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.music-track-item.active {
    background: rgba(0, 255, 0, 0.15);
    border-color: var(--matrix-green);
    position: relative;
    overflow: hidden;
}

.music-track-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 0, 0.1) 25%, 
        rgba(0, 255, 0, 0.2) 50%, 
        rgba(0, 255, 0, 0.1) 75%, 
        transparent 100%);
    animation: wave 2s linear infinite;
    z-index: 0;
}

.music-track-item.active > * {
    position: relative;
    z-index: 1;
}

@keyframes wave {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.track-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.track-title {
    color: var(--matrix-green);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: rgba(0, 255, 0, 0.7);
    font-size: 14px;
}

.track-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.track-play-btn,
.track-youtube-btn {
    background: transparent;
    border: 1px solid var(--matrix-green);
    color: var(--matrix-green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.track-play-btn:hover,
.track-youtube-btn:hover {
    background: var(--matrix-green);
    color: #000;
    box-shadow: 0 0 15px var(--matrix-green);
}

/* Responsive */
@media (max-width: 768px) {
    .music-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .music-modal-header h2 {
        font-size: 20px;
    }
    
    .track-title {
        font-size: 14px;
    }
    
    .track-artist {
        font-size: 12px;
    }
    
    .track-image {
        width: 50px;
        height: 50px;
    }
    
    .track-play-btn,
    .track-youtube-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Scrollbar styling for modal */
.music-modal-body::-webkit-scrollbar {
    width: 8px;
}

.music-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.1);
    border-radius: 10px;
}

.music-modal-body::-webkit-scrollbar-thumb {
    background: var(--matrix-green);
    border-radius: 10px;
}

.music-modal-body::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
}

