@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bgcolor: #121212;
    --secondarybg: #1f1f1f;
    --sidebg: #202020;
    --graybg: #656565;
    --text-color: #b0b0b0;
    --spotify-green: #1DB954;
    --font: "Roboto", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: white;
    font-family: var(--font);
}

a {
    text-decoration: none;
    color: white;
}

/* NAVIGATION */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    color: var(--text-color);
}

.nav-left,
.nav-center,
.nav-right {
    flex: 1;
}

.nav-left {
    display: flex;
    gap: 20px;
    justify-content: start;
    align-items: center;
}

/* CENTER SEARCH BAR + ICON */
.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.home-container {
    width: 40px;
    height: 40px;
    background-color: var(--bgcolor);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    padding: 8px 16px;
    background-color: var(--secondarybg);
    border-radius: 50px;
}

.search-container input {
    border: none;
    background: transparent;
    outline: none;
    color: white;
    font-size: 16px;
    flex: 1;
}

.search-container input::placeholder {
    font-weight: 500;
    color: var(--text-color);
}

/* RIGHT NAV */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.nav-right a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.nav li {
    list-style-type: none;
    white-space: nowrap;
    font-size: 17px;
}

.log-in {
    background-color: white;
    padding: 12px 25px;
    border-radius: 50px;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.menu {
    background-color: white;
    padding: 12px 25px;
    border-radius: 50px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    display: none;
}

/* MAIN LAYOUT */
main {
    margin: 0px 12px;
}

/* LEFT PANEL */
.left {
    width: 25%;
    background-color: var(--bgcolor);
    height: 90vh;
    min-height: 90vh;
    border-radius: 10px;
    position: relative;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.add-lib {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    padding: 20px;
}

.side-box {
    background-color: var(--secondarybg);
    margin: 30px 10px;
    padding: 20px;
    border-radius: 10px;
}

.side-box div:first-child {
    font-size: 18px;
    font-weight: 600;
}

.side-box div:nth-child(2) {
    font-size: 12px;
    margin: 12px 0px;
    font-weight: 400;
}

.side-box button {
    padding: 8px 15px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
}

.songList {
    background-color: var(--secondarybg);
    margin: 30px 10px;
    padding: 20px 20px;
    border-radius: 10px;
    word-wrap: break-word;
    height: 70vh;
    min-height: 70vh;
    overflow: auto;
    /* display: flex; */

}

.songList ul {
    list-style-type: decimal;
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 15px;
}

.songList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid white;
    padding: 10px;
    border-radius: 10px;

}

.info {
    width: 280px;
    cursor: pointer;
}

#play-svg {
    cursor: pointer;
}



.footer {
    position: relative;
    bottom: -15px;
    display: flex;
    font-size: 12px;
    gap: 23px;
    padding: 12px;
    flex-wrap: wrap;


}

.lang {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: transparent;
    color: white;
    gap: 8px;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    margin: 15px;
    margin-top: 35px;
    font-weight: 800;
    cursor: pointer;
}

.lang:hover {
    scale: 1.1;
    font-weight: 750;
    border: 2px solid var(--text-color);

}

.footer a {
    color: var(--text-color);
    white-space: nowrap;

}

.cardContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-height: 70vh;
    max-width: fit-content;
    overflow: auto;
    overflow-x: hidden;
}

.card {
    width: 180px;
    padding: 10px 10px;
    position: relative;
    border-radius: 10px;
    /* border: 2px solid white; */
    height: 300px;
    cursor: pointer;

}

.card:hover {
    background-color: var(--bgcolor);
    transition: 0.5s ease-out;
}

.card img {
    width: 100%;
    object-fit: contain;
    border-radius: 10px;

}

.card p {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    margin: 8px 0px;
}

.playButton {
    background-color: var(--spotify-green);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0px solid transparent;
    position: absolute;
    bottom: 60px;
    right: 0px;
    transform: translateX(-50%);
    transition: bottom 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    z-index: 2;
}

.card:hover .playButton {
    bottom: 140px;
    /* Final visible position */
    opacity: 1;
}


.playButton img {
    /* width: 60%; */
    height: 40%;
    object-fit: contain;
}


/* RIGHT PANEL */
.right {
    width: 75%;
    padding: 40px;
    background-color: var(--secondarybg);
    margin-left: 10px;
    border-radius: 10px;
    position: relative;
    height: 90vh;
    /* height: 70vh; */
    /* min-height: 10%; */
    overflow: hidden;

}

/* .aboveseekbar {
    display: flex;
    justify-content: space-between;
    position: absolute;
} */

.songtime {
    position: relative;
    left: 35px;
    align-self: start;
}

.songbuttons {
    display: flex;
    gap: 15px;
    cursor: pointer;
}

.playBar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: absolute;
    z-index: 10;
    bottom: 0;
    right: 0px;
    background-color: var(--graybg);
    width: 100%;
    padding: 12px;
}

.songinfo {
    position: relative;
    left: 35px;
    align-self: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    display: block;
}

.seekBar {
    /* border: 2px solid white; */
    background-color: black;
    border-radius: 20px;
    width: 95%;
    height: 4px;
    position: relative;
    bottom: 0px;
    cursor: pointer;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 50px;
    background-color: black;
    position: relative;
    bottom: 6px;
    left: 0%;
    transition: left .2s;
}

.songtv {
    display: flex;
    gap: 61.5vw;
}

.volume {
    position: relative;
    right: 35px;
    align-self: end;
    cursor: pointer;
}

input[type="range"] {
    accent-color: white;
    cursor: pointer;
}



/* .volume:hover::after {  
    content: "hehehehehe:)";
} */

/* Responsiveness */
@media (max-width: 1400px) {
    .left {
        /* background-color: var(--spotify-green); */
        position: absolute;
        left: -100%;
        transition: all .3s;
        z-index: 1;
        width: 400px;

    }

    .right {
        width: 100%;
    }

    .playBar {
        width: 100%;
        /* height: 150px; */
    }

    .hamburger {
        display: block;
    }

    .menu {
        display: flex;
        flex: 0;
        justify-content: end;

    }

    .nav-right,
    .nav-center {
        display: none;
    }

    .nav-left {
        flex: 0;
    }

    .nav {
        justify-content: space-between;

    }

    .nav-center,
    .nav-right {
        display: none;
    }

    /* Menu button visible */
    .menu {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .songtv {
        gap: 61.5vw;
    }

    .dropdown {
        position: absolute;
        top: 60px;
        /* just below nav bar */
        right: 0;
        background: #111;
        padding: 10px;
        width: 250px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-radius: 8px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
        animation: dropdownFade 0.3s ease;
    }

    /* Animation */
    @keyframes dropdownFade {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Search bar inside dropdown */
    .dropdown input {
        padding: 8px;
        border: none;
        border-radius: 4px;
        outline: none;
    }

    .dropdown .sign-up {
        padding: 8px;
        background: green;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
}

@media (max-width: 600px) {
    .songinfo {
        max-width: 90%;
        font-size: 0.8rem;
        align-self: center;
        left: 0px;
    }
    .playBar {
        gap: 8px;
    }
    .songtv {
        gap: 40vw;
    }
}