/**
 * Public top navigation — on the Rate Pulse design system (tokens.css).
 * Visually matched to the console sidebar (same violet active pill, ink text).
 */

.price-analytics-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
}

.nav-logo:hover { color: var(--ink); }
.nav-logo .rp-accent { color: var(--violet); }
.nav-logo img { display: block; }

.nav-links {
    display: inline-flex;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 13px;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    color: var(--ink);
    background-color: var(--paper-2);
    text-decoration: none;
}

.nav-link.active {
    color: var(--violet-ink);
    background-color: var(--violet-tint);
}

.nav-link--cta {
    color: var(--violet-ink);
    background-color: var(--violet-tint);
}

.nav-link--cta:hover {
    background-color: var(--violet-soft);
    color: var(--violet-ink);
}

/* ── User section ─────────────────────────────────────────────────── */

.nav-user {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 99px;
    transition: background 0.2s ease;
}

.nav-user-link:hover,
.nav-user-link--active {
    background: var(--paper-2);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-user-name {
    font-weight: 600;
    font-size: 13px;
}

.nav-logout {
    font-size: 12px;
    color: var(--ink-3);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-logout:hover {
    color: color-mix(in oklch, var(--coral), black 10%);
    background: var(--coral-soft);
}

/* ── Mobile: keep brand + CTA on the top row, tabs on their own row ──── */
@media (max-width: 600px) {
    .price-analytics-nav {
        flex-wrap: wrap;
        gap: 8px 10px;
    }

    .nav-logo { white-space: nowrap; }

    .nav-links {
        order: 3;
        flex-basis: 100%;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        white-space: nowrap;
        padding: 6px 10px;
        font-size: 13px;
    }
}
