These episodes of profound infatuation — characterized by frequent thoughts about a love interest, moods dependent on their actions and vivid fantasy — have appeared in art and literature throughout history. But the digital world is primed to feed them.