Previously hidden sunspot unleashes colossal X-class solar flare as it turns to face Earth