Hello sir,
Pain and swelling increasing with rest and reduced with activity points towards inflammatory arthritis. You would be needing few blood investigations and clinical evaluation. Meet an orthopaedic surgeon ASAP. It'll settle don't worry.
Next Steps
keep your limbs elevated while lying down, perform complete joint movements before putting weight