what is the halacha of nightlife, bars, clubs, and parties

many young frum jews end up around nightlife at some point: bars, clubs, house parties, concerts. nobody claims it is a beis medrash, but what does halacha actually say? 1. is there an actual issur in being at a bar or a club, or is it a question of what happens...