Reddit bets on AI and search as ad revenue grows and shares climb