You should move the p-trap so the riser is right over the p-trap. As long as you can maintain at least the minimum 1/4"/foot slope, it should be okay with one possible gotcha...the vent must be NGT 60" from the outlet of the trap. How far away will the vent be if you move things?
Having a long, jointed riser means more surface area that could accumulate crud and smell. A vertical riser to the trap tends to scour cleaner, and then the trap right below with its water seal will block anything beyond from smelling up the place.
Once you resolve that, suggest you check out
www.johnbridge.com for help in constructing your shower. There's a huge amount of just plain wrong info out there and 70-80% of tiled showers built in this country are not done according to industry standards. There are lots of different methods, none are particularly hard, but very detail oriented...mess up one requirement, less than optimal operation. The industry bible is the TCNA handbook that gets updated annually. That's the 'Tile Council of North America'.