Most of the posters here that are acting like an armchair analyst really doesn't know anything about Turkey, not only that they are posting quite ignorant stuff.
Erdoğan has "won" this election with an incredibly one sided propaganda. Think about it even though all TV channels are working for him, using all the resources of the country (such as carrying masses to squares with busses), by breaking the law and showing he is clearly supporting one side in the elections (in constitution it's clearly stated that the president should be neutral), with all the ballot rigging he was only able to get %51 of the votes. He has won but if you watched him talking last night you'd see the lack of confidence in his eyes. He has lost the 3 biggest cities; İstanbul, Ankara, İzmir. İzmir was a given but not only that whole Aegean region and Meditterrenean showed a strong support for No. AKP also has a secret opposition within, there is a big paranoia going on in the party because it's highly possible that some of the ministers were involved with coup that happened a few months ago, so it may cause a big crack within the party sooner or later.
Additionally Turkey's dynamics are much more different than other Islamic countries for it to become an Islamic state, even among Yes voters there is a noticeable crowd that wouldn't agree with that life style. There is also 10 million people who didn't vote for this election and keep in mind if votes from abroad wasn't included the outcome of the election would change.
Opposition needs new faces, Turkish people has always had a weak spot for "strong" looking leaders. Kılıçdaroğlu is an honest and smart guy but he doesn't have the aggressive tone that masses applause. Bahçeli, the biggest reason AKP is as strong as it is today has divided MHP voters into two camps, if he didn't bring up and support this presidential system we would be talking about something different today. There are pretty good politicians who has the brain and the confidence to rule these parties, or even start a new political party. Only problem is these old farts blocking their way, with the new system if one of them can manage to create one, it can be a seriously strong opposition against Erdoğan.
A lot of stuff will happen until the next election so it's going to be interesting. Personally I'm disappointed by the other half of my country but also am aware that they got this result with an unfair campaign. I advice people who are interested in politics to look into Turkish history. It really is quite interesting, especially from a western point of view.