/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Lato', 'Noto Sans KR', sans-serif;
  background: #F5F0E6; /* warm tan */
  color: #2C2C2C;
  line-height: 1.6;
}

/* ===== Layout helper ===== */
.container {
  width: 100%;
  max-width: 1100px;      /* control line length */
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== Navbar (light, sticky) ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2DED6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.logo {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-weight: 700; font-size: 1.5rem;
  color: #2C2C2C; text-decoration: none;
}
.logo span { font-family: 'Lato', 'Noto Sans KR', sans-serif; font-weight: 800; }
.nav-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav-links a { color: #2C2C2C; text-decoration: none; font-weight: 600; }
.nav-links a.active { border-bottom: 2px solid #8B2E2E; }
.lang-switch button {
  background: transparent; border: 1px solid #E2DED6;
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.icon-btn { background: transparent; border: none; padding: 6px 10px; cursor: pointer; font-size: 1.5rem; }

/* ===== Hero (less tall, more elegant) ===== */
.hero {
  background: #E8E0D1;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  text-align: center;
  padding: 48px 20px 28px;  /* shorter */
}
.hero h1 {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: 2.1rem;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
}
.hero-sub {
  color: #595959;
  margin: 0 auto;
  max-width: 700px;
  font-size: 1rem;
}

/* ===== Search Bar (blended, no hard white bar) ===== */
.search-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 0 18px;
  background: transparent;                 /* no white band */
  border-bottom: 1px solid rgba(0,0,0,0.06); /* gentle divider */
}
.search-bar input {
  width: 100%; max-width: 420px;
  padding: 10px 14px;
  border: 1px solid #E2DED6;
  background: #FFFFFF;
  border-radius: 10px;
  font-size: 1rem; color: #2C2C2C;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.search-bar button {
  padding: 10px 14px;
  background: #F5F0E6;  /* tan pill */
  color: #2C2C2C;
  border: 1px solid #E2DED6;
  border-radius: 10px;
  font-size: 1rem; cursor: pointer;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.search-bar button:hover {
  background: #E9E3D7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

/* ===== Grid ===== */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 22px;     /* space after search */
  padding-bottom: 36px;
}
@media (min-width: 768px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* ===== Cards ===== */
.recipe-card {
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #EDE9E0; /* softer than #E2DED6 */
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  text-align: center;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}
.recipe-card img {
  width: 100%; height: 220px; object-fit: cover;
}
.recipe-card h3 {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  margin: 14px 16px 6px; font-size: 1.2rem;
}
.recipe-card p {
  color: #595959;
  margin: 0 16px 14px; font-size: 0.96rem;
}
.btn {
  display: inline-block;
  margin: 0 0 16px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #8B2E2E; /* accent */
  color: #FFFFFF; text-decoration: none; font-weight: 700;
  box-shadow: 0 6px 16px rgba(139,46,46,0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(139,46,46,0.22);
}

/* ===== Footer ===== */
footer { padding: 28px 20px; text-align: center; color: #666666; }

/* ===== About ===== */
.page { padding: 28px 20px; }
.page-title {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  font-size: 2rem; margin: 0 0 16px;
}
.about-wrap {
  display: grid; gap: 24px; grid-template-columns: 1fr;
  max-width: 900px; margin: 0 auto;
}
.about-photo {
  width: 160px; height: 160px; object-fit: cover; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.about-text p { margin: 8px 0; }
@media (min-width: 860px) {
  .about-wrap { grid-template-columns: 180px 1fr; align-items: center; }
}

/* ===== Recipe Page ===== */
.recipe-page { padding: 28px 20px; }
.recipe.hero {
    background: #E8E0D1;
  display: grid; gap: 18px; grid-template-columns: 1fr;
  max-width: 1000px; margin: 0 auto 18px;
}
.recipe-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; }
.recipe-hero-text h1 {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  margin: 4px 0 0;
}
.meta { display: flex; gap: 12px; list-style: none; padding: 0; margin: 8px 0 0; color: #595959; }
.recipe-content {
  display: grid; gap: 28px; grid-template-columns: 1fr;
  max-width: 1000px; margin: 0 auto;
}
.ingredients, .steps {
  background: #FFFFFF; border: 1px solid #E2DED6; border-radius: 12px; padding: 20px 22px;
}
.ingredients h2, .steps h2 {
  font-family: 'Playfair Display', 'Noto Serif KR', serif;
  margin: 4px 0 14px;
}
@media (min-width: 900px) {
  .recipe.hero {
    background: #E8E0D1; grid-template-columns: 1.2fr 1fr; }
  .recipe-content { grid-template-columns: 360px 1fr; }
}

/* ===== Sidebar Backdrop / Drawer ===== */
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.40);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 80;
}
.sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: #FFFFFF; border-right: 1px solid #E2DED6;
  transform: translateX(-100%); transition: transform .25s ease; z-index: 90;
  display: flex; flex-direction: column;
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #E2DED6;
}
.sidebar-sections { padding: 8px 16px 20px; }
.sidebar-title { margin: 12px 0 4px; font-weight: 700; }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li a {
  display: block; padding: 8px 6px; text-decoration: none; color: #2C2C2C; border-radius: 8px;
}
.sidebar-list li a:hover { background: #F5F0E6; }
