/* ==========================================================================
   Recipes Pages — Index & Detail
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--color-smoke);
}
.breadcrumb a {
  color: var(--color-smoke);
  text-decoration: none;
  cursor: pointer;
}
.breadcrumb a:hover {
  color: var(--color-tangerine);
}
.breadcrumb-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ---- Recipe Index ---- */
.recipes-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}
.recipes-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-plum);
  margin-bottom: 0.5rem;
}
.recipes-hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-smoke);
  max-width: 560px;
  margin: 0 auto;
}

/* Filters */
.recipes-filters {
  padding: 0 0 2rem;
}
.filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  background: white;
  border: 1.5px solid #e0dce4;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-plum);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.filter-btn:hover {
  border-color: var(--color-tangerine);
  color: var(--color-tangerine);
}
.filter-btn.active {
  background: var(--color-tangerine);
  border-color: var(--color-tangerine);
  color: white;
}

/* Recipe Grid */
.recipes-grid-section {
  padding-bottom: 3rem;
}
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Recipe Card */
.recipe-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  cursor: pointer;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.recipe-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.recipe-card:hover .recipe-card-image img {
  transform: scale(1.05);
}
.recipe-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFD4C1 0%, #e8d5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.recipe-card-time {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
}
.recipe-card-content {
  padding: 1rem 1.25rem 1.25rem;
}
.recipe-card-content h2,
.recipe-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-plum);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.recipe-card-meta {
  font-size: 0.8125rem;
  color: var(--color-smoke);
}

/* ========================================================================
   Recipe Detail Page
   ======================================================================== */
.recipe-page {
  padding: 1rem 0 0;
}
.recipe-page > .container {
  max-width: 900px;
  margin: 0 auto;
}

.recipe-header {
  margin-bottom: 2rem;
}
.recipe-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--color-plum);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.recipe-description {
  font-size: 1.125rem;
  color: var(--color-smoke);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Recipe Meta Bar */
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.recipe-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.recipe-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-smoke);
  font-weight: 600;
}
.recipe-meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-plum);
}

/* Hero Image */
.recipe-hero-image {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.recipe-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Content Area: clipped with fade ---- */
.recipe-content-area {
  position: relative;
  max-height: 340px;
  overflow: hidden;
  margin: 2rem 0 0;
}

/* Two-Column Body inside content area */
.recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
}
.recipe-body h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--color-plum);
  margin-bottom: 1rem;
}

/* Ingredients column */
.recipe-ingredients ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recipe-ingredients li {
  padding: 0.625rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9375rem;
  color: var(--color-plum);
  line-height: 1.5;
}
.recipe-ingredients li:last-child {
  border-bottom: none;
}

/* Instructions column */
.recipe-instructions ol {
  padding-left: 1.5rem;
  margin: 0;
}
.recipe-instructions li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-plum);
}
.recipe-instructions li::marker {
  font-weight: 700;
  color: var(--color-tangerine);
}

/* Gradient fade — spans full width of content area */
.recipe-content-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(247, 244, 242, 0) 0%,
    rgba(247, 244, 242, 0.85) 50%,
    rgba(247, 244, 242, 1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ========================================================================
   Content Gate CTA Card (MOB Kitchen-style)
   ======================================================================== */
.recipe-gate {
  margin: 0 0 3rem;
}
.recipe-gate-card {
  background: var(--color-bone);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  color: var(--color-plum);
  border: 1px solid rgba(46, 26, 71, 0.08);
}

/* Logo icon */
.recipe-gate-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Heading */
.recipe-gate-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-plum);
  margin-bottom: 1.25rem;
}

/* Feature pills */
.recipe-gate-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.recipe-gate-pill {
  background: white;
  border: 1px solid rgba(46, 26, 71, 0.08);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-plum);
  width: 100%;
  max-width: 400px;
}

/* Store badges inside card */
.recipe-gate-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.recipe-gate-badges a {
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}
.recipe-gate-badges a:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Note text */
.recipe-gate-note {
  font-size: 0.8125rem;
  color: var(--color-smoke);
  margin-top: 1rem;
}

/* Normalize ALL store badge images */
.store-badge-img {
  height: 48px;
  width: auto;
  display: block;
}
.cta-banner .store-badge-img {
  height: 48px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .recipe-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .recipe-content-area {
    max-height: 350px;
  }
  .recipe-meta {
    gap: 1rem;
  }
  .recipe-gate-card {
    padding: 2rem 1.25rem;
  }
  .recipe-gate-btn {
    width: 100%;
    min-width: unset;
  }
  .recipe-gate-badges {
    flex-direction: column;
    align-items: center;
  }
}
