/* =====================================================
    UDOOGU HEADER / NAVIGATION
   ===================================================== */


/* ---------- Main Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(8, 10, 12, 0.88);

    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* ---------- Navigation Container ---------- */

.navbar {
    width: min(1500px, 94%);

    margin: 0 auto;

    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* ---------- Logo ---------- */

.logo {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #ffffff;

    text-decoration: none;

    flex-shrink: 0;
}
/* .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
} */

/* .main-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
} */


 .logo-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 10px;

    font-size: 20px;
    font-weight: 800;
} 


.logo-text {
    display: flex;
    flex-direction: column;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: 2px;
}


.logo-text small {
    margin-top: 2px;

    font-size: 8px;

    letter-spacing: 3px;

    opacity: 0.55;
}


/* ---------- Navigation Menu ---------- */

.nav-menu {
    display: flex;

    align-items: center;

    gap: 4px;
}


/* ---------- Normal Links ---------- */

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 10px 9px;

    border: none;

    background: none;

    color: rgba(255, 255, 255, 0.72);

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}


.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}


/* Small underline for active page */

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 9px;
    right: 9px;

    bottom: 2px;

    height: 2px;

    background: #ffffff;

    border-radius: 10px;
}


/* ---------- Dropdown ---------- */

.nav-dropdown {
    position: relative;
}


.dropdown-toggle i {
    font-size: 8px;

    transition: transform 0.25s ease;
}


/*
    The dropdown is hidden by default.
*/

.dropdown-menu {
    position: absolute;

    top: calc(100% + 12px);

    left: 50%;

    transform: translateX(-50%) translateY(8px);

    min-width: 210px;

    padding: 10px;

    background: #101316;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


/*
    Show dropdown when the user hovers
    over the dropdown container.
*/

.nav-dropdown .dropdown-menu.show {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateX(-50%) translateY(0);
}

.nav-dropdown .dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* Dropdown links */

.dropdown-menu a {
    display: block;

    padding: 11px 13px;

    border-radius: 9px;

    color: rgba(255, 255, 255, 0.7);

    font-size: 13px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.07);

    color: #ffffff;
}


/* ---------- Account Buttons ---------- */

.nav-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-left: 8px;
}


.login-link {
    color: rgba(255, 255, 255, 0.75);

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;
}


.login-link:hover {
    color: #ffffff;
}


.join-button {
    padding: 11px 17px;

    border-radius: 8px;

    background: #ffffff;

    color: #090b0d;

    font-size: 11px;

    font-weight: 800;

    text-decoration: none;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.join-button:hover {
    transform: translateY(-2px);

    opacity: 0.9;
}


/* ---------- Mobile Menu Button ---------- */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.04);

    color: #ffffff;

    cursor: pointer;

    font-size: 18px;
}
/* =====================================================
   MORE DROPDOWN
   ===================================================== */

.more-dropdown .dropdown-menu {
    right: 0;
    left: auto;

    transform: translateY(8px);
}


/*
    Because the More menu is aligned to the right,
    we don't want it to use the normal centered
    dropdown positioning.
*/

.more-dropdown:hover .dropdown-menu {
    /* transform: translateY(0); */
}
.dropdown-menu.show {
    display: block;
}

/* =====================================================
   MOBILE NAVIGATION
   ===================================================== */

@media (max-width: 1000px) {

    .navbar {
        position: relative;
    }

    /* Show hamburger */

    .menu-toggle {
        display: flex;

        align-items: center;
        justify-content: center;
    }


    /* Hide navigation by default */
.nav-menu {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 15px;

    background: #101316;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

    /* Prevent the menu from becoming taller than the screen */
    max-height: calc(100vh - 83px);

    /* Allow the menu itself to scroll */
    overflow-y: auto;

    box-sizing: border-box;
}


    /* Open navigation */

    .nav-menu.mobile-open {
        display: flex;
    }


    /* Normal navigation links */

    .nav-menu > .nav-link,
    .nav-dropdown > .nav-link {

        width: 100%;

        justify-content: space-between;

        padding: 14px 10px;

        box-sizing: border-box;
    }


    /* Dropdown containers */

    .nav-dropdown {
        width: 100%;
    }


    /* Mobile dropdown */
.nav-dropdown .dropdown-menu {

    position: static;

    width: 100%;

    min-width: 0;

    box-sizing: border-box;

    margin: 0;

    padding: 5px;

    transform: none;

    border: none;

    border-radius: 8px;

    box-shadow: none;

    background: rgba(255, 255, 255, 0.03);

    display: none;
}


/* Show mobile dropdown when clicked */

.nav-dropdown .dropdown-menu.show {

    display: block;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    /* transform: none; */
}


    /* Open mobile dropdown */

    .nav-dropdown .dropdown-menu.show {

        transform: none;
    }


    /* More dropdown */

    .more-dropdown .dropdown-menu {

        right: auto;
        left: auto;

        transform: none;
    }


    .more-dropdown .dropdown-menu.show {

        transform: none;
    }


    /* Account buttons */

    .nav-actions {

        width: 100%;

        margin: 10px 0 0;

        padding-top: 15px;

        border-top: 1px solid rgba(255, 255, 255, 0.08);

        flex-direction: column;

        align-items: stretch;
    }


    .login-link {

        padding: 13px 10px;
    }


    .join-button {

        text-align: center;

        padding: 13px;
    }

}


/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    right: clamp(16px, 3vw, 34px);
    bottom: clamp(16px, 3vw, 32px);
    z-index: 950;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    background: rgba(20, 22, 25, 0.9);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.25s ease;
}


.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


.back-to-top:hover,
.back-to-top:focus-visible {
    background: #ffffff;
    color: #111111;
    outline: none;
}


@media (max-width: 600px) {

    .back-to-top {
        width: 42px;
        height: 42px;
    }

}