/* recipe-card.css — styles for the reusable recipe-card component */

.recipe-card {
  background: #fff;
  border: 1px solid var(--border-color, #e0d8cc);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(44, 24, 16, 0.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.recipe-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(135deg, #2c1810 0%, #5c2d1a 100%);
  color: #fff;
}

.recipe-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.75rem;
  flex: none;
}

.recipe-card-title-group {
  flex: 1;
  min-width: 0;
}

.recipe-card-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.recipe-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
}

.recipe-card-desc {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 60ch;
}

.recipe-card-body {
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.recipe-card-section {
  /* intentionally bare — children control spacing */
}

.recipe-section-heading {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7a4a1f;
  border-bottom: 1px solid #eadfd4;
  padding-bottom: 0.3rem;
}

/* Ingredients */
.recipe-ingredients-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.recipe-ingredients-list li {
  font-size: 0.97rem;
}

/* Brew ratio badge */
.recipe-ratio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff7f0;
  border: 1px solid #c07a3a;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  width: fit-content;
}

.recipe-ratio-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a4a1f;
  font-weight: 700;
}

.recipe-ratio-value {
  font-size: 0.97rem;
  color: #2c1810;
  font-weight: 600;
}

/* Steps */
.recipe-steps-list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.6rem;
  counter-reset: recipe-step;
}

.recipe-steps-list li {
  font-size: 0.97rem;
  line-height: 1.55;
}

/* Serving notes */
.recipe-serving-notes p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  background: #fff7f0;
  border-left: 3px solid #c07a3a;
  padding: 0.65rem 0.9rem;
  border-radius: 0 8px 8px 0;
}

/* Variations */
.recipe-variations-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.recipe-variations-list li {
  font-size: 0.97rem;
  line-height: 1.5;
}

/* Multi-card layout when several recipes appear on one page */
.recipe-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .recipe-card-header {
    flex-direction: column;
  }

  .recipe-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.4rem;
  }

  .recipe-card-title {
    font-size: 1.25rem;
  }
}
