/* =========================
   NAVBAR
========================= */

.navbar {
    position: relative;
    z-index: 1000;

    width: 100%;
    height: var(--navbar-height);

    display: flex;
    align-items: center;

    padding: 0 30px;

    background: #111111;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* =========================
   LOGO
========================= */

.logo {
    flex-shrink: 0;

    display: flex;
    align-items: center;
}

.logo img {
    width: 150px;
    height: auto;
}

.logo-text {
    font-family: "Texureon";
}


/* =========================
   DESKTOP NAV
========================= */

.desktop-nav {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;

    gap: 8px;

    margin-left: 45px;
}

.desktop-nav a,
.nav-item {
    height: 100%;

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 0 16px;

    background: transparent;
    border: 0;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.desktop-nav a:hover,
.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================
   GAMES BUTTON
========================= */

.nav-item span {
    display: inline-block;

    font-size: 16px;

    transition: transform var(--transition-fast);
}

.nav-item.active span {
    transform: rotate(180deg);
}


/* =========================
   GAMES MENU
========================= */

.games-menu {
    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    padding: 20px;

    background: #111111;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.games-menu.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================
   NAV RIGHT
========================= */

.nav-right {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 12px;
}


/* =========================
   BUY BUTTON
========================= */

.buy-btn {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    background: #3b8526;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}

.buy-btn:hover {
    background: #4a9e31;
}


/* =========================
   SEARCH BUTTON
========================= */

.search-btn {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent;
    border: 0;

    color: #ffffff;

    font-size: 27px;

    transition: background var(--transition-fast);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-btn {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent;
    border: 0;

    color: #ffffff;

    font-size: 26px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .navbar {
        padding: 0 20px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .logo img {
        width: 130px;
    }

    .buy-btn {
        min-height: 40px;
        padding: 0 16px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 500px) {

    .navbar {
        height: 64px;
        padding: 0 15px;
    }

    .logo img {
        width: 115px;
    }

    .buy-btn {
        display: none;
    }

    .nav-right {
        gap: 4px;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;

    width: min(350px, 85vw);
    height: 100dvh;

    padding: 80px 30px 30px;

    background: #111;

    z-index: 2000;

    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu nav a {
    padding: 18px 0;

    color: #fff;

    font-size: 16px;
    font-weight: 700;

    border-bottom: 1px solid rgba(255,255,255,.1);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 40px;
    height: 40px;

    background: transparent;
    border: 0;

    color: #fff;
    font-size: 24px;
}
