/* ============================================================
   CSS 09.01 — :hover — mouse over it
   ============================================================
   This lesson — Pseudo-classes & Pseudo-elements:

     selector:state      { }   → e.g.  .btn:hover      (ONE colon)
     selector::part      { }   → e.g.  p::first-letter (TWO colons)

     Pseudo-CLASS   :name    → style an element in a certain STATE or POSITION
                               (mouse over it, clicked, first in a list, …)
     Pseudo-ELEMENT ::name   → style a PART of an element, or ADD a part
                               (first letter, something before / after it)

   No space before the colon!
     .btn:hover    ✔  the button, when hovered
     .btn :hover   ✘  something hovered INSIDE the button (lesson 02 — the space means "inside")

   Specificity (lesson 03): a pseudo-class counts like a CLASS,
   a pseudo-element counts like an ELEMENT.

   ⚠ This lesson is interactive: move the mouse, click, and press Tab.

     .btn-primary:hover { background-color: #1A47C2; }
                 ───┬──
                    └── the rule works ONLY while the mouse is over the button

   Write the normal style first, then the :hover style with ONLY
   the things that change.
   ============================================================ */

.btn {
  font: inherit;                    /* buttons don't inherit fonts by default — this fixes it */
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;                  /* the "hand" — tells people "you can click this" */
  margin-right: 8px;
}

.btn-primary       { background-color: #2D62EF; color: #FFFFFF; }
.btn-primary:hover { background-color: #1A47C2; }          /* darker blue */

.btn-outline       { background-color: transparent; color: #2D62EF; border-color: #2D62EF; }
.btn-outline:hover { background-color: #2D62EF; color: #FFFFFF; }   /* fills in */

.btn-danger        { background-color: #FDECEC; color: #E54B4F; }
.btn-danger:hover  { background-color: #E54B4F; color: #FFFFFF; }

/* A card that lifts up a little when you point at it */
.hover-card {
  max-width: 320px;
  padding: 16px 20px;
  border: 1px solid #E4E4E4;
  border-radius: 12px;
  background-color: #FFFFFF;
  cursor: pointer;
}

.hover-card:hover {
  border-color: #2D62EF;
  box-shadow: 0 10px 24px rgba(45, 98, 239, 0.18);   /* lesson 07 */
  transform: translateY(-4px);                       /* move up 4px (lesson 16) */
}

.hover-card h3 { margin: 0 0 4px; }
.hover-card p  { margin: 0; color: #525252; }
/* Try it: add  transition: 0.2s;  to .hover-card (NOT the :hover rule)
   → the change becomes smooth instead of instant. (Lesson 16 explains it.) */
