Meaning
having unrealistic hopes or beliefs.
Literal Meaning
thinking with wishes.
Example
“Hoping to win the lottery is just wishful thinking.”