Clinton lost because her party didn't (and still doesn't) recognize the white middle class to which Trump was able to capitalize on. Nor does the party recognize that Capitalism as we have it now is the prime reason we have a Trump and a country that is veering down a more fascist route. People want their jobs protected, and want a country that panders to their needs. Having unfettered competition leads to worry because, unfortunately, more and more people will be left on the back burner if the only thing that matters is "are you better than the next?". This is why Trump won. A free market is a bad idea given a society such as this one that dislikes the free market idea, because they will displaced by more efficient business structures and machines. Hilary Clinton failed to realize this and Trump didn't, and Bernie Sanders didn't fail to realize this but he lost against Clinton.
The Democrats running Kamala Harris (hopefully she loses and Bernie wins) will only ensure Trump's 2020 victory (if he is able to last that long), and Trump is already gearing up Ivanka to run for president and she is trying to structure herself for a run at the presidency if you've been paying attention to her moves recently (this is why Trump has her living in the white house).
This is why the democratic party needs to be overtaken by more outspoken, more energetic or brazen, middle class focused left. This left will have to sideline its focus on smaller groups like LGBTQ, etc..., and focus on white middle class, Blacks, and Hispanics as its target audience. Out with the small-minded thinking. Some posters in this very thread are kind of dumb. If you think Hilary Clinton was a better candidate than Bernie, you are a stupid person. And most people in the cocktail circuit think they are smart but aren't. They have very little understanding of history and the country's sentiments, worries, and outright fears. These types of people only think they are smart which is why I cannot stomach them more than I can stomach an idiotic Trump voter.
I personally like unfettered competition and capitalism because it is a much fairer system in theory (in practice, not so much), but given the country's climate and history, I know it would be downright idiotic to base my platform on a free-market narrative whilst not speaking on white middle class concerns. They are the majority and want to be pandered to. Obama won because he focused on the white middle class, and was more of a smarter version of Trump in his '08 run.
Fascism will be the way of the future as this society become more increasingly refined and people are displaced by more competitive people and machines. Hilary Clinton is too stupid to realize this and so is the democratic party.