Total daily protein matters far more than the minute you eat it. Aim for roughly 0.7 to 1 gram per pound of body weight.
Carbs fuel hard training. Put most of them around your workout and you will lift better and recover faster.
A modest surplus of 250 to 300 calories per day is enough to gain steadily without adding much fat.