/* ── PALETTE ──────────────────────────────────────────
   #7F5539  Coffee Bean  (dark brown)
   #A68A64  Camel        (warm tan)
   #EDE0D4  Almond Cream (soft beige)
   #656D4A  Dusty Olive  (muted green)
   #414833  Ebony        (dark green)
──────────────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  background-color: #ede0d4;
  color: #414833;
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2.5rem;
  background-color: #fdf7f2;
  box-shadow: 0 2px 8px rgba(127, 85, 57, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #7f5539;
  letter-spacing: 0.02em;
}

#add-recipe-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: #7f5539;
  color: #ede0d4;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

#add-recipe-btn:hover {
  background-color: #414833;
  transform: translateY(-1px);
}

/* ── MAIN LAYOUT ─────────────────────────────────────── */

#page-content {
  width: 100%;
  min-height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  padding: 2.5rem 1rem;
}

/* ── CENTRAL PANEL ───────────────────────────────────── */

#recipes-panel {
  flex: 1;
  max-width: 900px;
  background-color: #fdf7f2;
  border-radius: 12px;
  box-shadow:
    0 4px 6px rgba(127, 85, 57, 0.08),
    0 10px 30px rgba(127, 85, 57, 0.12);
  padding: 2rem 2rem 2.5rem;
  align-self: flex-start;
}

.panel-heading {
  margin-bottom: 1.75rem;
}

.panel-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #414833;
  margin-bottom: 0.6rem;
}

.heading-divider {
  height: 3px;
  width: 60px;
  background-color: #a68a64;
  border-radius: 2px;
}

/* ── GRID ────────────────────────────────────────────── */

#recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ── RECIPE CARD ─────────────────────────────────────── */

.recipe-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(127, 85, 57, 0.1);
  border: 1px solid rgba(166, 138, 100, 0.2);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  cursor: pointer;
}

.recipe-card:hover {
  transform: scale(1.035);
  box-shadow: 0 8px 24px rgba(127, 85, 57, 0.2);
}

/* Card image */
.card-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: #ede0d4;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.recipe-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

/* Card body */
.card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #7f5539;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

/* Card meta (times) */
.card-meta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.meta-item.prep {
  color: #656d4a;
}

.meta-item.cook {
  color: #a68a64;
}

.meta-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 600px) {
  header {
    padding: 0.85rem 1.25rem;
  }

  #page-content {
    padding: 1.5rem 0.75rem;
  }

  #recipes-panel {
    padding: 1.25rem 1rem 1.5rem;
  }
}
