/* ============================================================
   CSS 12.04 — Search bar: the box stretches, the button stays
   ============================================================
   Look for the lines marked  ★ FLEX .  Those are the lines that make
   the layout. Everything at the bottom is decoration (colours, padding,
   borders) from earlier lessons.

   .search-bar       { display: flex; }
   .search-bar input { flex: 1; }   ← takes all the extra space

   The button has no flex → it stays its natural size.
   ============================================================ */

.search-bar {
  display: flex;                    /* ★ FLEX */
  max-width: 560px;
}

.search-bar input {
  flex: 1;                          /* ★ FLEX: take all the extra width */
  min-width: 0;                     /* lets the input shrink on very small screens */
}
/* Try it: remove  flex: 1;  from the input → it goes back to its small
   natural width, and empty space appears after the button. */


/* ------------------------------------------------------------
   Only to make the search bar look nice — not part of this lesson
   ------------------------------------------------------------ */
.search-bar {
  border: 2px solid #2D62EF;
  border-radius: 10px;
  overflow: hidden;                 /* keep the button inside the round corners */
}

.search-bar input {
  border: none;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.search-bar button {
  border: none;
  background-color: #2D62EF;
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  padding: 0 22px;
  cursor: pointer;
}
