/* =====================================================
   PROFESSIONAL RESPONSIVE NAVBAR
===================================================== */

:root{
    --navbar-height:76px;
    --content-gap:18px;
    --footer-gap:28px;

    --nav-green:#188743;
    --nav-green-dark:#10652f;
    --nav-green-light:#30ad60;

    --nav-orange:#d87512;
    --nav-orange-dark:#b95c08;
    --nav-orange-light:#ed8a22;

    --nav-navy:#0f1824;
    --nav-navy-middle:#141f2d;
    --nav-navy-light:#1b2a3b;

    --nav-white:#ffffff;
    --nav-text:#d6dee7;
    --nav-muted:#8d9bab;

    --nav-border:rgba(255,255,255,.09);

    --nav-shadow:
        0 10px 30px rgba(4,10,18,.28);

    --nav-transition:.22s ease;
}


/* =====================================================
   RESET
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;

    padding-top:
        calc(
            var(--navbar-height) +
            var(--content-gap)
        );

    background:#f3f5f7;

    font-family:"Poppins",Arial,sans-serif;
}


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

.navbar{
    position:fixed;

    top:0;
    left:0;
    right:0;

    z-index:9999;

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

    border-bottom:1px solid var(--nav-border);

background:
    radial-gradient(
        circle,
        rgba(255,255,255,.13) 1.2px,
        transparent 1.5px
    ),
    linear-gradient(
        135deg,
        var(--nav-navy) 0%,
        var(--nav-navy-middle) 52%,
        var(--nav-navy-light) 100%
    );

background-size:
    20px 20px,
    100% 100%;

    box-shadow:var(--nav-shadow);
}

.navbar::before{
    content:"";

    position:absolute;

    width:240px;
    height:240px;

    right:-100px;
    top:-165px;

    border-radius:50%;

    background:rgba(24,135,67,.20);

    pointer-events:none;
}



.navbar-container{
    position:relative;
    z-index:2;

    width:100%;
    max-width:1500px;
    height:100%;

    margin:0 auto;
    padding:0 28px;

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

    gap:28px;
}


/* =====================================================
   BRAND
===================================================== */

.logo-area{
    min-width:max-content;

    display:flex;
    align-items:center;

    gap:11px;

    color:#fff;
    text-decoration:none;
}

.logo-circle{
    width:44px;
    height:44px;

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

    border:1px solid rgba(255,255,255,.18);
    border-radius:12px;

    background:#fff;
    color:var(--nav-green);

    font-size:19px;

    box-shadow:
        0 8px 20px rgba(0,0,0,.24);

    transition:
        transform var(--nav-transition),
        box-shadow var(--nav-transition);
}

.logo-area:hover .logo-circle{
    transform:
        translateY(-2px)
        rotate(-3deg);

    box-shadow:
        0 12px 24px rgba(0,0,0,.28);
}

.logo-content{
    display:flex;
    flex-direction:column;

    line-height:1.15;
}

.logo-content strong{
    color:#fff;

    font-size:19px;
    font-weight:700;
    letter-spacing:-.02em;
}

.logo-content small{
    margin-top:4px;

    color:var(--nav-muted);

    font-size:9px;
    font-weight:500;
    letter-spacing:.035em;
}


/* =====================================================
   NAVIGATION LIST
===================================================== */

.nav-links{
    display:flex;
    align-items:center;

    gap:6px;

    list-style:none;
}

.nav-links li{
    display:flex;
    align-items:center;
}


/* =====================================================
   NORMAL NAVIGATION LINKS
===================================================== */

.nav-link{
    min-height:42px;
    padding:0 14px;

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

    gap:8px;

    border:1px solid transparent;
    border-radius:10px;

    color:var(--nav-text);
    text-decoration:none;

    font-size:12px;
    font-weight:600;

    white-space:nowrap;

    transition:
        color var(--nav-transition),
        background var(--nav-transition),
        border-color var(--nav-transition),
        transform var(--nav-transition),
        box-shadow var(--nav-transition);
}

