Encephalitis is an acute inflammation of the brain that is typically caused by a viral infection or the immune system attacking brain tissue by mistake. There are two main types - primary encephalitis, which occurs when a virus directly infects the brain/spinal cord, and secondary encephalitis, where the immune system treats healthy brain cells as foreign. Symptoms can range from mild like fever and headache to more severe things like confusion and seizures. Diagnosis involves examinations, scans, tests of cerebrospinal fluid and blood. Treatment focuses on relieving symptoms, reducing inflammation, and in some cases using antivirals.