@skybear Rather than giving you simplistic, or downright wrong, guidance about pin currents, here's a link to a specific datasheet about the UNO processor, and a page reference that you should become familiar with:
328P datasheet
Specifically, page 258, wherein we are told that the absolute maximum for any one pin is 40 mA, the typical max is 20 ma, and that there are significant limitations when setting pin multiples.
Of importance are the notes below the table. 100 ma Max sinking for the aggregate current on several ranges of pins, and 150 ma max sourcing on similar ranges;
and, finally, note the last statement for each of the sinking and sourcing ranges:
Pins are not guaranteed to source current greater than the listed test condition.
Of course, the meaning of that is...open to interpretation. The device might simply limit the output current, no big deal. Or, some internal connection might fry, disabling one, or more likely, a whole range of pins.
Now, the above is all about manufacturers guarantees, givens, and druthers, and many will rush to present examples where all of the above have been violated with impunity. Surely, the manufacturer makes a chip that is more robust than the stated guarantees; firstly, it must survive the gauntlet of min-to-max thermal and environmental criteria which no hobbyist has the ability to test/recreate, and secondly, manufacturing being what it is, not every internal feature is identically robust, even when the chip works as advertised. Tiny example - a functional, yet limited, wire connection from pin to chip may test fine, but evaporate under stresses just beyond the maxima stated, while 1000 devices from the same lot will survive. If you choose to run your device 'at or beyond the maxima', you can expect to find those limits.
Most of this won't be delivered in any series of introductory electronics courses, until you get deep into the nitty gritty, so I think you'd be better off conversing with a few greybeards, here and elsewhere. Much of what I've gleaned across the years(and forgotten much of) came from a wide variety of industry magazines, etc. such as Electronic Design, Electronic Design Notes, Analog Design, Circuit Cellar, Nuts and Volts, and a variety of other pubs, as well as all the leading manufacturer's excellent databooks - Nat Semi, Analog Devices, Siemens, Harris, Texas Instruments, Fairchild, Intel, and the list goes on.
Very little of that remains today, though there are places where the info can be found. I recycled all my databooks, because they're mostly out there on the web, but it's not the same...
My friends thought I was weird, because for years I had a bookshelf of databooks in my bathroom, for reading selection... I'm sure they were looking for Playboy and Penthouse.
old guy, insomnia rattling.