.nav-icon{
    width:27px;
    height:27px;

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

    border-radius:7px;

    background:rgba(255,255,255,.055);
    color:#c8d1dc;

    font-size:11px;

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


/* Normal links become green */

.nav-link:not(.post-ad-link):hover{
    color:#fff;

    border-color:var(--nav-green);
    background:var(--nav-green);

    transform:translateY(-2px);

    box-shadow:
        0 7px 17px rgba(24,135,67,.22);
}

.nav-link:not(.post-ad-link):hover .nav-icon{
    background:rgba(255,255,255,.16);
    color:#fff;
}


/* =====================================================
   POST AD BUTTON
===================================================== */

.post-ad-link{
    padding:0 17px;

    border-color:var(--nav-orange-dark);

    background:
        linear-gradient(
            135deg,
            var(--nav-orange-dark),
            var(--nav-orange)
        );

    color:#fff;

    box-shadow:
        0 6px 16px rgba(185,92,8,.26);
}

.post-ad-link .nav-icon{
    background:rgba(255,255,255,.17);
    color:#fff;
}

.post-ad-link:hover{
    border-color:var(--nav-orange-light);

    background:
        linear-gradient(
            135deg,
            #a94f04,
            var(--nav-orange-dark)
        );

    color:#fff;

    transform:translateY(-2px);

    box-shadow:
        0 9px 21px rgba(185,92,8,.34);
}


/* =====================================================
   LOGIN / LOGOUT
===================================================== */

.login-area{
    margin-left:5px;
}

.account-link{
    min-height:42px;
    padding:0 13px;

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

    gap:8px;

    border:1px solid rgba(255,255,255,.15);
    border-radius:10px;

    background:rgba(255,255,255,.065);
    color:#fff;

    text-decoration:none;

    font-size:12px;
    font-weight:600;

    white-space:nowrap;

    transition:
        background var(--nav-transition),
        border-color var(--nav-transition),
        color var(--nav-transition),
        transform var(--nav-transition),
        box-shadow var(--nav-transition);
}

.account-icon{
    width:28px;
    height:28px;

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

    flex-shrink:0;

    border-radius:8px;

    background:rgba(255,255,255,.11);
    color:#fff;

    font-size:11px;
}


/* Login hover */

.account-link:hover{
    border-color:var(--nav-green);
    background:var(--nav-green);

    color:#fff;

    transform:translateY(-2px);

    box-shadow:
        0 7px 17px rgba(24,135,67,.22);
}

.account-link:hover .account-icon{
    background:rgba(255,255,255,.17);
}


/* Logout style */

.logout-link{
    border-color:rgba(239,104,104,.30);

    background:rgba(205,62,62,.10);
    color:#f3d6d6;
}

.logout-link .account-icon{
    background:rgba(210,62,62,.16);
    color:#ffb7b7;
}

.logout-link:hover{
    border-color:#b94646;

    background:#a83d3d;
    color:#fff;

    box-shadow:
        0 7px 17px rgba(168,61,61,.25);
}


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

.menu-btn{
    width:43px;
    height:43px;

    display:none;
    align-items:center;
    justify-content:center;
    flex-direction:column;

    gap:5px;

    border:1px solid rgba(255,255,255,.14);
    border-radius:10px;

    background:rgba(255,255,255,.06);

    cursor:pointer;

    transition:
        background var(--nav-transition),
        border-color var(--nav-transition),
        transform var(--nav-transition);
}

.menu-btn:hover{
    border-color:var(--nav-green);
    background:var(--nav-green);
}

.menu-btn:active{
    transform:scale(.96);
}

.menu-btn span{
    width:19px;
    height:2px;

    display:block;

    border-radius:10px;

    background:#fff;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* Menu button X animation */

.menu-btn.active span:nth-child(1){
    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-btn.active span:nth-child(2){
    opacity:0;
}

.menu-btn.active span:nth-child(3){
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =====================================================
   MEDIUM DESKTOP
===================================================== */

@media(max-width:1150px){

    .navbar-container{
        padding:0 20px;

        gap:17px;
    }

    .logo-content small{
        display:none;
    }

    .nav-link,
    .account-link{
        padding:0 11px;

        font-size:11px;
    }

    .post-ad-link{
        padding:0 14px;
    }

    .nav-icon{
        width:25px;
        height:25px;
    }

}


/* =====================================================
   TABLET / MOBILE MENU
===================================================== */

@media(max-width:900px){

    :root{
        --navbar-height:70px;
    }

    .navbar-container{
        padding:0 16px;
    }

    .menu-btn{
        display:flex;
    }

    .nav-links{
        position:absolute;

        top:calc(100% + 1px);
        left:12px;
        right:12px;

        max-height:0;
        padding:0 10px;

        display:flex;
        flex-direction:column;
        align-items:stretch;

        gap:6px;

        overflow:hidden;

        border:1px solid transparent;
        border-radius:0 0 14px 14px;

background:
    radial-gradient(
        circle,
        rgba(255,255,255,.12) 1.1px,
        transparent 1.45px
    ),
    linear-gradient(
        145deg,
        #0d1621,
        #152333
    );

background-size:
    19px 19px,
    100% 100%;

        opacity:0;
        visibility:hidden;

        box-shadow:
            0 18px 35px rgba(4,10,18,.34);

        transition:
            max-height .35s ease,
            opacity .25s ease,
            visibility .25s ease,
            padding .25s ease,
            border-color .25s ease;
    }

    .nav-links.active{
        max-height:460px;
        padding:12px 10px 14px;

        border-color:rgba(255,255,255,.08);

        opacity:1;
        visibility:visible;
    }

    .nav-links li{
        width:100%;
    }

    .nav-link,
    .account-link{
        width:100%;
        min-height:46px;
        padding:0 12px;

        justify-content:flex-start;

        border-radius:9px;

        font-size:12px;
    }

    .nav-link:hover,
    .account-link:hover,
    .post-ad-link:hover{
        transform:none;
    }

    .post-ad-link{
        margin-top:2px;
    }

    .login-area{
        margin-left:0;
        margin-top:2px;
    }

}


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

@media(max-width:600px){

    :root{
        --navbar-height:64px;
        --content-gap:12px;
    }

    body{
        padding-top:
            calc(
                var(--navbar-height) +
                var(--content-gap)
            );
    }

    .navbar-container{
        padding:0 12px;
    }

    .logo-area{
        gap:9px;
    }

    .logo-circle{
        width:38px;
        height:38px;

        border-radius:10px;

        font-size:16px;
    }

    .logo-content strong{
        font-size:16px;
    }

    .logo-content small{
        display:none;
    }

    .menu-btn{
        width:39px;
        height:39px;

        border-radius:9px;
    }

    .nav-links{
        left:8px;
        right:8px;
    }

    .nav-link,
    .account-link{
        min-height:44px;

        font-size:11px;
    }

    .nav-icon,
    .account-icon{
        width:25px;
        height:25px;

        font-size:10px;
    }

}


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

@media(max-width:360px){

    .navbar-container{
        padding:0 9px;
    }

    .logo-content strong{
        max-width:150px;

        overflow:hidden;

        font-size:14px;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

    .logo-circle{
        width:35px;
        height:35px;

        font-size:15px;
    }

    .menu-btn{
        width:37px;
        height:37px;
    }

}

/* =====================================================
   NAVBAR LOGIN / LOGOUT MESSAGE
===================================================== */

.navbar-toast{
    position:fixed;
    top:calc(var(--navbar-height) + 15px);
    right:18px;
    z-index:12000;
    width:max-content;
    min-width:285px;
    max-width:410px;
    min-height:58px;
    padding:12px 12px 12px 15px;
    display:flex;
    align-items:center;
    gap:11px;
    border:1px solid #dde3ea;
    border-left:5px solid var(--nav-green);
    border-radius:12px;
    background:#ffffff;
    color:#344054;
    box-shadow:0 16px 38px rgba(15,23,42,.18);
    opacity:0;
    visibility:hidden;
    transform:translateX(45px);
    pointer-events:none;
    transition:opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.navbar-toast.show{
    opacity:1;
    visibility:visible;
    transform:translateX(0);
    pointer-events:auto;
}

.navbar-toast.success{border-left-color:var(--nav-green);}
.navbar-toast.error{border-left-color:#d92d20;}

.navbar-toast-icon{
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    border-radius:9px;
    background:#eaf8ef;
    color:var(--nav-green);
    font-size:15px;
}

.navbar-toast.error .navbar-toast-icon{
    background:#fff0ef;
    color:#d92d20;
}

.navbar-toast-message{
    flex:1;
    color:#344054;
    font-size:12px;
    line-height:1.5;
    font-weight:600;
}

.navbar-toast-close{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#7a8696;
    font-size:12px;
    cursor:pointer;
    transition:color .2s ease, background .2s ease;
}

.navbar-toast-close:hover{
    color:#344054;
    background:#f1f3f5;
}

.logout-link.is-processing{
    opacity:.75;
    pointer-events:none;
}

@media(max-width:700px){
    .navbar-toast{
        top:calc(var(--navbar-height) + 10px);
        left:10px;
        right:10px;
        width:auto;
        min-width:0;
        max-width:none;
        min-height:54px;
        padding:10px 10px 10px 12px;
        border-radius:10px;
        transform:translateY(-22px);
    }

    .navbar-toast.show{transform:translateY(0);}
    .navbar-toast-icon{width:29px;height:29px;border-radius:8px;font-size:13px;}
    .navbar-toast-message{font-size:11px;}
    .navbar-toast-close{width:28px;height:28px;}
}
