Idk what's going on?

Okay so my periods come regularly and right on time, never early or late. However, this week I began having pink discharge that started turning brownish, and it has remained brownish with hints of pink. Now, my period isn't scheduled to come for two more weeks. And it's not a lot of bleeding at all, just enough for a panty liner. So I'm honestly confused on what's going on. I had unprotected sex about two weeks ago.  Does anyone know what is going on?