/* =========================================================
   GOLDBITES HEADER
   ========================================================= */

:root {
    --gold: #f4c542;
    --gold-light: #ffe47a;
    --gold-dark: #c99b22;

    --header-green: #002d19;
    --header-green-dark: #00190f;
}


/* =========================================================
   RESET
   ========================================================= */

.site-header,
.site-header * {
    box-sizing: border-box;
}

.site-header button {
    font-family: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 87px;

    z-index: 9999;

    background:
        linear-gradient(
            90deg,
            rgba(0, 25, 15, 0.98),
            rgba(0, 45, 25, 0.98),
            rgba(0, 25, 15, 0.98)
        );

    box-shadow:
        0 2px 15px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(12px);
}


/* =========================================================
   GOLDEN BOTTOM LINE
   ========================================================= */

.site-header::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

    background: var(--gold);

    box-shadow:
        0 0 7px rgba(244, 197, 66, 0.55);

    z-index: 20;
}


/* =========================================================
   HEADER CONTAINER
   Everything stays in ONE ROW
   ========================================================= */

.header-container {
    width: 100%;
    max-width: 1500px;

    height: 100%;

    margin: 0 auto;

    padding: 0 28px;

    display: flex;
    align-items: center;

    gap: 20px;

    white-space: nowrap;
}


/* =========================================================
   LOGO
   ========================================================= */

.goldbites-logo {
    flex: 0 0 auto;

    width: 145px;
    height: 100%;

    display: flex;
    align-items: center;

    justify-content: flex-start;

    text-decoration: none;

    overflow: visible;
}


.goldbites-logo img {
    display: block;

    width: 135px;
    height: auto;

    max-width: 135px;
    max-height: 60px;

    object-fit: contain;

    object-position: center;

    margin: 0;
    padding: 0;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.main-navigation {
    flex: 1 1 auto;

    min-width: 0;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;
}


/* =========================================================
   NAV LINKS
   ========================================================= */

.nav-link {
    position: relative;

    height: 100%;

    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.92);

    font-family: Arial, sans-serif;

    font-size: 11px;
    font-weight: 500;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    border: none;
    outline: none;

    background: transparent;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}


.nav-link:hover {
    color: var(--gold-light);
}


.nav-link.active {
    color: var(--gold);
}


/* =========================================================
   ACTIVE GOLD LINE
   ========================================================= */

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 9px;
    right: 9px;

    bottom: 0;

    height: 2px;

    background: var(--gold);

    box-shadow:
        0 0 8px rgba(244, 197, 66, 0.7);
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.nav-dropdown {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;

    flex: 0 0 auto;
}


.dropdown-button {
    gap: 5px;
}


.dropdown-arrow {
    font-size: 11px;

    color: inherit;

    transition:
        transform 0.25s ease;
}


.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 1px);
    left: 50%;

    min-width: 190px;

    padding: 8px;

    background:
        linear-gradient(
            145deg,
            #00351f,
            #001c11
        );

    border:
        1px solid rgba(244, 197, 66, 0.45);

    border-radius: 8px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5);

    opacity: 0;

    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 10000;
}


.nav-dropdown:hover .dropdown-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   DROPDOWN LINKS
   ========================================================= */

.dropdown-menu a {
    display: block;

    padding: 10px 13px;

    color: white;

    font-family: Arial, sans-serif;

    font-size: 12px;

    text-decoration: none;

    border-radius: 5px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.dropdown-menu a:hover {
    color: var(--gold);

    background:
        rgba(244, 197, 66, 0.08);
}


/* =========================================================
   RIGHT SIDE ICONS
   WALLET | TRANSACTION | PROFILE
   ========================================================= */

.header-right {
    flex: 0 0 auto;

    height: 100%;

    display: flex;
    align-items: center;

    justify-content: center;

    gap: 13px;

    margin-left: auto;
}


/* =========================================================
   ICON BUTTON
   ========================================================= */

.header-icon-btn {
    width: 34px;
    height: 34px;

    min-width: 34px;
    min-height: 34px;

    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    outline: none;

    background: transparent;

    color: var(--gold) !important;

    cursor: pointer;

    flex-shrink: 0;

    border-radius: 5px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   FONT AWESOME ICONS
   THIS MAKES THEM GOLD
   ========================================================= */

.header-icon-btn i {
    display: block;

    color: var(--gold) !important;

    font-size: 18px !important;

    line-height: 1 !important;

    width: auto;
    height: auto;

    font-style: normal;

    opacity: 1;

    text-shadow:
        0 0 2px rgba(244, 197, 66, 0.25);

    transition:
        color 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}


/* =========================================================
   ICON HOVER
   ========================================================= */

.header-icon-btn:hover {
    background:
        rgba(244, 197, 66, 0.08);

    transform: translateY(-1px);
}


.header-icon-btn:hover i {
    color: var(--gold-light) !important;

    transform: scale(1.1);

    filter:
        drop-shadow(0 0 4px rgba(244, 197, 66, 0.8));
}


/* =========================================================
   ICON CLICK
   ========================================================= */

.header-icon-btn:active {
    transform: translateY(0);
}


.header-icon-btn:active i {
    transform: scale(0.94);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button {
    display: none;

    width: 40px;
    height: 40px;

    min-width: 40px;

    padding: 8px;

    border:
        1px solid rgba(244, 197, 66, 0.45);

    border-radius: 8px;

    background: transparent;

    cursor: pointer;
}


.mobile-menu-button span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--gold);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.mobile-menu-button.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}


.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}


