@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* ✅ Reset and Base Styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

.container {
    height: 100vh;
    width: 100vw;
}

/* ✅ Sidebar Layout */
.left {
    min-width: 330px;
    width: 22%;
    height: 100%;
    padding: 10px;
}

.right {
    width: 78%;
    height: 96%;
    position: relative;
    background-color: rgb(17, 17, 17);
    border-radius: 12px;
    margin: 15px;
}

.left .close {
    display: none;
}

/* ✅ Sidebar Sections */
.home {
    height: fit-content;
}

.home ul li {
    list-style-type: none;
    width: 1rem;
    gap: 15px;
    padding-top: 14px;
    font-weight: bold;
}

.heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 14px;
    font-weight: bold;
    font-size: .7rem;
}

.heading > img {
    width: 1.2rem;
}

.heading > span {
    margin-left: auto;
    font-size: 1.2rem;
    color: gray;
}

.library {
    height: 82.6%;
    display: flex;
    flex-direction: column;
}

.song-list {
    overflow-y: scroll;
    padding: 14px;
    margin-top: 10px;
}

.song-list ul {
    margin-top: 12px;
}

.song-list ul li {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 10px;
    border: 1px solid white;
    border-radius: 6px;
    padding: 7px;
}

.song-list ul li .music-info {
    font-size: 11px;
    width: 102px;
}

.song-list ul li span {
    margin-left: auto;
    font-size: 10px;
    width: 45px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 14px;
    margin-top: auto;
    padding: 10px;
}

.footer a {
    color: gray;
}

/* ✅ Header */
.header {
    background-color: rgb(25, 25, 25);
}

.header > * {
    padding: 1.2rem;
}

.header .buttons {
    display: flex;
    gap: 1.4rem;
}

.header .buttons .signupBtn {
    background-color: rgb(25, 25, 25);
    color: rgb(129, 129, 129);
    font-size: .9rem;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
}

.header .buttons .signupBtn:hover {
    color: white;
    font-size: 1rem;
}

.header .buttons .loginBtn {
    background-color: #fff;
    color: rgb(0, 0, 0);
    font-size: .9rem;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50px;
    width: 6rem;
    height: 2rem;
}

.header .buttons .loginBtn:hover {
    font-weight: bold;
    border: 2px solid rgb(0, 0, 0);
}

.header .hamburger {
    display: none;
}

/* ✅ Playlist Cards */
.spotify-playlists {
    padding: 16px;
    max-height: 80vh;
    overflow-y: scroll;
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 30px;
}

.spotify-playlists .card-container {
    overflow-x: hidden;
    width: 97%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: all .5s ease;
    padding: 22px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.spotify-playlists .card {
    padding: 10px;
    border-radius: 4px;
    background-color: rgb(36 36 36);
    position: relative;
    width: 18%;
    transition: all .5s ease;
    flex: 1 1 230px;
    max-width: 270px;
    min-width: 200px;
    box-sizing: border-box;
    height: 350px;
}

.spotify-playlists .card:hover {
    background-color: rgb(22, 22, 22);
}

.card > * {
    padding-top: 10px;
}

.card img {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
    border-radius: 4px;
}

.card .play-button {
    position: absolute;
    background-color: #00FF00;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    top: 53%;
    right: 8%;
    opacity: 0;
    transition: all .4s ease-out;
}

.card .play-button img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transform: translate(14%,-9%);
}

.card:hover .play-button {
    opacity: 1;
}

/* ✅ Bottom Playbar */
.playBar {
    position: absolute;
    bottom: 12px;
    background-color: rgb(30, 39, 38);
    width: 98%;
    border-radius: 8px;
    margin: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.song-info-controls {
    margin: 0 12px;
}

.seek-bar {
    position: relative;
    width: 100%;
    height: 3px;
    border-radius: 50px;
    background-color: white;
}

.circle {
    position: absolute;
    height: 1rem;
    width: 1rem;
    background-color: #fff;
    border-radius: 50px;
    top: -7px;
    left: 0%;
    transition: left 0.5s ease;
}

.song-info {
    width: 30%;
}

.song-adjustments {
    margin-left: auto;
}

.song-controls {
    margin: 0 auto 0 auto;
}

/* ✅ Responsive Layouts */
@media (max-width: 1400px) {
    .left {
        position: absolute;
        left: -110%;
        z-index: 1;
        transition: left .8s ease;
        width: 350px;
        background-color: #111111;
        height: 100%;
    }
    .left .close {
        display: block;
        position: absolute;
        left: 280px;
        top: 27px;
    }
    .left .home, .left .library {
        background-color: #111111;
    }
    .left .song-list {
        width: fit-content;
    }
    .right {
        width: 100%;
        margin: 0;
    }
    .header .hamburger {
        display: inline;
        margin-right: 57px;
    }
    .song-adjustments {
        margin-left: 0;
    }
    .spotify-playlists {
        padding-bottom: 90px;
    }
}
@media (max-width: 1400px) and (min-width: 1000px) {
    .card-container .card{
        max-width: 210px;
        height: 310px;
    }
}
@media (max-width: 780px) {
    .header .hamburger {
        margin-right: 25px;
    }
    .playBar {
        width: 94%;
    }
    .song-info-controls {
        flex-direction: column;
        gap: 7px;
    }
    .spotify-playlists {
        padding-bottom: 90px;
    }
    .card-container {
        margin: 0;
    }
    .song-info {
        width: fit-content;
    }
}

@media (max-width: 583px) {

    .spotify-playlists .card-container {
        justify-content: center; 
        margin: 0 auto;
    }
    .card-container .card {
        min-width: 190px;
        max-width: 75%;
    }
    .card-container .card>img{
        height: 250px;
    }
}
