Oh congratulations :-) I'm happy to hear that it wasn't as bad as you thought it might have been. I think that you did a good job. You were aware that reading about possible diagnoses online would get you more paranoid than logic dictates, and you stopped yourself. Well done :-)
Going gluten free might have adjusted your hormone levels. For me, I never got a period naturally until I went gluten-free. My hormones were all over the place and had settled due to the diet. Could be that the change of chemistry in your body + change of prevention meathod had this result on you.