Bloat - water retention or gas?
Sodium, stress, estrogen can affect water retention.
Broccoli, too many complex carbs, eggs sometimes, oatmeal, too many fats can cause gas. To this end you can add digestive enzymes to your diet.
For ex - broccoli - I live off broccoli for competition but its brutal to my stomach. Turns out broccoli has a sugar in it that we don't have a natural enzyme in our bodies to digest it. So you can get digestive enzyme pills or even Beano.