How do I gain weight?

I want to gain weight (muscle). How many calories should I eat daily? Is there anything I shouldn’t eat? What are “empty calories”? It is impossible to give specific advice without knowing more details (ie…height, weight, body fat %, exercise routine, etc…), so I will just lay out some general