So there is a Rosy Ratio and just the opposite of helplessness and hopeless. It makes sense, too, that unrequited love feels so bad. And when one is rejected by the lover, one loses that most desirable state of affairs which the lover formerly had. The comparison is between the actuality of being without the beloved's love and the former state of having it. No wonder it is so painful to believe that the love affair really is over and nothing one can do can bring back the love.
Good feelings can also occur as a consequence of events that are originally perceived as painful.
Hence you feel a positive anticipation. Now you feel pride. You feel good when the comparison appears positive.