/* Uniify.Space header auth — same patterns as main site (style.css) */

.auth-links-container {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 6px;
}

.auth-divider {
    width: 1px;
    height: 14px;
    background: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.auth-link {
    color: var(--text-tertiary, #86868b);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    font-weight: 500;
    padding: 0.25rem;
}

.auth-link:hover {
    color: var(--text-primary, #1d1d1f);
}

.text-muted.auth-link {
    color: var(--text-tertiary, #86868b);
}

.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-avatar {
    width: 47px;
    height: 47px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.12);
    background: var(--bg-secondary, #f5f5f7);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.user-avatar:hover {
    border-color: rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.avatar-initials {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
    line-height: 1;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.1);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 1200;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.dropdown-avatar-img,
.dropdown-avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dropdown-avatar-img {
    object-fit: cover;
    display: block;
}

.dropdown-avatar-initials {
    background: var(--bg-secondary, #f5f5f7);
    border: 2px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
    font-size: 0.875rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 0.75rem;
    color: var(--text-tertiary, #86868b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-credits {
    font-size: 0.75rem;
    color: var(--text-tertiary, #86868b);
    margin-top: 0.25rem;
    font-weight: 500;
    line-height: 1.35;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0;
}

.user-dropdown-item {
    width: 100%;
    padding: 12px 16px;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-primary, #1d1d1f);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.user-dropdown-item:hover {
    background: var(--bg-secondary, #f5f5f7);
}

#auth-status {
    display: inline-flex;
    align-items: center;
}