.mobile-menu-button.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.mobile-navigation {
    display: none;
}

.mobile-user-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 8px 4px;
}

.mobile-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(244, 197, 66, 0.35);
    border-radius: 9px;
    background: rgba(244, 197, 66, 0.06);
    color: var(--gold);
    font-size: 17px;
    cursor: pointer;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1150px) {

    .site-header {
        height: 64px;
    }


    .header-container {
        padding: 0 18px;
        gap: 10px;
    }


    .goldbites-logo {
        width: 125px;
    }


    .goldbites-logo img {
        width: 120px;
        max-width: 120px;
        max-height: 55px;
    }


    .main-navigation {
        gap: 6px;
    }


    .nav-link {
        padding: 0 7px;
        font-size: 10px;
    }


    .header-right {
        gap: 7px;
    }


    .header-icon-btn {
        width: 31px;
        height: 31px;

        min-width: 31px;
        min-height: 31px;
    }


    .header-icon-btn i {
        font-size: 16px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1024px) {

    .site-header {
        height: 60px;
    }


    .header-container {
        padding: 0 12px;

        gap: 5px;

        justify-content: space-between;
    }


    .goldbites-logo {
        width: 105px;
    }


    .goldbites-logo img {
        width: 105px;

        max-width: 105px;

        max-height: 50px;
    }


    /* Hide desktop navigation */

    .main-navigation {
        display: none;
    }


    /* Mobile account actions are available inside the menu panel. */

    .header-right {
        display: none;
    }


    /* =====================================================
       HAMBURGER
       ===================================================== */

    .mobile-menu-button {
        display: block;

        flex-shrink: 0;

        width: 36px;
        height: 36px;

        min-width: 36px;

        padding: 7px;
    }


    /* =====================================================
       MOBILE NAVIGATION PANEL
       ===================================================== */

    .mobile-navigation {
        position: absolute;

        top: 60px;
        left: 0;

        width: 100%;

        max-height: calc(100vh - 60px);
        overflow-y: auto;
        overscroll-behavior: contain;

        padding: 15px;

        display: flex;

        flex-direction: column;

        background:
            linear-gradient(
                160deg,
                #00351f,
                #001c11
            );

        border-bottom:
            1px solid rgba(244, 197, 66, 0.4);

        box-shadow:
            0 15px 30px rgba(0, 0, 0, 0.45);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
    }


    .mobile-navigation.open {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }


    .mobile-navigation:not(.open) {
        pointer-events: none;
    }


    .mobile-navigation > a {
        padding: 13px 10px;

        color: white;

        font-family: Arial, sans-serif;

        font-size: 13px;

        text-decoration: none;

        border-bottom:
            1px solid rgba(244, 197, 66, 0.12);
    }


    .mobile-navigation > a:hover {
        color: var(--gold);
    }


    .mobile-actions {
        display: none;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .site-header {
        height: 58px;
    }


    .header-container {
        padding: 0 9px;

        gap: 3px;
    }


    .goldbites-logo {
        width: 95px;
    }


    .goldbites-logo img {
        width: 95px;

        max-width: 95px;

        max-height: 48px;
    }


    .mobile-menu-button {
        width: 34px;
        height: 34px;

        min-width: 34px;

        padding: 6px;
    }


    .mobile-navigation {
        top: 58px;
        max-height: calc(100vh - 58px);
    }
}
