It wasn’t long ago that Turkey appeared to be a bright beacon of democracy and moderation in a region accustomed to autocracy and radicalism. Now it looks more like a country heading towards authoritarianism at home and embracing adventurism abroad.