Without sitting down and actually figuring out calories, I would say that your previous diet wasnt even enough to support you.
You didnt overtrain, you underrecovered.
You probably experianced some initial success and then saw it even off and stop. What happened was you shocked your body, lost (most likely) minimal fat, mostly water and probably muscle tissue. At that point the low calories signaled the "starvation" response and your body started to hold onto fat and/or create fat out of anything it could get its hands on.
All you need, and I mean ALL YOU NEED is a well thought out, rounded diet. Until you get to the point that bodyfat is so low that traditional dieting wont work, you should just stick to a regular diet.
Enough protien, complex carbs, beneficial fats.
If you dont have enough calories to fuel your body it is self defeating.
If you go for fad diets, youll see temporary results and then end up looking for the next fad.
If you do extreme diets, youll lose your will power and quit.
Forget any diet that the creator names after themself. Look into John Parrillo, his methods of dieting are scientifically sound and reflect the way a person really eats, and he has turned out not only top bodybuilders and athletes, but everyday people.
And its not called "The Parrillo Diet"
I hope that gives you a start...