Simple metaphor
Imagine a juice machine:
If you put in an orange, you always get the same juice → deterministic function (same input → same output).
If the machine only squeezes, without noise, without splashing, without polluting around → no edge effect → pure function.
If every time you can replace the machine with just an equivalent bottle of juice, without changing the rest of your kitchen → referential transparency.