maybe pregnant

for 1 week and a half i’ve been having cramps and every time i went to pee it would hurt and this all started happening after i had sex on feb 27th today i got brown spotting but it isn’t my period. last week i took a pregnancy test on thursday and it showed up negative. what does this mean?