:root {
    --discord-color: #5e59e7;
    --discord-hover-color: #4e4ac7;
    --blue-color: rgba(46, 90, 202, 0.766);
    --blue-hover-color: rgba(46, 90, 202, 0.9);
}

/* General Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    margin-top: 4vh;
    font-family: "raleway", sans-serif;
}

.navbar-part {
    display: flex;
    align-items: center;
    gap: 2vw;
}

.navbar-part.desktop-nav {
    flex: 1;
    justify-content: space-between;
    margin-right: 2vw;
}

.navbar-part.mobile-actions {
    display: none;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2vw;

    margin-left: 2vw;
    margin-right: 1vw;
}

.logo img {
    height: 8vh;
}

.header-btn {
    color: rgb(220, 220, 220);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2vh;

    padding: 8px 20px;
    border-radius: 50px;

    background-color: rgba(255, 255, 255, 0.06);
}

.header-btn:hover {
    fill: white;
    background-color: #ffffff1f;
    /* Sets the text color to white with full opacity */
    box-shadow: 0px 0px 15.8px 0px hsla(0, 0%, 100%, 0.09);
    /* Applies the shadow effect */
}

.header-btn i {
    font-size: 1rem;
}

.home-btn {
    color: black;
    background-color: white;
}

.home-btn:hover {
    background-color: rgb(225, 225, 225);
    transition: all 0.3s ease;
}

.header-category {
    display: flex;
    gap: 0.5vw;
    padding: 6px;
    line-height: 24px;

    border: solid 1px rgba(255, 255, 255, 0.05);
    border-radius: 9999px;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);

    overflow: visible;
}

/* Categories Section */
.category-btn-active {
    color: white;
    background-color: var(--blue-color);
}

.category-btn-active:hover {
    background-color: var(--blue-hover-color);
}

.discord-btn {
    background-color: var(--discord-color);
    color: white;
}

.discord-btn:hover {
    background-color: var(--discord-hover-color);
}

.sign-in-btn {
    background-color: #57ff9f;
    color: black;
}

.sign-in-btn:hover {
    background-color: #45cc80;
}

.basket .badge {
    bottom: 50%;
    left: 50%;
    position: absolute;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.profile img {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
}

.profile img.loading {
    opacity: 0.5;
}

.profile img.error {
    opacity: 0.8;
    background-color: #444;
}

.profile .username {
    color: white;
    font-size: 1rem;
    font-weight: 400;
}

.profile .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile:hover .dropdown {
    display: block;
}

.profile .dropdown a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.profile .dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    z-index: 1000;
    font-family: 'Roboto', sans-serif;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav .close-btn {
    align-self: flex-end;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 20px;
    color: black;
}

.mobile-nav .nav-section {
    margin-bottom: 20px;
}

.mobile-nav .nav-section h3 {
    color: black;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.mobile-nav .nav-section a {
    color: rgb(100, 100, 100);
    /* Slightly gray text */
    text-decoration: none;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    font-size: 1.2rem;
    /* Increased font size */
    display: block;
    transition: color 0.3s ease;
}

.mobile-nav .nav-section a:hover {
    color: black;
    /* Full black text on hover */
}

/* Add this before the media queries */
.navbar-part.mobile-visible {
    display: none;
}

.mobile-nav .nav-section a.discord {
    color: rgb(100, 100, 100);
    /* Slightly gray text */
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav .nav-section a.discord i {
    color: var(--discord-color);
}

.mobile-nav .nav-section a.discord:hover {
    color: black;
    /* Full black text on hover */
}

.mobile-nav .nav-section a.discord:hover i {
    color: var(--discord-hover-color);
}

.mobile-nav .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-nav .nav-header .logo img {
    height: 40px;
}

.mobile-nav .nav-header .header-actions {
    display: flex;
    align-items: center;
}

.mobile-nav .nav-header .close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: black;
    margin-left: 5vw;
}

.mobile-nav .nav-header .basket {
    position: relative;
    color: rgb(100, 100, 100);
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.mobile-nav .nav-header .basket .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav .nav-header .basket:hover {
    color: black;
}

@media (max-width: 1150px) {

    .navbar-part.desktop-nav {
        display: none;
    }

    .home-btn {
        display: none;
    }

    .navbar-part.mobile-actions {
        display: flex;
        margin-right: 2vw;
    }

    .mobile-visible .header-category {
        gap: 0.5vw;
    }

    .mobile-visible .header-btn {
        padding: 8px 12px;
    }

    .mobile-visible .header-btn i {
        font-size: 1.1rem;
    }

    .mobile-visible .discord-btn,
    .mobile-visible .sign-in-btn {
        padding: 8px 12px;
    }

    .navbar-left {
        margin-left: 4vw;
    }

    .mobile-nav {
        display: none;
        flex-direction: column;
        background: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 20px;
        z-index: 1000;
        font-family: 'Roboto', sans-serif;
    }

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav .close-btn {
        align-self: flex-end;
        font-size: 1.5rem;
        cursor: pointer;
        color: black;

        margin: 0;
    }

    .mobile-nav .nav-section {
        margin-bottom: 20px;
    }

    .mobile-nav .nav-section h3 {
        color: black;
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .mobile-nav .nav-section a {
        color: rgb(100, 100, 100);
        /* Slightly gray text */
        text-decoration: none;
        padding: 10px 0;
        border-top: 1px solid #ccc;
        font-size: 1.3rem;
        display: block;
        transition: color 0.3s ease;
    }

    .mobile-nav .nav-section a:hover {
        color: black;
        /* Full black text on hover */
    }
}