body {
  /* Needed for sticky footer */
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background-color: var(--eggshell);
  font-family: var(--font1-family), sans-serif;
  color: var(--umber);
}

h1, h2, h3 {
  font-family: var(--font2-family), serif;
}


header {
  padding: 20px 40px;
  text-align: center;

  background-color: var(--mulberry);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.8em;
}

header .tagline {
  margin-top: 5px;

  font-size: 1.1em;
  opacity: 0.9;
}


.homepage-content {
  min-width: 75%;
  margin: 30px auto;

  flex-grow: 1;
}

.recipe-gallery h2 {
  margin-bottom: 30px;

  text-align: center;
  font-size: 2.2em;
  color: var(--soot);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive grid */
  gap: 25px;
}

.recipe-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* To contain image border-radius if needed */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.recipe-card-link {
  height: 100%; /* Make link fill the card */

  display: block;

  /* Remove default link style (underlined blue text) */
  text-decoration: none;
  color: inherit;
}

.recipe-card-image-container {
  height: 200px; /* Fixed height for image container */
  overflow: hidden; /* Hide overflow for image scaling */
}

.recipe-card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop image to fit container */
  transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-card-image-container img {
  transform: scale(1.05);
}

.recipe-card-image-placeholder {
  height: 200px;

  /* Center text */
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--lightgrey);
  color: #777;
  font-style: italic;
}

.recipe-card-content {
  padding: 15px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recipe-card-content h3 {
  font-family: var(--font2-family), serif;
  font-size: 1.4em;
  font-weight: normal;
  color: var(--mulberry);
}

.recipe-card-description {
  font-size: 0.9em;
  flex-grow: 1; /* Takes up available space */
}

.recipe-card-type {
  padding: 3px 8px;
  margin-top: auto; /* Push to bottom if description is short */

  align-self: flex-start;

  background-color: #e8f0fe;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  color: #4a7c59;
}

.recipe-card.type-dessert .recipe-card-type {
  background-color: #ffe8f0;
  color: #d2691e;
}

.recipe-card.type-plat .recipe-card-type {
  background-color: #f0f8ff;
  color: #8b4513;
}

.no-recipes-message {
  padding: 40px 0;

  text-align: center;
  font-size: 1.4em;
}

footer {
  padding: 20px;
  margin-top: 40px;

  background-color: #333;
  text-align: center;
  font-size: 0.9em;
  color: #ccc;
}

.new-recipe-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999; /* Ensure it is above other elements */

  /* Center button icon */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;
  background-color: var(--mulberry);
  color: white; /* SVG icon color because stroke="currentColor" */
  border-radius: 50%; /* Round button */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.new-recipe-button:hover,
.new-recipe-button:focus {
  background-color: hsl(332, 61%, 25%); /* Darker mulberry */
  transform: scale(1.10);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  outline: none;
}

.new-recipe-button:active {
  transform: scale(1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.new-recipe-button svg {
  width: 28px;
  height: 28px;
}