/**
 * Shared navbar styles — all pages with MedDex navigation.
 * Provides the dark/navy-to-teal gradient navbar with accent line.
 */

.mdx-nav {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, #0a1628 0%, #0d2235 60%, #0a2028 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 1px 0 rgba(16, 185, 129, 0.15);
}
.mdx-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
    max-width: 1140px;
    margin: 0 auto;
}

/* Logo */
.mdx-logo {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.mdx-logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
.mdx-logo img { height: 38px; width: 38px; border-radius: 9px; object-fit: cover; }
.mdx-logo-dot { color: #10b981; }

/* Nav links */
.mdx-nav-links {
    display: flex;
    align-items: center;
    gap: 2.75rem;
    margin: 0 auto;
}
.mdx-nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.15s;
}
.mdx-nav-link:hover { color: #fff; }
.mdx-nav-link.active { color: #fff; }

/* Nav badge (New, etc.) */
.mdx-nav-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 0.35rem;
}

/* Search Free CTA */
.mdx-nav-cta {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 0.6rem 1.4rem;
    border-radius: 9px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.45), 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.2px;
}
.mdx-nav-cta:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.65), 0 4px 12px rgba(0,0,0,0.35);
    transform: translateY(-1px);
}

/* Dropdowns */
.mdx-has-dropdown {
    position: relative;
}
.mdx-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    background: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: color 0.15s;
    padding: 0;
    font-family: 'Satoshi', 'Space Grotesk', sans-serif;
}
.mdx-dropdown-toggle:hover { color: #fff; }
.mdx-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: #0d1f30;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    white-space: nowrap;
}
.mdx-dropdown-menu.open { display: block; }
.mdx-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    border-radius: 7px;
    transition: background 0.15s, color 0.15s;
}
.mdx-dropdown-item:hover { background: rgba(16, 185, 129, 0.1); color: #fff; }
.mdx-dropdown-item.disabled { color: rgba(255,255,255,0.3); pointer-events: none; }
.mdx-dropdown-item.live .item-label { color: #fff; }
.mdx-dropdown-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 0.35rem 0; }

/* User nav */
.mdx-user-email {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
    font-weight: 500;
}
.mdx-user-tier {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid;
}
.mdx-tier-owner { color: #f59e0b; border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.1); }
.mdx-tier-platinum { color: #818cf8; border-color: rgba(129,140,248,0.4); background: rgba(129,140,248,0.1); }
.mdx-tier-pro { color: #10b981; border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.1); }
.mdx-tier-free { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.15); background: transparent; }
.mdx-logout-btn {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.mdx-logout-btn:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }

/* User avatar */
.mdx-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,0.4), rgba(16,185,129,0.2));
    border: 1.5px solid rgba(16,185,129,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #10b981;
    flex-shrink: 0;
    text-transform: uppercase;
}
.mdx-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sign in link */
.mdx-signin {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}
.mdx-signin:hover { color: rgba(255,255,255,0.9); }

/* Hamburger */
.mdx-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: rgba(255,255,255,0.8);
}

/* Mobile menu */
#mdxMobileMenu {
    display: none;
    background: #0a1628;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    padding: 0.75rem 1.5rem 1.5rem;
}
#mdxMobileMenu.open { display: block; }
.mdx-mobile-section { margin-bottom: 1.25rem; }
.mdx-mobile-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.5rem;
}
.mdx-mobile-link {
    display: block;
    font-size: 0.98rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.15s;
}
.mdx-mobile-link:hover { color: #fff; }
.mdx-mobile-sub {
    display: block;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding: 0.5rem 0 0.5rem 1.5rem;
    transition: color 0.15s;
}
.mdx-mobile-sub:hover { color: rgba(255,255,255,0.8); }
.mdx-mobile-sub.disabled { color: rgba(255,255,255,0.25); pointer-events: none; }

@media (max-width: 768px) {
    .mdx-nav-links { display: none; }
    .mdx-hamburger { display: block; }
    .mdx-nav-inner { padding: 0.9rem 1.25rem; }
}
@media (max-width: 480px) {
    .mdx-nav-inner { padding: 0.8rem 1rem; }
    .mdx-logo { font-size: 1.35rem; }
    .mdx-logo-mark { width: 34px; height: 34px; font-size: 0.95rem; }
}