
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root{
    --nav-bg: #185619;
    --white: #f2f2f2;
    --black: #000;
    --background: #FBFDFB;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "Inter", sans-serif;
}

::-webkit-scrollbar {
  width: 12px;
  height: 10px;
  background-color: var(--light-category);
}

::-webkit-scrollbar-track {
  background: var(--light-category);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
  border: 2px solid var(--light-category);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.nav-container-wrap{
    position: relative;
    /* display: none; */
}
.nav-container{
    display: flex;
    padding: 0px 64px;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    position: fixed;
    width: 100%;
    z-index: 100;

    & *{
        font-size: 15px;
        color: var(--white);
    }
}

.logo {
    width: 120px;
    height: 42px;
  }
  

nav{
    display: flex;
    padding: 16px 8px;
    align-items: center;
    gap: 32px;
}

nav .register-wrap{
    border: 2px solid var(--black, #000);
    background: var(--white);
    box-shadow: 4px 4px 1px 0px #000;
    padding: 5px 16px;
    transition: all .3s ease-in-out;

    &:hover{
        box-shadow: -4px -4px 1px 0px #0000005c;
    }
}

nav .register{
    color: var(--black);
/* typography/Body/B-1 Headings */
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    /* line-height: 27px; */
}

.drop-down{
    position: relative;
    cursor: pointer;
    transition: all .3s ease-in-out;
    ul{
        position: absolute;
        background: var(--nav-bg);
        top: 1.6rem;
        display: none;
        flex-direction: column;
        row-gap: 12px;
        padding: 26px;
        border-bottom-right-radius: 5px;
        border-bottom-left-radius: 5px;
        transition: all .3s ease-in-out;
    }

    &:hover ul{
        display: flex;
    }
}

.base-main-content{
    padding-top: 4.3rem;
    background: var(--background);
    
}

/* Auth */
.auth-menu{
    transition: all .3s ease-in-out;
    .auth-burger{
        display: none;
        flex-direction: column;
        gap: 4px;
        box-shadow: 2px 2px 1px 0 var(--black);

        span{
            width: 26px;
            height: 2px;
            background: var(--white);
        }
    }

    .close{
        display: none;
    }
    ul{
        position: absolute;
        right: 0;
        top: 76px;
        background: var(--nav-bg);
        width: 100%;
        display: none;
        flex-direction: column;
        row-gap: 16px;
        align-items: center;
        padding: 64px 0 64px;

        a{
            color: var(--white);
            font-size: 16px;
            font-weight: 500;
            padding: 8px;
            background: rgba(255, 255, 255, 0.187);
            width: 250px;
            text-align: center;
            border-radius: 5px;
        }
    }
}

footer{
    display: flex;
    width: 100%;
    padding: 64px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--black);

    & * {
        color: var(--white);
    }

    .footer-content{
        display: flex;
        padding: 0px 18px;
        align-items: flex-start;
        justify-content: space-between;
        align-self: stretch;
        gap: 32px;

        .logo-section{
            display: flex;
            width: 262px;
            flex-direction: column;
            align-items: flex-start;
            gap: 32px;

            p{
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: 28px; /* 140% */
            }
            .icons{
                display: flex;
                align-items: center;
                gap: 32px;

                svg{
                    width: 16px;
                    height: 16px;
                }
            }
        }

        .footer-links{
            display: flex;
            align-items: top;
            justify-content: center;
            gap: 40px;
            & > div {
                display: flex;
                flex-direction: column;
                .title{
                    margin-bottom: 24px;
                    h3{
                        font-size: 20px;
                        font-style: normal;
                        font-weight: 600;
                        line-height: 27px; /* 135% */
                    }
                }

                ul{
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 16px;
                    align-self: stretch;

                    li{
                        font-size: 15px;
                        font-style: normal;
                        font-weight: 400;
                        line-height: 1.15;
                        opacity: 0.8;
                    }
                }
            }

        }
    }

    .copyright{
        width: 100%;
        p{
            text-align: right;
            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: 28px; 
            margin-top: 16px;
        }
    }
}

@media(max-width: 780px){
    .nav-container{
        padding: 8px 40px;
    }
    .burger span{
        background-color: var(--white);
        width: 25px;
        height: 2px;
        border: 1px solid transparent;
    }

    .menu-wrap{
        & > ul{
            display: none;
        }

        &:hover > ul {
            position: absolute;
            display: flex;
            flex-direction: column;
            background-color: var(--nav-bg);
            left: 0;
            top: 4.4rem;
            width: 100%;
            padding: 1rem 0 2rem;
        }
    }

    .drop-down > ul{
        padding: 15px 26px 40px;
        border-radius: 5px;
    }


    .auth-menu{
        .auth-burger{
            display: flex;
            padding: 8px 4px;
        }

        .close{
            display: none;
        }
    }

    .show-menu{
         
        ul{
            display: flex;
        }
        .auth-burger{
            display: none;
        }
        .close{
            display: block;
            font-size: 20px;
            font-weight: 600;
            color: var(--white);
            box-shadow: 2px 2px 1px 0 var(--black);
            padding: 8px 12px;
        }
    }

    footer{
        .footer-content{
            flex-direction: column;
            column-gap: 0;
            row-gap: 54px;
            align-items: center;
            margin-bottom: 16px;            

            .logo-section{
                width: 80%;
            }

            .footer-links{
                gap: 24px;
            }
        }
    }
}


/* Media phone */
@media(max-width: 465px){
    .nav-container{
        padding: 8px 16px 0px 0px;
        /* display: none; */
    }

    .menu-wrap{
        &:hover > ul{
            top: 3.8rem;
        }
    }

    .show-menu{
        ul{
            width: 100%;
            right: 0;
            left: 0;
            
            a{
                text-align: center;
            }
        }
    }

    .user-button{
        padding: 4px;
    }
}

/* Mobile Bottom Tab Navigation - App-like Experience */
/* Hide mobile navigation by default on desktop */
.mobile-bottom-nav {
    display: none;
}

@media(max-width: 768px){
    /* Hide desktop navbar on mobile for authenticated users */
    body[data-authenticated="true"] .dashboard-navbar {
        display: none;
    }

    /* Create bottom navigation container */
    body[data-authenticated="true"]::after {
        content: '';
        display: block;
        height: 70px; /* Space for fixed bottom nav */
    }

    /* Show mobile bottom nav only for authenticated users */
    body[data-authenticated="true"] .mobile-bottom-nav {
        display: block !important;
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(24, 86, 25, 0.98), rgba(24, 86, 25, 0.95));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-bottom-nav.hidden {
        transform: translateY(100%);
    }

    .mobile-bottom-nav .nav-tabs {
        display: flex;
        justify-content: space-around;
        align-items: center;
        max-width: 600px;
        margin: 0 auto;
        padding: 0 20px;
        gap: 16px;
    }

    .mobile-bottom-nav .nav-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 12px;
        text-decoration: none;
        color: #ffffff;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 12px;
        position: relative;
        min-width: 60px;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    /* Ripple effect on tap */
    .mobile-bottom-nav .nav-tab::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.4s ease, height 0.4s ease;
    }

    .mobile-bottom-nav .nav-tab:active::after {
        width: 100px;
        height: 100px;
    }

    .mobile-bottom-nav .nav-tab svg {
        width: 24px;
        height: 24px;
        stroke: #ffffff;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .mobile-bottom-nav .nav-tab span {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.3px;
        transition: all 0.3s ease;
        white-space: nowrap;
        color: #ffffff;
    }

    .mobile-bottom-nav .nav-tab:active {
        transform: scale(0.92);
    }

    .mobile-bottom-nav .nav-tab.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.15);
    }

    .mobile-bottom-nav .nav-tab.active svg {
        stroke-width: 2.5;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
        transform: scale(1.1);
    }

    .mobile-bottom-nav .nav-tab.active span {
        font-weight: 600;
        transform: scale(1.05);
    }

    /* Active indicator dot */
    .mobile-bottom-nav .nav-tab.active::before {
        content: '';
        position: absolute;
        top: 4px;
        width: 4px;
        height: 4px;
        background: #ffffff;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    }

    /* Notification badge on bottom nav */
    .mobile-bottom-nav .notification-badge-mobile {
        position: absolute;
        top: 6px;
        right: 8px;
        background: #ff4444;
        color: white;
        border-radius: 10px;
        padding: 2px 6px;
        font-size: 10px;
        font-weight: 700;
        min-width: 18px;
        text-align: center;
        border: 2px solid var(--nav-bg);
        box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    }

    /* Adjust main content for bottom navigation */
    body[data-authenticated="true"] .authenticated-content {
        padding-bottom: 0px; /* Extra space for bottom nav */
    }

    /* Profile button in bottom nav - special styling */
    .mobile-bottom-nav .nav-tab.profile-tab {
        position: relative;
    }

    .mobile-bottom-nav .nav-tab.profile-tab .profile-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        object-fit: cover;
    }

    .mobile-bottom-nav .nav-tab.profile-tab.active .profile-avatar {
        border-color: #ffffff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }

    .mobile-bottom-nav .nav-tab.profile-tab .verification-badge-mobile {
        position: absolute;
        bottom: 20px;
        right: 10px;
        width: 14px;
        height: 14px;
        background: #4CAF50;
        border-radius: 50%;
        border: 2px solid var(--nav-bg);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-nav .nav-tab.profile-tab .verification-badge-mobile.verified-premium {
        background: linear-gradient(135deg, #FFD700, #FFA500);
    }

    .mobile-bottom-nav .nav-tab.profile-tab .verification-badge-mobile svg {
        width: 8px;
        height: 8px;
        stroke: white;
        stroke-width: 3;
    }
}

/* Tablet adjustments for bottom navigation (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    body[data-authenticated="true"] .mobile-bottom-nav {
        display: block !important;
    }

    .mobile-bottom-nav {
        padding: 12px 0 16px;
    }

    .mobile-bottom-nav .nav-tabs {
        display: flex;
        justify-content: space-around;
        align-items: center;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 40px;
        gap: 36px;
    }

    .mobile-bottom-nav .nav-tab {
        padding: 10px 16px;
        gap: 6px;
        min-width: 80px;
    }

    .mobile-bottom-nav .nav-tab svg {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav .nav-tab span {
        font-size: 0.875rem;
    }
}

@media(max-width: 425px){
    .lang-selector{
        display: none !important;
    }
}

/* Hide mobile bottom nav on desktop */
.mobile-bottom-nav {
    display: none;
}


@media(max-width: 376px){
    footer{
        .footer-content{

            .logo-section{
                width: 90%;
            }
        }
    }
}

@media(max-width: 330px){
    footer{
        .footer-content{
                 
            .footer-links{
                gap: 20px;
                padding: 8px;

                ul{
                    gap: 16px;

                    .title h3{
                        font-size: 15px;
                    }

                    li{
                        font-size: 13px;
                    }
                }
            }


        }
    }
}