The water in the shower trap could be getting sucked out by the vacuum caused when the toilet is flushed.
We've got a similar issue in our bathroom - when the bath empties, the shower trap gurgles and you get a smell of drains. I keep meaning to fit an air admittance valve between the bath...