/* ============================================================
   CSS 02.11 — The SPACE mistake:  li.hot  vs  li .hot
   ============================================================
   li.hot    (NO space)  → an li that HAS class "hot"
   li .hot   (a SPACE)   → an element with class "hot" INSIDE an li
   Beginners mix these up all the time. Read the space as "inside".
   ============================================================ */

.space-demo li.hot {
  background-color: #FFF6E0;        /* line 1: the li itself is yellow     */
}

.space-demo li .hot {
  color: #E54B4F;                   /* line 2: the span inside is red      */
  text-decoration: underline;
}
/* Try it: remove class="hot" from the <span> and put it on the second
   <li> instead → line 2 turns yellow, not red. */


/* ============================================================
   Lesson 02 — Selector cheat sheet
   ============================================================
   Selector            Example                 Picks
   ------------------  ----------------------  ---------------------------------------
   Element             li                      every <li>
   Class               .course                 every element with class="course"  ✔ use the most
   Two classes         .course.popular         elements that have BOTH classes
   ID                  #topper                 the ONE element with id="topper"
   Group               h1, h2, .title          all of them (comma = "and also")
   Descendant          .menu a                 every a INSIDE .menu (any depth) (SPACE)
   Child               .menu > a               only DIRECT children a of .menu
   Next sibling        h3 + p                  the p right after an h3
   Universal           *                       every element
   Attribute           input[type="email"]     inputs whose type is email
   Attribute exists    input[required]         inputs that have "required"
   Tag + class         li.hot                  an li that has class "hot"
   Space mistake       li.hot vs li .hot       no space = same element, space = inside
   ============================================================ */


/* ============================================================
   Lesson 02 — Practice tasks
   ============================================================
     1. Make a new page with 2 paragraphs. Make a class  .fee  that
        turns text green and bold, and use it on both paragraphs.
     2. Style only the links inside a footer:  write  .footer a { … }
        (add a small <footer class="footer"> with 2 links first).
     3. In 10-attribute.css, make every  input[type="tel"]  have a green border.
   ============================================================ */
