.top-recipes-section {
  background: var(--tp);
  padding: 3.5rem 5vw;
}

.top-recipes-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.top-recipes-section h2 {
  font-family: Nunito, sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--tx);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.top-recipes-section .subtitle {
  font-size: 0.85rem;
  color: #4a6b64;
  margin: 0 0 2rem;
}

/* ---- Grid ---- */

.top-recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .top-recipes-grid {
    grid-template-columns: 1fr;
  }
}

.top-recipes-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--sf);
  font-size: 0.9rem;
  padding: 2rem 0;
}

/* ---- Card ---- */

.top-recipe-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--bd);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--tx);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.top-recipe-card:hover {
  transform: translateY(-4px);
  border-color: var(--tm);
  box-shadow: 0 8px 24px rgba(26,124,107,0.12);
}

/* ---- Image ---- */

.top-recipe-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ---- Body ---- */

.top-recipe-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category line -- matches .recipe-card-cat on hub */
.top-recipe-cat {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--t);
  font-family: Nunito, sans-serif;
  margin-bottom: 0.3rem;
}

/* Phase accent on cat per phase */
.top-recipe-card[data-phase="vloeibaar"] .top-recipe-cat { color: #1e6fa0; }
.top-recipe-card[data-phase="gepureerd"] .top-recipe-cat { color: #a05a1e; }
.top-recipe-card[data-phase="vaste-voeding"] .top-recipe-cat { color: var(--t); }

/* Title -- matches hub h3 */
.top-recipe-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--tx);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  font-family: Nunito, sans-serif;
}

/* Description */
.top-recipe-desc {
  font-size: 0.82rem;
  color: var(--md);
  line-height: 1.5;
  margin: 0 0 0.9rem;
}

/* Macros -- reuses .macro-pill defined on hub; also define here for safety */
.top-recipe-macros {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.top-recipe-macros .macro-pill {
  background: var(--tp);
  color: var(--t);
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* Rating row */
.top-recipe-rating {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.88em;
  margin-bottom: 0.6rem;
}

.top-recipe-stars {
  color: #f5a623;
  letter-spacing: 0.5px;
  line-height: 1;
}

.top-recipe-value {
  font-weight: 700;
  color: var(--tx);
  font-size: 0.92em;
}

.top-recipe-count {
  color: var(--sf);
  font-size: 0.82em;
}

/* "Bekijk recept" link at bottom */
.top-recipe-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sf);
  margin-top: auto;
}

/* ---- CTA row (3 buttons) ---- */

.top-recipes-cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  .top-recipes-cta-row {
    grid-template-columns: 1fr;
  }
}

.btn-secondary {
  display: block;
  text-align: center;
  font-family: Nunito, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--t);
  background: #fff;
  border: 2px solid var(--tm);
  padding: 0.7rem 1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--tp);
}

.btn-secondary.phase-vloeibaar { border-color: #7abfdf; color: #1e6fa0; }
.btn-secondary.phase-vloeibaar:hover { background: #dbeeff; }

.btn-secondary.phase-gepureerd { border-color: #d4a47c; color: #a05a1e; }
.btn-secondary.phase-gepureerd:hover { background: #fdefd8; }

.btn-secondary.phase-vaste-voeding { border-color: var(--tm); color: var(--t); }
.btn-secondary.phase-vaste-voeding:hover { background: var(--tp); }
