Consolidated Statements of Stockholders' Equity (Unaudited) - USD ($) shares in Thousands, $ in Thousands | Total | Revision of Prior Period Change in Accounting Principle Adjustment [Member] | RSUs [Member] | Class A Common stock [Member] | Class A Common stock [Member]RSUs [Member] | Additional Paid-In Capital [Member] | Treasury Stock [Member] | Treasury Stock [Member]RSUs [Member] | Accumulated Other Comprehensive Income (Loss) [Member] | Accumulated Deficit [Member] | Accumulated Deficit [Member]Revision of Prior Period Change in Accounting Principle Adjustment [Member] |
Beginning balance, Value at Dec. 31, 2018 | $ 1,596,610 | | | $ 5 | | $ 3,504,708 | | | $ (118,439) | $ (1,789,664) | |
Beginning balance, Shares at Dec. 31, 2018 | | | | 861,111 | | | | | | | |
Exercise of stock options and ESPP | 5,304 | | | | | 5,304 | | | | | |
Exercise of stock options and ESPP, Shares | | | | 5,097 | | | | | | | |
Vesting of RSUs, net of tax withholdings | | | $ (11,010) | | | | | $ (11,010) | | | |
Vesting of RSUs, net of tax withholdings, Shares | | | | | 2,487 | | | | | | |
Acquisition-related common stock issuance | 253,903 | | | $ 1 | | 253,902 | | | | | |
Acquisition-related common stock issuance, Shares | | | | 63,795 | | | | | | | |
Stock-based compensation expense | 18,773 | | | | | 18,773 | | | | | |
Retirements of treasury stock | | | | | | | $ 11,010 | | | (11,010) | |
Net income (loss) | (128,828) | | | | | | | | | (128,828) | |
Other comprehensive income (loss) | 6,977 | | | | | | | | 6,977 | | |
Ending balance, Value at Mar. 31, 2019 | 1,741,729 | | | $ 6 | | 3,782,687 | | | (111,462) | (1,929,502) | |
Ending balance, Shares at Mar. 31, 2019 | | | | 932,490 | | | | | | | |
Beginning balance, Value at Dec. 31, 2018 | 1,596,610 | | | $ 5 | | 3,504,708 | | | (118,439) | (1,789,664) | |
Beginning balance, Shares at Dec. 31, 2018 | | | | 861,111 | | | | | | | |
Net income (loss) | 45,425 | | | | | | | | | | |
Other comprehensive income (loss) | (34,171) | | | | | | | | | | |
Ending balance, Value at Sep. 30, 2019 | 1,938,435 | | | $ 6 | | 3,873,706 | | | (152,610) | (1,782,667) | |
Ending balance, Shares at Sep. 30, 2019 | | | | 945,762 | | | | | | | |
Beginning balance, Value at Mar. 31, 2019 | 1,741,729 | | | $ 6 | | 3,782,687 | | | (111,462) | (1,929,502) | |
Beginning balance, Shares at Mar. 31, 2019 | | | | 932,490 | | | | | | | |
Exercise of stock options and ESPP | 1,727 | | | | | 1,727 | | | | | |
Exercise of stock options and ESPP, Shares | | | | 3,885 | | | | | | | |
Vesting of RSUs, net of tax withholdings | | | (16,610) | | | | | (16,610) | | | |
Vesting of RSUs, net of tax withholdings, Shares | | | | | 3,849 | | | | | | |
Stock-based compensation expense | 21,355 | | | | | 21,355 | | | | | |
Retirements of treasury stock | | | | | | | 16,610 | | | (16,610) | |
Equity component of convertible senior notes | 114,974 | | | | | 114,974 | | | | | |
Purchase of capped calls related to issuance of convertible senior notes | (73,830) | | | | | (73,830) | | | | | |
Net income (loss) | (55,830) | | | | | | | | | (55,830) | |
Other comprehensive income (loss) | (10,564) | | | | | | | | (10,564) | | |
Ending balance, Value at Jun. 30, 2019 | 1,722,951 | | | $ 6 | | 3,846,913 | | | (122,026) | (2,001,942) | |
Ending balance, Shares at Jun. 30, 2019 | | | | 940,224 | | | | | | | |
Exercise of stock options and ESPP | 5,490 | | | | | 5,490 | | | | | |
Exercise of stock options and ESPP, Shares | | | | 1,452 | | | | | | | |
Vesting of RSUs, net of tax withholdings | | | (10,808) | | | | | (10,808) | | | |
Vesting of RSUs, net of tax withholdings, Shares | | | | | 4,086 | | | | | | |
Stock-based compensation expense | 21,339 | | | | | 21,339 | | | | | |
Retirements of treasury stock | | | | | | | 10,808 | | | (10,808) | |
Equity component of convertible senior notes | (36) | | | | | (36) | | | | | |
Net income (loss) | 230,083 | | | | | | | | | 230,083 | |
Other comprehensive income (loss) | (30,584) | | | | | | | | (30,584) | | |
Ending balance, Value at Sep. 30, 2019 | 1,938,435 | | | $ 6 | | 3,873,706 | | | (152,610) | (1,782,667) | |
Ending balance, Shares at Sep. 30, 2019 | | | | 945,762 | | | | | | | |
Beginning balance, Value at Dec. 31, 2019 | 1,975,430 | | | $ 6 | | 3,898,689 | | | (125,935) | (1,797,330) | |
Beginning balance, Shares at Dec. 31, 2019 | | | | 950,042 | | | | | | | |
Exercise of stock options and ESPP | 8,802 | | | | | 8,802 | | | | | |
Exercise of stock options and ESPP, Shares | | | | 2,511 | | | | | | | |
Vesting of RSUs, net of tax withholdings | | | (14,836) | | | | | (14,836) | | | |
Vesting of RSUs, net of tax withholdings, Shares | | | | | 3,273 | | | | | | |
Stock-based compensation expense | 20,465 | | | | | 20,465 | | | | | |
Retirements of treasury stock | | | | | | | 14,836 | | | (14,836) | |
Adoption of ASU 2016-13 | 2016-13 | | $ (401) | | | | | | | | | $ (401) |
Net income (loss) | (103,925) | | | | | | | | | (103,925) | |
Other comprehensive income (loss) | (29,956) | | | | | | | | (29,956) | | |
Ending balance, Value at Mar. 31, 2020 | 1,855,579 | | | $ 6 | | 3,927,956 | | | (155,891) | (1,916,492) | |
Ending balance, Shares at Mar. 31, 2020 | | | | 955,826 | | | | | | | |
Beginning balance, Value at Dec. 31, 2019 | 1,975,430 | | | $ 6 | | 3,898,689 | | | (125,935) | (1,797,330) | |
Beginning balance, Shares at Dec. 31, 2019 | | | | 950,042 | | | | | | | |
Net income (loss) | (376,431) | | | | | | | | | | |
Other comprehensive income (loss) | 19,057 | | | | | | | | 19,057 | | |
Ending balance, Value at Sep. 30, 2020 | 2,813,386 | | | $ 7 | | 5,137,353 | | | (106,878) | (2,217,096) | |
Ending balance, Shares at Sep. 30, 2020 | | | | 1,078,999 | | | | | | | |
Beginning balance, Value at Mar. 31, 2020 | 1,855,579 | | | $ 6 | | 3,927,956 | | | (155,891) | (1,916,492) | |
Beginning balance, Shares at Mar. 31, 2020 | | | | 955,826 | | | | | | | |
Exercise of stock options and ESPP | 1,866 | | | | | 1,866 | | | | | |
Exercise of stock options and ESPP, Shares | | | | 600 | | | | | | | |
Vesting of RSUs, net of tax withholdings | | | (14,270) | | | | | (14,270) | | | |
Vesting of RSUs, net of tax withholdings, Shares | | | | | 2,448 | | | | | | |
Stock-based compensation expense | 25,673 | | | | | 25,673 | | | | | |
Retirements of treasury stock | | | | | | | 14,270 | | | (14,270) | |
Net income (loss) | (150,300) | | | | | | | | | (150,300) | |
Other comprehensive income (loss) | 17,685 | | | | | | | | 17,685 | | |
Ending balance, Value at Jun. 30, 2020 | 1,736,233 | | | $ 6 | | 3,955,495 | | | (138,206) | (2,081,062) | |
Ending balance, Shares at Jun. 30, 2020 | | | | 958,874 | | | | | | | |
Exercise of stock options and ESPP | 5,462 | | | | | 5,462 | | | | | |
Exercise of stock options and ESPP, Shares | | | | 1,093 | | | | | | | |
Vesting of RSUs, net of tax withholdings | | | $ (13,828) | | | | | $ (13,828) | | | |
Vesting of RSUs, net of tax withholdings, Shares | | | | | 2,468 | | | | | | |
Acquisition-related common stock issuance | 1,137,673 | | | $ 1 | | 1,137,672 | | | | | |
Acquisition-related common stock issuance, Shares | | | | 116,564 | | | | | | | |
Stock-based compensation expense | 38,724 | | | | | 38,724 | | | | | |
Retirements of treasury stock | | | | | | | $ 13,828 | | | (13,828) | |
Net income (loss) | (122,206) | | | | | | | | | (122,206) | |
Other comprehensive income (loss) | 31,328 | | | | | | | | 31,328 | | |
Ending balance, Value at Sep. 30, 2020 | $ 2,813,386 | | | $ 7 | | $ 5,137,353 | | | $ (106,878) | $ (2,217,096) | |
Ending balance, Shares at Sep. 30, 2020 | | | | 1,078,999 | | | | | | | |