dsaun777 said:
What is the difference between the internal gain of mass in the atom and the gain of only energy not mass of the electron?
For a classical particle at rest, its four-momentum is ##(mc,0,0,0)## and its mass is the modulus of this divided by ##c##. If the particle is in motion at speed ##v## in the +x direction (with corresponding Lorentz factor ##\gamma_v##) then its four-momentum is ##(\gamma_vmc,\gamma_vmv,0,0)##. Again, its mass is the modulus of this divided by ##c##, or ##\sqrt{(\gamma_vmc)^2-(\gamma_vmv)^2}/c=m## (you can work through the algebra yourself). So simply adding kinetic energy to something does not increase its mass.
Now think about two classical particles at rest. Their four momenta add, giving a total of ##((m+M)c,0,0,0)## with the obvious mass. If you accelerate them to ##v## then the same reasoning as in the previous paragraph applies and the mass doesn't change.
However, if you accelerate them to different speeds ##u## and ##v## then the total four-momentum is ##(\gamma_vmc+\gamma_uMc,\gamma_vmv+\gamma_uMu,0,0)##. If you work out the modulus of this and divide by ##c## to get the mass then you will find that it has changed. The reason that this case is different from the others is that you have an extra degree of freedom here, because the particles can be moving in their joint centre of mass frame. The single particle cannot and the two particles at the same speed are stipulated not to be doing so.
Note that the above applies to classical particles, not quantum ones. However some similar analysis must apply to quantum particles because otherwise the mass of a box of hot gas would vary as its atoms absorbed and emitted photons. I don't know enough quantum to fill in the maths, unfortunately.