Unlocking the power of orbital-free density functional theory to explore the electronic structure under extreme conditions