What you need to do in situations like these is to get her mind off of the situation that's bugging her. I usually tell her simply, that if she wants to talk, to let me know, and we can meet up and she can talk about what's bothering her. When you meet up, don't choose a coffee house, because you'll be stuck listen to some story that's often times overly dramatic and that you can't do anything about. Instead, make it fun, like mini-golf, etc. where she has the opportunity to talk, but instead, you comfort her a different way: By showing her a great time to get her mind off of her troubles. If she just talks about trouble when she's with you, not only will you be friend-zoned-ed, but also these little neurons in her brain will be making connections between "bad time/trouble" and being with you.
Bottom line, comfort her. She needs someone who will make her feel better. Best way to do that isn't to dwell on the past though but to live in the present. Have an awesome time, and she will be actually comforted, instead of just talking her feelings out.
Be the guy who knows what she actually is looking for instead of what she says or
thinks she's looking for.
