/* =========================================
   NAVIGATION STYLES
   ========================================= */

/* Mobile Navigation */
@media (max-width: 767px) {
    .bottom-nav {
        display: flex;
    }

    .site-nav-inner .theme-switch {
        display: none !important;
    }

    .header {
        display: block !important;
        min-height: auto;
        margin: 0;
        padding: 0;
    }

    .header .row {
        display: none !important;
    }

    .header .container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .site-navigation {
        padding: 0 !important;
        margin: 0 !important;
        background: #111;
        height: 60px;
        display: flex;
        align-items: center;
        border: none !important;
        width: 100%;
        transition: background-color 0.3s ease;
    }

    body.light .site-navigation {
        background: #f5f5f5 !important;
    }

    body:not(.light) .site-navigation {
        background: #111 !important;
    }

    .site-navigation .container {
        display: flex !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 100%;
        align-items: center;
    }

    .site-nav-inner {
        width: 100% !important;
        height: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 15px !important;
        background: #111 !important;
        margin: 0 !important;
        position: relative !important;
        transition: background-color 0.3s ease;
    }

    body.light .site-nav-inner {
        background: #f5f5f5 !important;
    }

    body:not(.light) .site-nav-inner {
        background: #111 !important;
    }

    .site-nav-inner .logo-mobile {
        display: flex !important;
        margin: 0 !important;
        margin-right: auto !important;
        flex-shrink: 0;
        height: 40px;
        align-items: center;
        order: 1;
    }

    .site-nav-inner .logo-mobile img {
        height: 40px;
        width: auto;
    }

    .profile-dropdown {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        margin: 0 !important;
        z-index: 1000 !important;
        flex-shrink: 0;
        display: flex !important;
        align-items: center !important;
        order: 3;
    }

    .profile-menu {
        right: 0;
        top: 100%;
        margin-top: 5px;
    }

    .wallet-container {
        display: flex !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: relative !important;
        flex-shrink: 0;
        align-items: center;
        order: 2;
    }

    .wallet-btn {
        padding: 4px 10px !important;
        font-size: 12px !important;
    }

    .wallet-dropdown {
        display: none !important;
    }

    .collapse.navbar-responsive-collapse {
        display: none !important;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #111;
        flex-direction: column;
        width: 100% !important;
        z-index: 999;
        border-bottom: 1px solid rgba(11, 160, 38, 0.2);
        margin: 0;
        padding: 0;
    }

    body.light .collapse.navbar-responsive-collapse {
        background: #f5f5f5;
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }

    .collapse.navbar-responsive-collapse.show {
        display: flex !important;
    }

    .collapse.navbar-responsive-collapse .nav.navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 0 !important;
    }

    .collapse.navbar-responsive-collapse .nav.navbar-nav > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        list-style: none;
    }

    body.light .collapse.navbar-responsive-collapse .nav.navbar-nav > li {
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }

    .collapse.navbar-responsive-collapse .nav.navbar-nav > li > a {
        display: block;
        padding: 15px 20px !important;
        color: #fff;
        font-size: 14px;
        text-decoration: none;
    }

    body.light .collapse.navbar-responsive-collapse .nav.navbar-nav > li > a {
        color: #333;
    }

    .collapse.navbar-responsive-collapse .auth-buttons-nav {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        list-style: none;
        margin: 0;
    }

    body.light .collapse.navbar-responsive-collapse .auth-buttons-nav {
        border-top-color: rgba(0, 0, 0, 0.1);
    }

    .collapse.navbar-responsive-collapse .sign-in-nav,
    .collapse.navbar-responsive-collapse .sign-up-nav {
        display: block;
        width: 100%;
        margin: 0;
        list-style: none;
    }

    .collapse.navbar-responsive-collapse .sign-in-nav .btn,
    .collapse.navbar-responsive-collapse .sign-up-nav .btn {
        width: 100%;
        padding: 10px 15px !important;
        font-size: 13px !important;
        display: block;
    }

    .site-nav-inner .navbar-toggle {
        display: flex !important;
        order: 4;
        margin-left: 10px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: auto;
    }

    .site-nav-inner .navbar-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #0ba026;
        margin: 4px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    body.light .site-nav-inner .navbar-toggle span {
        background: #333;
    }

    .navbar-responsive-collapse .auth-buttons-nav {
        flex-direction: column;
        gap: 10px;
    }

    .navbar-responsive-collapse .sign-in-nav,
    .navbar-responsive-collapse .sign-up-nav {
        display: block;
        width: 100%;
        margin: 0;
    }

    .navbar-responsive-collapse .sign-in-nav .btn,
    .navbar-responsive-collapse .sign-up-nav .btn {
        width: 100%;
    }
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .header {
        display: flex !important;
        align-items: center !important;
        min-height: 80px;
        background: transparent !important;
    }

    .header .row {
        display: none !important;
    }

    .site-navigation {
        padding-bottom: 0 !important;
        margin: 0 !important;
        border-bottom: none !important;
        width: 100%;
        background: transparent !important;
    }

    .site-navigation .container {
        display: flex !important;
        width: 100%;
    }

    .site-nav-inner {
        position: relative !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-left: 0 !important;
        background: transparent !important;
        width: 100%;
        transition: background-color 0.3s ease;
    }

    body.light .site-nav-inner {
        background: #f5f5f5 !important;
    }

    body:not(.light) .site-nav-inner {
        background: #111 !important;
    }

    @media (min-width: 768px) {
        body:not(.light) .site-nav-inner {
            background: transparent !important;
        }

        body.light .site-nav-inner {
            background: transparent !important;
        }
    }

    .site-nav-inner .logo-mobile {
        display: flex !important;
        margin-right: 30px !important;
        flex-shrink: 0;
    }

    .site-nav-inner .logo-mobile img {
        height: 40px;
        width: auto;
    }

    .site-nav-inner .navbar-collapse {
        display: flex !important;
        flex: 1;
        margin-left: 0;
    }

    .site-nav-inner .navbar-nav {
        float: left !important;
        display: flex !important;
        margin: 0 !important;
    }

    .site-nav-inner .navbar-nav > li {
        float: none !important;
    }

    .site-nav-inner .navbar-nav > li > a {
        font-size: 16px !important;
        font-weight: 700 !important;
        padding: 17px 20px !important;
        color: #fff;
    }

    body.light .site-nav-inner .navbar-nav > li > a {
        color: #333 !important;
    }

    body.light .site-nav-inner .navbar-nav > li.active > a,
    body.light .site-nav-inner .navbar-nav > li > a:hover {
        background-color: #0ba026;
        color: #fff;
    }

    .site-nav-inner .navbar-nav > li > a i {
        margin-right: 8px;
        font-size: 16px;
    }

    .site-nav-inner .navbar-nav > li.active > a {
        background-color: #0ba026;
        border-radius: 4px;
        color: #fff;
    }

    .site-nav-inner .navbar-nav > li > a:hover {
        background-color: #0ba026;
        border-radius: 4px;
    }

    .navbar-responsive-collapse {
        display: flex !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-responsive-collapse .nav.navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        margin: 0 !important;
    }

    .navbar-responsive-collapse .auth-buttons-nav {
        flex-direction: row !important;
        gap: 10px !important;
        margin-left: auto !important;
    }

    .navbar-responsive-collapse .sign-in-nav,
    .navbar-responsive-collapse .sign-up-nav {
        width: auto !important;
    }

    .navbar-responsive-collapse .sign-in-nav .btn,
    .navbar-responsive-collapse .sign-up-nav .btn {
        width: auto !important;
        padding: 10px 20px !important;
        font-size: 12px !important;
    }

    .site-nav-inner .theme-switch {
        margin-left: auto !important;
        margin-right: 0 !important;
        order: 1;
        display: inline-block !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
    }

    .wallet-container {
        order: 2;
        display: flex !important;
        position: relative !important;
        margin-left: 0 !important;
        margin-right: 5px !important;
        align-items: center;
        flex-shrink: 0;
    }

    .profile-dropdown {
        display: inline-block !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        margin: 0 !important;
        margin-left: auto !important;
        order: 3;
        flex-shrink: 0;
    }

    .site-nav-inner .navbar-toggle {
        display: none !important;
    }

    /* Dropdown Menu Styles */
    .navbar-responsive-collapse .dropdown {
        position: relative;
    }

    .navbar-responsive-collapse .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #111;
        border: 1px solid #222;
        padding: 10px 0;
        min-width: 200px;
        display: none;
        list-style: none;
        margin: 0;
        z-index: 1000;
    }

    .navbar-responsive-collapse .dropdown:hover .dropdown-menu {
        display: block;
    }

    .navbar-responsive-collapse .dropdown-menu > li > a {
        color: #fff;
        padding: 10px 20px;
        display: block;
        font-size: 14px;
        text-transform: none;
        font-weight: 600;
    }

    .navbar-responsive-collapse .dropdown-menu > li > a i {
        margin-right: 8px;
    }

    .navbar-responsive-collapse .dropdown-menu > li > a:hover {
        background: #222;
    }

    body.light .navbar-responsive-collapse .dropdown-menu {
        background: #f5f5f5;
        border-color: #ddd;
    }

    body.light .navbar-responsive-collapse .dropdown-menu > li > a {
        color: #333;
    }

    body.light .navbar-responsive-collapse .dropdown-menu > li > a:hover {
        background: #eee;
    }

    .navbar-responsive-collapse .dropdown > a .caret {
        display: inline-block;
        width: 0;
        height: 0;
        vertical-align: middle;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid #fff;
        margin-left: 8px;
        margin-bottom: 2px;
    }

    body.light .navbar-responsive-collapse .dropdown > a .caret {
        border-top-color: #333;
    }
}

/* =========================================
   BUTTON STYLES
   ========================================= */

.navbar-responsive-collapse .auth-buttons-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.navbar-responsive-collapse .sign-in-nav,
.navbar-responsive-collapse .sign-up-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.navbar-responsive-collapse .sign-in-nav .btn,
.navbar-responsive-collapse .sign-up-nav .btn {
    width: 100%;
    display: block;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #0ba026;
    color: #0ba026;
}

.btn-outline:hover {
    background-color: #0ba026;
    color: #fff;
}

.navbar-responsive-collapse .sign-in-nav .btn,
.navbar-responsive-collapse .sign-up-nav .btn {
    text-transform: none;
}

.navbar-responsive-collapse .nav.navbar-nav > li > a {
    text-transform: none;
}

.navbar-responsive-collapse .nav.navbar-nav {
    margin: 0;
    padding: 0;
    text-align: left;
}
