How does the Carnot Cycle work? I am learning the Carnot cycle, which consists of four transformations for a fluid.
In the first two transformations the volume of the fluid expands, generating work.
This happens in two steps:

*

*First, we approach a hot source and the gas expands and work is generated (okay, temperature increases and fluid wants to expand → the generated work comes 100% from the consumed heat, because the internal energy did not change during the isothermal process)

*Then we remove the hot source and the gas is supposed to keep expanding (Question A: Not really sure how the gas keeps expanding after we remove the hot source. If no heat source is close, it seems logic to expect that the expansion will just stop. Why would it want to continue? Expansion means work done. Since there is no heat flow, the gas would be losing internal energy. Why would the gas want to lose internal energy to create work?).

In the second two transformations the volume of the fluid decreases.
This happens in two steps:


*First, we approach a cold source, so the fluid naturally flushes some heat away to the cold source and hence decreases its temperature and hence decreases its volume. (That is quite reasonable).

*Finally, the fluid keeps compressing, automatically increasing its temperature and pressure, coming back to state number 1 (Question B: How can expect the fluid to keep being compressed automatically? Being this an adiabatic process and an increase in temperature, this means work must be done on the system. Who is doing this work?).

1 and 3 are based on putting a thermal source close to the fluid so nature will do what it does, according to the second law.
But 2 and 4 seem like magic to me, since I don't understand what goes on behind the scenes.
There is a similar question but I still don't get it. Thought it was better to create a new question, rather than commenting on an old one. Also, this way I can expose my complete point of view on the case.
I would also like to understand how this relates to the efficiency of the carnot cycle.
Which comes from something like:
$$\dfrac{GeneratedWork}{GivenEnergy}=\dfrac{HeatIn-HeatOut}{HeatIn}$$
This is understandable but then it goes on like:
$$\dfrac{HeatIn-HeatOut}{HeatIn} = 1 - \dfrac{T_{cold}}{T_{hot}}$$
There are two confusions with this:
Question C.
How is it possible to mix heat and temperature in such an easy way?
This is almost like saying that heat = temperature.
Also, I understood heat is never absolute, but a variation. While temperature is actually an absolute measure.
Question D.
If 4 actually requires external work for the compression, how come is this applied work not reflected in the efficiency? (maybe it is, but I do not see it)
UPDATE:
This video is very helpful: https://youtu.be/d6eJ8mccvu0&t=939
 A: The typical depiction of the Carnot Cycle is with the use of a closed cylinder containing an ideal gas fitted with a piston with a shaft that extends outside the cylinder to interact with the surroundings. In the following I will refer to the fluid as an ideal gas.

First, we approach a hot source (okay, temperature increases and fluid
  wants to expand)

The first process is reversible isothermal (constant temperature) expansion. The temperature does not increase. For an ideal gas that means the product of the pressure and volume is constant. As the volume expands the pressure resisting the expansion  by the surroundings must proportionately decrease. The work done in the expansion exactly equals the heat added and the change in internal energy is zero. By the first law $\Delta U=Q-W$. Since $\Delta U=0$, we have $Q=W$ and $Q=T_{HOT}\Delta S$ where $\Delta S$ is the change in entropy.

Then we remove the hot source (Question A: Not really sure how the
  fluid keeps expanding after we remove the hot source. If no heat
  source is close, it seems logic to expect that the expansion will just
  stop.).

The second process is a reversible adiabatic (no heat transfer) process. The answer to question A is the gas keeps expanding because the external pressure is gradually intentionally reduced to allow the expansion to continue. Since $Q=0$ the work done in the expansion is at the expense of the internal energy, $\Delta U=- W$. Note that $W$ is considered positive when the gas does work on the surroundings (expands).

First, we approach a cold source, so the fluid naturally flushes some
  heat away to the cold source and hence decreases it's temperature and
  hence decreases its volume.

The third process is a reversible isothermal (constant temperature) compression. This is the same as the first process in reverse. In this case surroundings does work on the gas equal to the heat transfer out of the out of the gas to the surroundings.

Finally, the fluid keeps compressing, automatically increasing its
  temperature and pressure, coming back to state number 1 (Question B:
  How can expect the fluid to keep being compressed automatically?).

The fourth and final process is a reversible adiabatic compression. It is the same as the second process only in reverse such that work is done on the gas by the surroundings as opposed to the gas doing work on the surroundings. The answer to question B is the gas is not compressed "automatically". An external agent in the surroundings exerts pressure slightly greater than the gas pressure in order to compress the gas. 

But 2 and 4 seem like magic to me, since I don't understand what goes
  on behind the scenes.

Think about the cycle being performed by a piston and cylinder with the piston shaft connected to something outside the cylinder. Basically, what goes on behind the scenes, which is outside the cylinder, is an external agent (the surroundings) is either exerting a pressure on the gas slightly greater than the pressure of the gas in order to compress the gas (process 4) or exerts a pressure slightly less than the pressure of the gas allowing it to expand (process 2). It is important to note that the positive work done by the gas in process 2 exactly equals the  negative  work done on the gas in process 4, so the net work done for the two processes is zero.
For processes 1 and 3 the pressure exerted by the external agent also accommodates the expansion or compression of the gas. But in these cases it does so in such a way that the temperature of the gas remains constant. 

Question C.
How is it possible to mix heat and temperature in such an easy way?
This is almost like saying that heat = temperature.

In equating the efficiency on the left with the relationship of temperatures on the right you are leaving out the important in between steps. 
The net work generated is
$$W_{net}=Q_{IN}-Q_{OUT}$$
This equates energy terms. Then for the two isothermal processes, where $\Delta S$ is the change in entropy, we have the following:
$$Q_{IN}=T_{HOT}\Delta S$$
$$Q_{OUT}=T_{COLD}\Delta S$$
Efficiency is give by
$$ϒ=\frac{Q_{IN}-Q_{OUT}}{Q_{IN}}$$
Substituting we have
$$ϒ=\frac{T_{HOT}\Delta S-T_{COLD}\Delta S}{T_{HOT}\Delta S}$$
Which simplifies to
$$ϒ=1-\frac{T_{COLD}}{T_{HOT}}$$

Question D.
If 4 actually requires external work for the compression, how come is
  this applied work not reflected in the efficiency? (maybe it is, but I
  do not see it)

As indicated above, the adiabatic compression work done on the gas in process 4 exactly equals the adiabatic expansion work done by the gas in process 2. That means they cancel out and are not part of the efficiency calculation.
Hope this helps.
