First of all, Kevin is being quite modest in his comment above: his paper
Buzzard, Kevin. Integral models of certain Shimura curves. Duke Math. J. 87 (1997), no. 3, 591--612.
contains many basic results on integral models of Shimura curves over totally real fields, and is widely cited by workers in the field: 22 citations on MathSciNet. The most recent is a paper of mine:
Clark, Pete L. On the Hasse principle for Shimura curves. Israel J. Math. 171 (2009), 349--365.
http://alpha.math.uga.edu/~pete/plclarkarxiv7.pdf
Section 3 of this paper spends 2-3 pages summarizing results on the structure of the canonical integral model of a Shimura curve over $\mathbb{Q}$ (with applications to the existence of local points). From the introduction to this paper:
"This result [something about local points] follows readily enough from a description of their [certain Shimura curves over Q] integral canonical models. Unfortunately I know of no unique, complete reference for this material. I have myself written first (my 2003 Harvard thesis) and second (notes from a 2005 ISM course in Montreal) approximations of such a work, and in so doing I have come to respect the difficulty of this expository problem."
I wrote that about three years ago, and I still feel that way today. Here are the documents:
- http://alpha.math.uga.edu/~pete/thesis.pdf
is my thesis. "Chapter 0" is an exposition on Shimura curves: it is about 50 pages long.
- For my (incomplete) lecture notes from 2005, go to
http://alpha.math.uga.edu/~pete/expositions2012.html
and scroll down to "Shimura Curves". There are 12 files there, totalling 106 pages [perhaps I should also compile them into a single file]. On the other hand, the title of the course was Shimura Varieties, and although I don't so much as attempt to give the definition of a general Shimura variety, some of the discussion includes other PEL-type Shimura varieties like Hilbert and Siegel moduli space. These notes do not entirely supercede my thesis: each contains some material that the other omits.
When I applied for an NSF grant 3 years ago, I mentioned that if I got the grant, as part of my larger impact I would write a book on Shimura curves. Three years later I have written up some new material (as yet unreleased) but am wishing that I had not said that so directly: I would need at least a full semester off to make real progress (partly, of course, to better understand much of the material).
Let me explain the scope of the problem as follows: there does not even exist a single, reasonably comprehensive reference on the arithmetic geometry of the classical modular curves (i.e., $X_0(N)$ and such). This would-be bible of modular curves ought to contain most of the material from Shimura's book (260 pages) and the book of Katz and Mazur Arithmetic Moduli of Elliptic Curves (514 pages). These two books don't mess around and have little overlap, so you get a lower bound of, say, 700 pages that way.
Conversely, I claim that there is some reasonable topology on the arithmetic geometry of modular curves whose compactification is the theory of Shimura curves. The reason is that in many cases there are several ways to establish a result about modular curves, and "the right one" generalizes to Shimura curves with little trouble. (For example, to define the rational canonical model for classical modular curves, one could use the theory of Fourier expansions at the cusps -- which won't generalize -- or the theory of moduli spaces -- which generalizes immediately. Better yet is to use Shimura's theory of special points, which nowadays you need to know anyway to study Heegner point constructions.) Most of the remainder concerns quaternion arithmetic, which, while technical, is nowadays well understood and worked out.
My suggestion, if you have really worked through most of Hartshorne, is to begin reading papers, referring to other books as you need them.
One place to start is Mazur's "Eisenstein Ideal" paper. The suggestion of Cornell--Silverman is also good. (This gives essentially the complete proof, due to Faltings, of the Tate conjecture for abelian varieties over number fields, and of the Mordell conjecture.) You might also want to look at Tate's original paper on the Tate conjecture for abelian varieties over finite fields,
which is a masterpiece.
Another possibility is to learn etale cohomology (which you will have to learn in some form or other if you want to do research in arithemtic geometry). For this, my suggestion is to try to work through Deligne's first Weil conjectures paper (in which he proves the Riemann hypothesis), referring to textbooks on etale cohomology as you need them.
Best Answer
If you want to learn about stacks, I can recommend 'Fundamental Algebraic Geometry: Grothendieck's FGA Explained'. Vistoli's exposition of the basic theory of stacks is hard to beat, I think. Moreover, the chapter about Picard schemes is also good if you want to learn when a functor is representable and what you might have to do to make it representable. In any case, the theory of Picard schemes is indispensable in arithmetic geometry, e.g. it is a way to obtain the group structure on an elliptic curve (see the book of Katz, Mazur: Arithmetic moduli of elliptic curves) or to study duality of abelian varieties.
I am not sure if there exists an ideal book if you want to learn about the moduli stack of elliptic curves. The classic source is Deligne-Rapoport 'LES SCHEMAS DE MODULES DE COURBES ELLIPTIQUE', which you should look into, but the proofs are often very brief. The book by Katz and Mazur has good parts, but for some reason they decided to avoid the language of stacks. The book by Olsson on stacks has some parts about elliptic curves as well. At some point, I wrote a note together with Viktoriya Ozornova that contains a really detailed proof that the moduli stack of elliptic curves is really an fpqc stack and that Weierstraß equations exist http://www.staff.science.uu.nl/~meier007/Mell.pdf (but it is certainly not meant to provide a flair of the subject).