/* Shared NobleLex top navigation (matches index.html) */

.logo-engraved {
    flex-shrink: 0;
    display: block;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: none !important;
    filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.4));
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}

.logo-engraved:hover {
    transform: scale(1.06);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
    padding: 14px 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar-logo {
    pointer-events: auto;
    position: absolute;
    left: 20px;
    top: 14px;
    display: flex;
    text-decoration: none;
    line-height: 0;
}

.topbar-logo .logo-engraved {
    width: 64px !important;
    height: 64px !important;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45));
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), filter 0.35s cubic-bezier(.2,.8,.2,1);
}

.topbar-logo:hover .logo-engraved {
    transform: scale(1.08);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.55));
}

.nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    background: rgba(12, 11, 20, 0.55);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid var(--border-2);
    border-radius: 999px;
    padding: 6px 8px 6px 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    gap: 12px;
    transition: 0.35s cubic-bezier(.2, .8, .2, 1);
}

[data-theme$="-light"] .nav {
    background: rgba(248, 245, 238, 0.75);
    box-shadow: 0 8px 40px rgba(60, 40, 10, 0.10);
}

.brand {
    display: flex;
    align-items: center;
    padding: 4px 14px 4px 4px;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;
}

.brand-text {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-3), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
    transition: text-shadow 0.35s cubic-bezier(.2, .8, .2, 1);
}

.brand:hover .brand-text {
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: rgba(5, 4, 10, 0.40);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    position: static;
}

[data-theme$="-light"] .nav-links {
    background: rgba(255, 255, 255, 0.55);
    border-color: var(--border-2);
}

.nav-links a {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.35s cubic-bezier(.2, .8, .2, 1), background 0.35s cubic-bezier(.2, .8, .2, 1);
    white-space: nowrap;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--gold-2);
    background: var(--gold-dim);
}

.nav-links a.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #05040A;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(201, 168, 76, 0.30);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

#login-btn {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    transition: 0.35s cubic-bezier(.2, .8, .2, 1);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}

#login-btn:hover {
    background: var(--surface-2);
    border-color: var(--border-3);
    color: var(--text);
}

.nav-right .btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #05040A;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
    text-decoration: none;
    white-space: nowrap;
    transition: 0.35s cubic-bezier(.2, .8, .2, 1);
}

.nav-right .btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35);
}

.mobile-menu-toggle {
    display: none;
}

body.mobile-nav-open {
    overflow: hidden;
}

body.has-site-chrome {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

body.has-site-chrome > .app-shell,
body.has-site-chrome > .main-wrapper,
body.has-site-chrome > .page-shell,
body.has-site-chrome > main:not(.site-chrome-main) {
    flex: 1;
    min-height: 0;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 220px;
    background: var(--bg3, #100F1C);
    border: 1px solid var(--border-2);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(24px);
    overflow: hidden;
    z-index: 1001;
    animation: dropdownPop 0.22s cubic-bezier(.2, .8, .2, 1);
}

.profile-dropdown.show {
    display: block;
}

.dropdown-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(201, 168, 76, 0.04);
}

.dropdown-name {
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item {
    width: 100%;
    text-align: left;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.35s cubic-bezier(.2, .8, .2, 1);
    color: var(--text);
    display: block;
    background: none;
    border: none;
    font-family: inherit;
}

.dropdown-item:hover {
    background: var(--surface-2);
}

.dropdown-item.text-danger {
    color: #e57373;
}

@keyframes dropdownPop {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── all mobile nav styles are injected by site-chrome.js ── */
