A bothersome crush

I'm not really the most social type person, I live in Florida and you'll usually catch me on my phone indoors talking to my online friends from either video chatting or us sending golden or shitty memes through Instagram.Its been like that for over a year now and they've always been there for me, especially the boy in glasses.I was there for him whenever he was down, and he was always there for me, we'll always vent and talk about life and nearly anything within that spectrum,but during the middle of summer I started to catch feelings, I just ignored them because one, my other close friend never got over him, and two , he lives in Oklahoma. One day he told me the news that he got a girfriend and I just froze for a full second and felt so goddamn empty, but then he said something that just really got me stunned, He said "she's like you but here and you'll always be my favorite bean". After he told me that, the idea of his girlfriend was bitter sweet, he was happy with her and that fucking great because he deserves it and he seems to have been in love with her so I was happy about that,but then we just slowly started stopped talking like we did, I mean yeah we still talked but it had a completly different vibe but it was cool because he has a lot going on, but then I really began to miss him and told him how I felt (HELL NO NOT ABOUT ME HAVING A MINOR CRUSH) he said it was cool and we continued talking like before,but then he got ultra distant but was still there.You see all of my online best friends including myself are in a group chat that well always be in and stuff.Anyways after a week he started complaining about a girl hitting on him and everyone gave him advice about it and stuff, but everyone was treating it as if he were single, I pmd him and he told me that obviously the two broke up ,I felt like beyond shit, I promised I would be there for him but I couldn't catch the hint of what happened?!?! we started talking about things and he told me he loved me,obviously in a friendship way so I said responded with I love you too like a little bro. Not gonna lie I really feel like a fucking idiot for saying that because at this point I feel like I might love him in a DIFFRENT WAY. But anyways, hes in a new relationship now because he started liking the girl that was hitting on him. I really like him alot,but with the distance,friendship amd everything going on I know it'll never be possible,I just need some kind of advice that'll help I just feel so confused on what to do