I looked into the sun for too long, now my eyes hurt?

Solar retinopathy. Solar retiinopathy is damage to the eye's retina, specifically to the center of retina called the macula, from long exposure to sun rays or other bright light. It usually occurs due to staring at the sun, watching a solar eclipse or viewing a very bright light for long time. The damage is due to photochemical injury rather than thermal. Please see a retina specialist. It may or may not get better.