/* ========== Landing Page Styling ========== */

body {
  font-family: "Lato", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #000;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid #ddd;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

nav a {
  text-decoration: none;
  color: #c61010;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

nav a:hover,
nav a.active {
  border-color: #c61010;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.page-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* === Recipe Grid === */
.recipe-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 4vw;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Filtered Recipe Results === */
.filtered-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 4vw;
  max-width: 1200px;
  margin: 0 auto;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  background-color: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.recipe-card:hover {
  transform: scale(1.01);
}

.recipe-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.recipe-card-content {
  padding: 1rem;
}

.recipe-card h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #c61010;
}

.recipe-card p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

/* === Footer === */
footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #c61010;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

.hero-feature {
  position: relative;
  width: 100%;
  height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 3rem;
  color: white;
  overflow: hidden;
}

/* Overlay background for readability */
.hero-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
}

/* Text block */
.hero-feature-overlay {
  position: relative;
  z-index: 2;
  max-width: 550px;
  padding: 1rem 2rem;
}

.feature-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f7f7f7;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-family: "Lato", sans-serif;
}

.hero-feature-title {
  font-family: "Libre Baskerville", serif;
  font-size: 2.8rem;
  margin: 0.25rem 0;
  color: white;
}

.hero-feature-subtitle {
  font-size: 1.1rem;
  font-family: "Lato", sans-serif;
  color: #eee;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.hero-feature-link {
  font-family: "Lato", sans-serif;
  color: white;
  border: 2px solid white;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-feature-link:hover {
  background-color: white;
  color: #c61010;
}

.filtered-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 4vw;
  max-width: 1200px;
  margin: 0 auto;
}

.filtered-recipe-grid .recipe-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.filtered-recipe-grid .recipe-card p {
  font-size: 0.85rem;
  line-height: 1.3;
}
.filtered-recipe-grid .recipe-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
#search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 4vw;
  max-width: 1200px;
  margin: 0 auto;
}

#search-results-grid .recipe-card-title {
  font-size: 1.25rem;
  font-family: "Lato", sans-serif;
  margin: 0 0 0.5rem;
  color: #000;
  text-align: left;
}

#search-results-grid .recipe-card-subtitle {
  font-size: 0.95rem;
  font-family: "Lato", sans-serif;
  color: #444;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}
#search-results-grid .recipe-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  background-color: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

#search-results-grid .recipe-card:hover {
  transform: scale(1.01);
}

#search-results-grid .recipe-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

#search-results-grid .recipe-card-info {
  padding: 1rem;
}

#search-results-grid .recipe-card-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #000;
}

#search-results-grid .recipe-card-subtitle {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
  line-height: 1.4;
}

/* === Footer === */
footer.footer {
  width: 100vw;
  margin-left: calc(-1 * (100vw - 100%) / 2);
}
