/* =====================================================
   CLAUX - PROFILE HOVER CARD
   ===================================================== */

.profile-card {
    position: absolute;
    display: none;
    z-index: 2000;
    width: 260px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

.profile-card--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

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

.profile-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.profile-card-info {
    flex: 1;
    min-width: 0;
}

.profile-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.profile-card-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.profile-card-role {
    display: inline-block;
    font-size: 0.6375rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: capitalize;
}

.profile-card-footer {
    border-top: 1px solid var(--border);
    padding: 8px 16px;
    background: var(--bg-primary);
}

.profile-card-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.profile-card-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ── user-link styling ─────────────────────────────── */
[data-user-id] {
    cursor: pointer;
    transition: var(--transition);
}

[data-user-id]:hover {
    color: var(--accent);
    text-decoration: underline;
}
