It is just the livers inability to remove toxins from the blood leading to 'dirty blood'.Try eating foods you know you are allergic to and this brain fog will get worse for a time.I know as i have suffered from this fog for the past 3 years.
Eating a very basic diet consisting of 4 foods works well for me in alleviating symptoms.Those foods are brown rice , green peas , chicken and pears.