Generative AI in Education: From Foundational Insights to the Socratic Playground for Learning