@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Jua&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');@import url('https://fonts.googleapis.com/css2?family=Jua&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka','Nato Sans';
}

body {
    padding-top: 70px;
}
nav {
    position: fixed;
    display: flex;
    gap: 600px;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px #E1E1E1 solid;
    background-color: #ffffff;
    z-index: 1000;
    height: 70px;
}

/* Burger Menu Styles */
.burger-menu {
    display: none;
    align-content: center;
    margin-right: 2rem;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px #E1E1E1 solid;
    background-color: #ffffff;
    z-index: 1000;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 2rem;
  
}

.logo-container img {
    width: 170px;
    height: auto;
}

.nav-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 100%;
}

.nav-btn a {
    text-decoration: none;
    font-size: 1rem;
    margin: 0 2rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-btn {
    color: rgb(0, 0, 0);
}

.btn:hover {
    color: #2c97df;
}

.ai-btn {
    color: #272727;
    background: linear-gradient(to right, #f1c1ff, #c1ffc6);
    
}

.ai-btn:hover {
    background: linear-gradient(to right, #fed4ff, #e7ffc0);
    color: #161616;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.mood-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.mood-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: rgb(238, 251, 255);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-btn:hover, .mood-btn.active {
    background: rgb(210, 244, 255);
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.playlist-card {
    background: rgb(241, 241, 241);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.playlist-card:hover {
    transform: translateY(-5px);
}

.playlist-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.playlist-info {
    padding: 1.5rem;
}

.playlist-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.playlist-description {
    color: rgb(170, 170, 170);
    margin-bottom: 1rem;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.play-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgb(155, 255, 155);
    color: black;
    text-decoration: none;
    border-radius: 50px;
    transition: opacity 0.3s ease;
}

.play-btn:hover {
    opacity: 0.8;
}

#loading {
    text-align: center;
    padding: 2rem;
    display: none;
}

@media screen and (max-width: 1000px) {
    .burger-menu {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-btn {
        position: fixed;
        top: 70px;
        right: -100%; 
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: right 0.3s ease;
    }

    .nav-btn.active {
        right: 0;
    }

    .nav-btn a {
        margin: 1rem 0;
        font-size: 1.2rem;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}