If we spectroscopically observe a cloud of hot gas, which is on the whole not very absorbent, and which is not illuminated by a source behind it, we observe emission lines. How does this type of spectrum form? I had thought that those lines are those in which there are transitions of atoms is true, but I don't think that's enough. Why should all the material as a whole emit like that. Why are there these electronic transitions?
And then: if there is a light source behind the material, one observes a spectrum that is in a way the negative of the one I put, i.e. the lines become absorption lines. I had thought that something different must be happening in the two cases, although I don't know what.
And then again: if we knew nothing about electronic transitions and only wanted to consider the macroscopic properties of the gas (which could be composed of complicated molecules, in which there are not only electronic transitions but also other phenomena), could we still justify the fact that the emission and absorption spectra are the negative of each other?
Thank you for any input; complex, articulate and in-depth answers are also welcome.