First of all, realize that your life is not over. Many times I see people going through a mental breakdown because of financial loss and they seem to think they could as well die because they will never recover. That's false! Even when you're down more than you make in 10 years, your life is much longer than that and a lot can happen in a year. You can win a lottery, meet the love of your life, get a better job...
Sleep on it, get drunk if you have to, just give it some time and after a week or two you'll come to a conclusion that this loss was nothing. It taught you a valuable lesson.
I myself admit that gambling is very popular in my country, many people do it even though in my country gambling is prohibited, but with the existence of online gambling that can be easily accessed, many people can do it quite freely without strict supervision from the authorities or the government. This has caused many negative cases to occur, the destruction of some people's lives has been destroyed because they gambled beyond their means, some have even sold property to gamble again when they run out of capital and some have been in debt because they previously borrowed money for betting capital.
In addition, with bad cases, some people who have serious problems end up sadly, not a few people end their lives by committing suicide and some of these cases occur because they are in a lot of debt because they previously spent their loan money to gamble, of course they do this because they have the hope of getting a big win in gambling but unfortunately instead of getting a big win, it actually ruins their lives.