/* ===== PLAYLIST SECTION ===== */
#playlist {
    position: relative;
    padding: 100px 0;
    background-color: var(--background-darker);
}

.playlist-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 10, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    z-index: 0;
    overflow: hidden;
}

.playlist-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" opacity="0.05"><path fill="%234CAF50" d="M30,10 C33,16 38,20 45,22 C38,24 33,28 30,35 C27,28 22,24 15,22 C22,20 27,16 30,10 Z"/></svg>');
    background-size: 60px 60px;
    opacity: 0.15;
    z-index: 0;
}

#playlist .container {
    position: relative;
    z-index: 1;
}

.playlist-tabs {
    margin-bottom: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    padding: 10px 25px;
    cursor: pointer;
    position: relative;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-white);
}

.tab-btn.active {
    color: var(--brand-green);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--brand-green);
}

.tab-btn:hover::before {
    content: "\f001"; /* Music note icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--brand-green);
    opacity: 0;
    animation: float-up 0.5s ease forwards;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -10px);
    }
}

.playlist-container {
    position: relative;
    min-height: 500px;
}

.playlist {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.playlist.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.playlist-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.playlist-cover {
    width: 150px;
    height: 150px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-right: 30px;
}

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

.playlist-info {
    flex: 1;
}

.playlist-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-white);
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
}

.playlist-info p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.playlist-stats {
    display: flex;
    gap: 20px;
}

.playlist-stats span {
    color: var(--brand-green);
    font-size: 0.9rem;
}

.playlist-stats span i {
    margin-right: 5px;
}

.playlist-tracks {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
}

.track {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.track:last-child {
    border-bottom: none;
}

.track:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.track-number {
    width: 30px;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
}

.track-info {
    flex: 1;
    margin-left: 15px;
}

.track-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--text-white);
}

.track-info p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.track-duration {
    margin-right: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

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

.play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--brand-green);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn .fa-play::before {
    content: "\f04b"; /* Play icon code */
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.music-player-container {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.now-playing {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.now-playing-cover {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.now-playing-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.now-playing-info h4 {
    font-size: 1rem;
    margin-bottom: 3px;
    color: var(--text-white);
}

.now-playing-info p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.play-pause {
    width: 50px;
    height: 50px;
    background-color: var(--brand-green);
}

.play-pause:hover {
    background-color: var(--brand-green-dark);
    transform: scale(1.1);
}

.player-progress {
    flex: 1;
    margin: 0 20px;
    min-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 35%;
    background-color: var(--brand-green);
    border-radius: 3px;
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-volume i {
    color: var(--text-gray);
    cursor: pointer;
}

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

.volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 70%;
    background-color: var(--brand-green);
    border-radius: 3px;
}

.streaming-services {
    margin-top: 40px;
    text-align: center;
}

.streaming-services p {
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.streaming-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.streaming-links a {
    font-size: 1.8rem;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.streaming-links a:hover {
    color: var(--brand-green);
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .playlist-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .playlist-cover {
        margin-bottom: 20px;
        margin-right: 0;
    }
    
    .music-player-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .now-playing {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .player-progress {
        width: 100%;
        margin: 20px 0;
    }
}

@media screen and (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .tab-btn.active::after {
        bottom: -5px;
    }
    
    .track {
        flex-wrap: wrap;
    }
    
    .track-info {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        order: -1;
    }
    
    .track-number {
        width: auto;
        margin-right: 10px;
    }
    
    .track-actions {
        margin-left: auto;
    }
}

@media screen and (max-width: 480px) {
    .playlist-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .player-controls {
        width: 100%;
        justify-content: center;
    }
    
    .player-volume {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* Enhanced Mobile Responsiveness for Playlist Section */
@media screen and (max-width: 576px) {
    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
        letter-spacing: 0.5px;
    }
    
    .tab-btn.active::after {
        bottom: -14px;
        width: 50%;
        height: 2px;
    }
    
    .playlist-header {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .playlist-stats {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .track {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .track-info {
        flex: 0 0 60%;
        order: 1;
    }
    
    .track-number {
        order: 0;
        width: 25px;
    }
    
    .track-duration {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }
    
    .track-actions {
        order: 3;
        margin-top: 5px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .streaming-services {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .streaming-links {
        justify-content: center;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 380px) {
    .tab-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .playlist-cover {
        width: 100px;
        height: 100px;
    }
    
    .playlist-info h3 {
        font-size: 1.3rem;
    }
    
    .playlist-info p {
        font-size: 0.8rem;
    }
    
    .track-info h4 {
        font-size: 0.8rem;
    }
    
    .track-info p {
        font-size: 0.7rem;
    }
    
    .play-btn {
        width: 28px;
        height: 28px;
    }
    
    .player-controls .control-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
} 