/* global-nav.css */
body {
    margin: 0;
    padding-top: 80px !important;
    /* Fixed nav spacing */
}

.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #09090b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    color: #fff;
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    width: auto;
}

.nav-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
}

.nav-center {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-right {
    display: flex;
    align-items: center;
    width: auto;
    justify-content: flex-end;
}

.nav-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 12px;
}

a.nav-subtitle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-item.active {
    background: rgba(100, 50, 200, 0.4);
    color: #fff;
    box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.2);
}

.nav-item-icon {
    font-size: 15px;
}

@media (max-width: 1100px) {
    .nav-subtitle {
        display: none;
    }

    .nav-divider {
        display: none;
    }
}

@media (max-width: 650px) {
    .global-nav {
        padding: 0 12px;
        justify-content: space-between;
    }

    .nav-center {
        position: static;
        transform: none;
        flex: 1;
        justify-content: center;
        margin-left: 12px;
    }

    .nav-right {
        display: none;
    }

    .nav-brand {
        display: none;
    }

    .nav-left {
        width: auto;
    }

    .nav-item {
        padding: 8px 10px;
        gap: 6px;
        font-size: 12px;
    }

    .nav-item-icon {
        font-size: 13px;
    }
}

@media (max-width: 490px) {
    body {
        padding-top: 112px !important;
    }

    .global-nav {
        height: auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-left {
        width: 100%;
        justify-content: center;
    }

    .nav-brand {
        display: block;
        font-size: 15px;
    }

    .nav-center {
        position: static;
        transform: none;
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 3px;
    }

    .nav-item {
        padding: 7px 9px;
        font-size: 11px;
        gap: 5px;
        flex: 1;
        justify-content: center;
        min-width: 60px;
    }

    .nav-item-icon {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    body {
        padding-top: 148px !important;
    }

    .nav-item {
        flex: 0 0 calc(50% - 4px);
        font-size: 11px;
        padding: 7px 6px;
    }
}