workplace sexual harassment?



I would like to start out by saying I'm a 36 year old woman, carefree, try to live a positive & happy life. While working at a chain department store I asked a coworker (semi new friend) who I knew was gay but was being playful/silly/childlike if she liked being with women or men? She answered while laughing going along with the conversation. A while later I was called into HR and reported for harassment. They said there is a good chance I will lose my job over this. While I understand looking back it was inappropriate I am shocked to know it's harassment & fire worthy. Should I just suck it up & take it as a lesson learned? On a side note I not only love this job I need it. I am devastated!