/* BODY AND LAYOUT */
body {
  font-family: 'Arial', sans-serif;
  background-color: #fff8e1;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full viewport height */
  margin: 0;
}

/* HEADER */
header {
  background-color: #ffcc80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

header .logo {
  font-size: 24px;
  font-weight: bold;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  text-decoration: none;
  color: #5d4037;
  font-weight: bold;
  transition: color 0.3s;
}

header nav ul li a.active,
header nav ul li a:hover {
  color: #d84315;
}

/* HERO SECTION */
.recipes-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #ffe0b2, #ffcc80);
}

.recipes-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.recipes-hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* CENTER SEARCH BAR */
.recipes-hero .search-container {
  display: flex;
  justify-content: center; /* center horizontally */
}

#searchBar {
  padding: 10px 15px;
  width: 300px;
  max-width: 90%;
  border-radius: 25px;
  border: 1px solid #ffb74d;
  outline: none;
  transition: all 0.3s;
}

#searchBar:focus {
  border-color: #d84315;
  box-shadow: 0 0 8px rgba(216, 67, 21, 0.3);
}

/* MAIN CONTENT */
main {
  flex: 1; /* expand main to push footer down */
}

/* RECIPE GRID */
.recipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 30px;
}

/* RECIPE CARD */
.recipe-card {
  background-color: #fff3e0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.recipe-card img.recipe-image {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.recipe-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #d84315;
}

.recipe-card p {
  font-size: 16px;
  margin-bottom: 15px;
}

.recipe-card button {
  padding: 10px 20px;
  background-color: #d84315;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.recipe-card button:hover {
  background-color: #ff5722;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: #ffcc80;
  color: #5d4037;
  font-weight: bold;
  border-top: 1px solid #ffb74d;
  margin-top: 30px; /* ensure space from content */
}
