although later mosques developed into complex architectural structures built in diverse styles , the one requirement of all mosques continues to be based on the earliest model : a designation of space for the purpose of prayer .