How do I stop being an idiot?

Lately I’ve been selfish and stupid, making really bad decisions when I know better. Saying dumb things. Just being a complete idiot and reckless.

I think it’s because I’m feeling depressed and just want out of it. There’s something not right with me. I’ve tried talking to my parents about it but they just tell me to be happy and that’s it. They’re no help

What can I do?