
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #FFFFFF;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  background-color: #C5DCA0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav a {
  margin-left: 1.5rem;
  color: #6A85B6;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #F4F8F0;
  padding: 2rem 1rem;
}

.hero-image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.featured {
  padding: 2rem;
  background-color: #FAFAFA;
}

.preview {
  margin-bottom: 1rem;
}

.recipe-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.recipe-card, .blog-card {
  background-color: #F9F9F9;
  border: 1px solid #EEE;
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.recipe-card:hover, .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.recipe-card img, .blog-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.recipe-card a, .blog-card a {
  text-decoration: none;
  color: #6A85B6;
  font-weight: 600;
  font-size: 1rem;
  display: block;
  margin-top: 0.5rem;
}

footer {
  background-color: #C5DCA0;
  text-align: center;
  padding: 1rem;
  font-weight: 300;
  margin-top: 2rem;
}


body.dark {
  background-color: #1a1a1a;
  color: #f1f1f1;
}

body.dark .main-header {
  background-color: #2a2a2a;
}

body.dark nav a,
body.dark .logo,
body.dark footer {
  color: #90ee90;
}

body.dark .recipe-card,
body.dark .blog-card {
  background-color: #333;
  border-color: #444;
}

body.dark .recipe-card a,
body.dark .blog-card a {
  color: #aaccff;
}


body.dark .hero {
  background-color: #222;
}

body.dark .featured {
  background-color: #1e1e1e;
}

body.dark .hero-text h1,
body.dark .hero-text p {
  color: #e0e0e0;
}

body.dark .recipe-card img,
body.dark .blog-card img {
  filter: brightness(0.9);
}


body.dark footer {
  background-color: #111;
  color: #eee;
}


img {
  max-width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}
