Net Income (Loss) Per Share - Computation of Basic and Diluted Net Income (Loss) Per Share Attributable to Common Stockholders (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2016
Sep. 30, 2015
Sep. 30, 2016
Sep. 30, 2015
Earnings Per Share [Abstract]        
Net income (loss) $ 14,402 $ (65,145) $ (4,390) $ (73,783)
Less: Net income attributable to participating securities (109) 0 0 0
Net income (loss) attributable to common stockholders $ 14,293 $ (65,145) $ (4,390) $ (73,783)
Denominator (basic):        
Weighted average number of shares outstanding, basic (in shares) 92,034,474 95,340,136 93,052,376 94,659,931
Denominator (diluted):        
Weighted average number of shares outstanding, basic (in shares) 92,034,474 95,340,136 93,052,376 94,659,931
Dilutive stock options outstanding (in shares) 3,716,283 0 0 0
Dilutive restricted stock units and awards (in shares) 1,557,016 0 0 0
Dilutive shares purchased under ESPP (in shares) 13,530 0 0 0
Net weighted average common shares, diluted (in shares) 97,321,303 95,340,136 93,052,376 94,659,931
Earnings per share, basic (in dollars per share) $ 0.16 $ (0.68) $ (0.05) $ (0.78)
Earnings per share, diluted (in dollars per share) $ 0.15 $ (0.68) $ (0.05) $ (0.78)