Gratitude is not only a response to God in good times - it's ultimately the very will of God in hard times. Gratitude isn't only a celebration when good things happen. It's a declaration that God is good no matter what happens.
What was intended to harm, God intended it all for good. And no matter what intends to harm you, God's arms have you. You can never be undone.
Simplicity is ultimately a matter of focus.