/*
 * ACE Grammar Engine
 * Top Navigation
 * File: /ace/css/ace_top_navigation.css
 */

:root {
    --ace-header-bg: rgba(12, 24, 38, 0.96);
    --ace-header-bg-2: rgba(18, 38, 58, 0.96);
    --ace-text: #edf4f8;
    --ace-muted: #a9bbc8;
    --ace-accent: #66d0b3;
    --ace-accent-soft: rgba(102, 208, 179, 0.14);
    --ace-border: rgba(255, 255, 255, 0.09);
    --ace-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   SITE HEADER
   ========================================================= */

.ace-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;

    background:
        linear-gradient(
            135deg,
            var(--ace-header-bg),
            var(--ace-header-bg-2)
        );

    border-bottom: 1px solid var(--ace-border);
    box-shadow: var(--ace-shadow);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* =========================================================
   HEADER CONTAINER
   ========================================================= */

.ace-header-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 11px 20px;

    display: flex;
    align-items: center;
    gap: 22px;
}


/* =========================================================
   ACE BRAND
   ========================================================= */

.ace-brand {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--ace-text);
    text-decoration: none;
    white-space: nowrap;
}

.ace-brand-mark {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #72dfbf,
            #2da887
        );

    color: #08251e;

    font-size: 18px;
    font-weight: 900;
    letter-spacing: -1px;

    box-shadow:
        0 6px 18px rgba(45, 168, 135, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.ace-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.ace-brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ace-brand-subtitle {
    margin-top: 4px;

    color: var(--ace-muted);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.ace-nav {
    min-width: 0;
    flex: 1 1 auto;

    display: flex;
    align-items: center;
    gap: 5px;

    overflow-x: auto;

    scrollbar-width: none;
}

.ace-nav::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   NAVIGATION GROUPS
   ========================================================= */

.ace-nav-group {
    display: flex;
    align-items: center;
    gap: 4px;
}


/* =========================================================
   NAVIGATION DIVIDERS
   ========================================================= */

.ace-nav-divider {
    width: 1px;
    height: 24px;
    margin: 0 5px;

    background: var(--ace-border);

    flex: 0 0 auto;
}


/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.ace-nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 0 10px;

    border-radius: 8px;

    color: #d8e3e9;
    text-decoration: none;

    font-size: 13px;
    font-weight: 650;

    white-space: nowrap;

    transition:
        color 0.16s ease,
        background 0.16s ease,
        transform 0.16s ease;
}

.ace-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);

    transform: translateY(-1px);
}


/* =========================================================
   ACTIVE PAGE
   ========================================================= */

.ace-nav-link.active {
    color: #8de5cc;
    background: var(--ace-accent-soft);
}

.ace-nav-link.active::after {
    content: "";

    position: absolute;

    left: 10px;
    right: 10px;
    bottom: 3px;

    height: 2px;

    border-radius: 2px;

    background: var(--ace-accent);
}


/* =========================================================
   PRIMARY NAVIGATION ITEM
   ========================================================= */

.ace-nav-link.primary {
    background: rgba(102, 208, 179, 0.12);
    color: #9ae8d2;
}

.ace-nav-link.primary:hover {
    background: rgba(102, 208, 179, 0.20);
    color: #c1f6e7;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ace-header-inner {
        padding: 9px 12px;
        gap: 12px;
    }

    .ace-brand-subtitle {
        display: none;
    }

    .ace-brand-mark {
        width: 34px;
        height: 34px;
    }

    .ace-brand-title {
        font-size: 14px;
    }

    .ace-nav-link {
        min-height: 32px;
        padding: 0 8px;

        font-size: 12px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ace-header-inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 7px;
    }

    .ace-nav {
        width: 100%;
        padding-bottom: 2px;
    }

    .ace-nav-divider {
        height: 20px;
    }
}