
/* ============================
 * NAVBAR CONTAINER
 * ============================ */

.nav-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width-content);
    width: 100%;
    position: relative;
    z-index: 999;
    padding: clamp(8px, calc(24px * var(--app-density)), 24px) clamp(10px, calc(26px * var(--app-density)), 32px);
    background: transparent;
    pointer-events: none;
    gap: clamp(8px, calc(20px * var(--app-density)), 32px);
}

/* ============================
 * LOGO (LINKS)
 * ============================ */

.navbar-logo {
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    height: clamp(26px, calc(38px * var(--app-density)), 38px);
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.navbar-logo a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
    font-size: clamp(0.74rem, calc(var(--font-size-md) * var(--app-density)), var(--font-size-md));
    line-height: var(--line-height-tight);
    font-family: var(--font-family-mono), monospace;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
}

.navbar-logo a:hover {
    color: var(--color-accent-blue);
}

/* ============================
 * NAVIGATION LINKS (MITTE)
 * ============================ */

.nav-bar-links-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, calc(16px * var(--app-density)), 24px);
    flex: 1 0 auto;
    pointer-events: auto;
}

.nav-bar-links {
    position: relative;
    padding: clamp(4px, calc(10px * var(--app-density)), 10px) clamp(6px, calc(16px * var(--app-density)), 16px);
    color: var(--color-text);
    font-size: clamp(0.62rem, calc(var(--font-size-sm) * var(--app-density)), var(--font-size-sm));
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-wide);
    font-family: var(--font-family-mono), monospace;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-sm);
    display: inline-block;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.nav-button__hotkey {
    display: inline-block;
    margin-right: clamp(2px, calc(6px * var(--app-density)), 6px);
    font-size: clamp(0.54rem, calc(var(--font-size-xs) * var(--app-density)), var(--font-size-xs));
    opacity: 0.6;
}

.nav-bar-links:hover {
    color: var(--color-accent-blue);
}

.nav-bar-links.is-active {
    color: var(--color-text);
    box-shadow:
            inset 0 6px 12px rgba(0, 0, 0, 0.22),
            inset 0 2px 4px rgba(0, 0, 0, 0.16);
}

.nav-bar-links.is-active:hover {
    color: var(--color-accent-blue);
}

.nav-bar-links.is-active .nav-button__hotkey {
    opacity: 1;
}

.nav-bar-links:active {
    box-shadow:
            inset 0 6px 12px rgba(0, 0, 0, 0.22),
            inset 0 2px 4px rgba(0, 0, 0, 0.16);
}

/* ============================
 * PROFILE/LOGIN (Right)
 * ============================ */

.navbar-profile {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(6px, calc(12px * var(--app-density)), 16px);
    pointer-events: auto;
}

.profile-container,
.fingerprint-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px;
    box-sizing: border-box;
    transition: box-shadow var(--transition-fast), background var(--transition-fast);
}

.fingerprint-container {
    padding: 8px;
}

.profile-container.is-active,
.fingerprint-container.is-active,
.profile-container:active,
.fingerprint-container:active {
    box-shadow:
            inset 0 6px 12px rgba(0, 0, 0, 0.22),
            inset 0 2px 4px rgba(0, 0, 0, 0.16);
}

.profile-container.is-active:hover,
.fingerprint-container.is-active:hover {
    box-shadow:
            inset 0 6px 12px rgba(0, 0, 0, 0.22),
            inset 0 2px 4px rgba(0, 0, 0, 0.16);
}

.profile-image,
.fingerprint-image {
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-fast);
    cursor: pointer;
}

.profile-image {
    width: clamp(28px, calc(40px * var(--app-density)), 40px);
    height: clamp(28px, calc(40px * var(--app-density)), 40px);
}

.fingerprint-image {
    width: clamp(22px, calc(32px * var(--app-density)), 32px);
    height: clamp(22px, calc(32px * var(--app-density)), 32px);
}

.profile-image:hover,
.fingerprint-image:hover {
    transform: scale(1.05);
}

.profile-container:hover .profile-image,
.fingerprint-container:hover .fingerprint-image {
    filter: saturate(1.1);
}

.profile-tooltip,
.fingerprint-tooltip {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-normal);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 1000;
}

.profile-container:hover .profile-tooltip,
.fingerprint-container:hover .fingerprint-tooltip {
    opacity: 1;
}
