/* ============================================================
   HRCLARITY NEW NAVBAR
   Version 1.0
   Completely isolated from old navbar CSS
============================================================ */


/* ============================================================
   BASE NAVBAR
============================================================ */

.hcn-navbar {

    position: sticky;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 99999;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid #e5e7eb;

    box-shadow:
        0 2px 12px rgba(15, 23, 42, 0.04);

    font-family: 'Inter', sans-serif;

}


/* ============================================================
   CONTAINER
============================================================ */

.hcn-container {

    width: calc(100% - 40px);

    max-width: 1200px;

    min-height: 74px;

    margin: 0 auto;

    display: flex;

    align-items: center;

}


/* ============================================================
   LOGO
============================================================ */

.hcn-logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

    text-decoration: none !important;

}


.hcn-logo-icon {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 21px;

    font-weight: 800;

    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.20);

}


.hcn-logo-name {

    color: #0f172a;

    font-size: 22px;

    font-weight: 800;

    letter-spacing: -0.7px;

}


.hcn-logo-name span {

    color: #2563eb;

}


/* ============================================================
   MENU
============================================================ */

.hcn-menu {

    display: flex;

    align-items: center;

    gap: 30px;

    margin-left: auto;

}


.hcn-link {

    position: relative;

    display: flex;

    align-items: center;

    height: 74px;

    color: #475569 !important;

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.2s ease;

}


.hcn-link:hover {

    color: #2563eb !important;

}


/* underline */

.hcn-link::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 19px;

    height: 2px;

    background: #2563eb;

    transform: scaleX(0);

    transition:
        transform 0.2s ease;

}


.hcn-link:hover::after {

    transform: scaleX(1);

}


/* ============================================================
   DESKTOP ACTIONS
============================================================ */

.hcn-desktop-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-left: 28px;

}


/* ============================================================
   BUTTONS
============================================================ */

.hcn-button {

    min-height: 42px;

    padding: 0 17px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        all 0.2s ease;

}


.hcn-button-outline {

    color: #0f172a !important;

    background: #ffffff;

    border: 1px solid #e2e8f0;

}


.hcn-button-outline:hover {

    color: #2563eb !important;

    border-color: #bfdbfe;

    background: #f8fbff;

}


.hcn-button-primary {

    color: #ffffff !important;

    background: #2563eb;

    border: 1px solid #2563eb;

    box-shadow:
        0 6px 16px rgba(37, 99, 235, 0.20);

}


.hcn-button-primary:hover {

    color: #ffffff !important;

    background: #1d4ed8;

    border-color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.25);

}


/* ============================================================
   MOBILE ACTIONS
============================================================ */

.hcn-mobile-actions {

    display: none;

}


/* ============================================================
   MOBILE TOGGLE
============================================================ */

.hcn-toggle {

    display: none;

    width: 42px;

    height: 42px;

    margin-left: auto;

    padding: 0;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

}


.hcn-toggle span {

    display: block;

    width: 19px;

    height: 2px;

    background: #0f172a;

    border-radius: 2px;

    transition:
        all 0.25s ease;

}


/* ============================================================
   MOBILE OPEN ICON
============================================================ */

.hcn-navbar.hcn-open
.hcn-toggle span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);

}


.hcn-navbar.hcn-open
.hcn-toggle span:nth-child(2) {

    opacity: 0;

}


.hcn-navbar.hcn-open
.hcn-toggle span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {


    .hcn-container {

        min-height: 68px;

    }


    /* Hide desktop buttons */

    .hcn-desktop-actions {

        display: none;

    }


    /* Show hamburger */

    .hcn-toggle {

        display: flex;

    }


    /* Mobile menu */

    .hcn-menu {

        display: none;

        position: absolute;

        top: 68px;

        left: 0;

        width: 100%;

        margin: 0;

        padding: 12px 20px 20px;

        background: #ffffff;

        border-top: 1px solid #e5e7eb;

        border-bottom: 1px solid #e5e7eb;

        box-shadow:
            0 15px 35px rgba(15, 23, 42, 0.10);

        flex-direction: column;

        align-items: stretch;

        gap: 2px;

    }


    /* Open */

    .hcn-navbar.hcn-open
    .hcn-menu {

        display: flex;

    }


    /* Mobile links */

    .hcn-link {

        height: auto;

        min-height: 46px;

        padding: 11px 12px;

        border-radius: 8px;

        font-size: 14px;

    }


    .hcn-link:hover {

        background: #eff6ff;

    }


    .hcn-link::after {

        display: none;

    }


    /* Mobile actions */

    .hcn-mobile-actions {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;

        margin-top: 10px;

        padding-top: 12px;

        border-top: 1px solid #e5e7eb;

    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {


    .hcn-container {

        width: calc(100% - 28px);

        min-height: 64px;

    }


    .hcn-logo-name {

        font-size: 20px;

    }


    .hcn-logo-icon {

        width: 35px;
        height: 35px;

        font-size: 19px;

    }


    .hcn-menu {

        top: 64px;

    }


}