@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');


body {
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    display: flex;
    height: 100vh;
    padding-top: 70px; /* Add padding to account for fixed navbar height */
}

* h1 {
    font-weight: 600;
}

* h3 {
    font-weight: 550;
}

/* Burger Menu Styles - Updated for visibility */
.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;
}

.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;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 250px;
    width: 250px;
    color: black;
    padding: 20px 0;
    border-right: 1px #E1E1E1 solid;
    height: calc(100vh - 70px); /* Subtract navbar height */
    position: fixed; /* Fix sidebar */
    left: 0;
    top: 70px; /* Position below navbar */

}

.sidebar h2 {
    padding-left: 20px;
    margin-bottom: 20px;
    color: #FFCB42;
}

.sidebar ul {
    list-style-type: none;
    margin-top: 70px;
    padding: 0;
}

.sidebar li {
    padding: 25px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar li:hover {
    background-color: #ececec;
}

.suggest {
    padding: 20px 20px;
    text-decoration: none;
    color: rgb(0, 140, 255);
}

.content {
    flex: 1;
    flex-wrap: wrap;
    padding: 20px;
    overflow-y: auto;
    margin-left: 250px;
}

.content h1 {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 0;
    color: #142261;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.item {
    border-radius: 8px;
    background-color: rgb(245, 245, 245);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item .details {
    padding: 10px;
}

.item .details .item-title h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #142261;
}

.item-title {
    display: flex;
    justify-content: space-between;
}

.item-title a img {
    width: 10px;
    height: auto;
}

.item .details p {
    margin: 0;
    font-size: 1rem;
    color: #142261;
}

.search-container {
    margin-bottom: 20px;
}
  
.search-input {
    width: 50vw;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #E1E1E1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Fredoka', sans-serif;
}
  
.search-input:focus {
    border-color: #2c97df;
}
  
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}
  
.tag {
    background: rgb(228, 239, 255);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #3b3b3b;
}
  
.item .details {
    padding: 15px;
}


@media (max-width: 1000px) {
    .sidebar {
        display: none;
        
    }
    
    .content {
        margin: 0;
    }
}

.mobile-filters {
    display: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: #fff;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-dropdown {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    outline: none;
    font-family: 'Fredoka', sans-serif;
}

.filter-dropdown:focus {
    border-color: #2facff;
    box-shadow: 0 0 0 2px rgba(47,172,255,0.2);
}

@media screen and (max-width: 768px) {
    .sidebar {
        display: none; /* Hide sidebar on mobile */
    }

    .mobile-filters {
        display: block; /* Show dropdown on mobile */
    }

    .content {
        margin-left: 0; /* Remove sidebar margin */
        padding: 1rem;
    }
}

@media screen and (min-width: 769px) {
    .mobile-filters {
        display: none;
    }

    .sidebar {
        display: block;
    }
    .content {
        transition: margin-left 0.3s ease;
    }
}

@media screen and (min-width: 769px) {
    .content {
        margin-left: 250px;
    }
}

@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);
    }
}
