* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  background: #191919;
  color: #f5f5f5;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  height: 260px;
  background-image: url("images/Banner.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(17,17,17,0.92));
  display: flex;
  align-items: end;
}
.site-title {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
}
.site-subtitle {
  margin-top: 8px;
  margin-bottom: 28px;
  color: #c7c7c7;
  font-size: 1rem;
}
.section-header {
  margin: 32px 0 20px;
}
.section-header h2 {
  margin: 0;
  font-size: 1.7rem;
}
.section-header p {
  margin: 6px 0 0;
  color: #a7a7a7;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}
.recipe-card {
  background: #242424;
  border: 1px solid #2f2f2f;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.recipe-card:hover {
  transform: translateY(-4px);
  border-color: #4a4a4a;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}
.recipe-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #111;
}
.card-content {
  padding: 16px 16px 18px;
}
.card-content h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  background: #2f2f2f;
  color: #d7d7d7;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}
.recipe-page {
  padding: 32px 0 60px;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #bdbdbd;
}
.back-link:hover {
  color: #ffffff;
}
.recipe-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #2f2f2f;
  display: block;
  margin-bottom: 28px;
  cursor: pointer;
}
.recipe-title {
  margin: 0 0 12px;
  font-size: 2.3rem;
}
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.recipe-meta span {
  background: #2a2a2a;
  color: #d3d3d3;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.recipe-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
}
.recipe-box {
  background: #242424;
  border: 1px solid #2f2f2f;
  border-radius: 18px;
  padding: 22px;
}
.recipe-box h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.recipe-box ul,
.recipe-box ol {
  margin: 0;
  padding-left: 22px;
}
.recipe-box li + li {
  margin-top: 10px;
}
.image-wrapper {
  cursor: zoom-in;
}
.image-modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}
@media (max-width: 800px) {
  .hero {
    height: 220px;
  }
  .site-title {
    font-size: 2.2rem;
  }
  .recipe-layout {
    grid-template-columns: 1fr;
  }
  .recipe-card img {
    height: 200px;
  }
}
