Nokia X20

I have my X20 for a few months now and generally love it. But over the last week it has started to shut off automatically over night and take some time to turn again the next day. This morning it won't turn back on at all. Anyone know how to fix this or do I bring it back to the dealer for a new phone?