Text this: An efficient spectral method for nonlinear Volterra integro-differential equations with weakly singular kernels