/* MGF.AI public — navbar.css */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    background: rgba(6, 7, 11, 0.88);
    backdrop-filter: blur(20px) saturate(1.12);
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
    justify-content: space-between;
    gap: 2rem;
}

.navbar-brand {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.navbar-brand .brand-dot {
    color: var(--primary);
    transition: color var(--transition);
}

.navbar-brand .brand-ai {
    background: linear-gradient(135deg, var(--sweet-primary), var(--dark-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}
.nav-link.active {
    color: var(--primary);
}

.nav-link-with-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
}
/* Point LED (Mes Contacts + fils) — pas de chiffre */
.mgf-notif-led {
    display: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffc2e0, #ff2d6a 55%, #b01040);
    box-shadow: 0 0 10px rgba(255, 45, 106, 0.85), 0 0 4px rgba(168, 85, 247, 0.5);
    pointer-events: none;
    flex-shrink: 0;
}
.mgf-notif-led.is-on {
    display: inline-block;
    animation: mgfNotifLedPulse 1.8s ease-in-out infinite;
}
@keyframes mgfNotifLedPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.88; transform: scale(1.12); }
}
.nav-contacts-led {
    position: absolute;
    top: 2px;
    right: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.nav-lang-switch__link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.4rem;
    min-width: 1.75rem;
    text-align: center;
    border-radius: 6px;
}
.nav-lang-switch__link:hover,
.nav-lang-switch__link:focus-visible {
    color: var(--text);
}
.nav-lang-switch__link.is-active {
    color: var(--sweet-primary);
}
.nav-lang-switch__sep {
    color: var(--text-faint);
    user-select: none;
}

/* Token counter in navbar */
.nav-tokens {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    color: var(--token-color);
    font-weight: 600;
    cursor: default;
}
.nav-tokens svg { opacity: 0.8; }

/* Tier badge in navbar */
.nav-tier-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-xs);
}
.tier-free     { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }
.tier-premium  { background: linear-gradient(135deg, rgba(255,77,143,0.2), rgba(140,82,255,0.2)); color: var(--sweet-secondary); border: 1px solid rgba(255,77,143,0.3); }
.tier-vip      { background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,140,0,0.15)); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }

/* ── Menu compte (avatar) ── */
.nav-user-menu {
    position: relative;
    flex-shrink: 0;
}
.nav-user-trigger {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-elevated);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-user-trigger:hover {
    border-color: var(--border-active);
}
.nav-user-trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
}
.nav-user-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nav-user-initial {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    text-transform: uppercase;
}
.nav-user-menu.is-open .nav-user-trigger {
    border-color: var(--primary);
}
.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    padding: 0.4rem 0;
    background: rgba(14, 16, 22, 0.98);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    z-index: 1100;
}
.nav-user-menu.is-open .nav-user-dropdown {
    display: block !important;
}
.nav-user-dropdown a {
    display: block;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-user-dropdown a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text);
}
.nav-user-dropdown a.nav-user-dropdown-logout {
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    color: var(--text-faint);
}
.nav-user-dropdown a.nav-user-dropdown-logout:hover {
    color: var(--sweet-secondary);
}

/* ── Theme Switch ── */
.theme-switch {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 4px;
    position: relative;
    width: 60px;
    height: 32px;
    margin-right: 0.5rem;
}
.theme-switch-knob {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform var(--transition);
    top: 3px;
    left: 3px;
    pointer-events: none;
}
[data-mode="after_dark"] .theme-switch-knob {
    transform: translateX(28px);
    background: rgba(121, 40, 202, 0.4);
    border-color: var(--dark-primary);
}
.theme-switch-icon {
    font-size: 0.85rem;
    width: 50%;
    text-align: center;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
    user-select: none;
}
[data-mode="sweet"] .theme-switch-icon.sweet { opacity: 1; text-shadow: 0 0 5px var(--sweet-primary); }
[data-mode="after_dark"] .theme-switch-icon.dark { opacity: 1; text-shadow: 0 0 5px var(--dark-primary); }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
