got mucus with blood when i woke up then the rest of day, the nest day i so bulk of mucus with blood

the blood start to be really red to brown in color is not heavy at all and i only feel sharp pain like i used to in really period but now the pain just last for seconds, it last for 3 days verly light but i need to wear pads to not get to my panty to day its the 4th day it totaly stop in the morning but tonight i check it thers blood on my panty again. i cant say its my period cause im 2 weeks before my next period i cant say its implantation bleeding cause i should ovulate 14 days after my period but on 14th day this bleeding starts to happend, me and my boyfriend had unprotected sex next week after my period but i drink emergency pill right away, then we had sex  the following 2 days and stop i dint drink emergency pill anymore. after 3 days the mucus with blood on it come out. im really confuse on what is going on.

help can somebody got desame experience ?