Directed Pore-Uptake and Phase Separation of Surfactant Solutions Under Confinement