/* ======================================================
   GF Hearts — Recipes
   Archive and single-post styles.
   ====================================================== */

/* ── Shared stat ─────────────────────────────────────── */

.gfh-recipe-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--gfh-text-muted);
}

.gfh-recipe-stat .fa-solid {
  color: var(--gfh-accent);
}

/* ── Archive ─────────────────────────────────────────── */

.gfh-recipes-archive {
  padding: 2rem 0;
}

.gfh-recipes-archive__intro {
  margin-bottom: 2rem;
}

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

@media (max-width: 768px) {
  .gfh-recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gfh-recipe-grid {
    grid-template-columns: 1fr;
  }
}

.gfh-recipe-card {
  background: var(--gfh-surface);
  border-radius: var(--gfh-radius-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gfh-recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Stretched-link pattern: title link covers the whole card via ::after,
   allowing nested links (e.g. badge ?) to sit above it via z-index. */
.gfh-recipe-card {
  position: relative;
}

.gfh-recipe-card__link {
  color: inherit;
  text-decoration: none;
}

.gfh-recipe-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.gfh-recipe-card__image-link {
  display: block;
}

.gfh-recipe-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: var(--gfh-radius-card) var(--gfh-radius-card) 0 0;
}

.gfh-recipe-card__body {
  padding: 1rem;
}

.gfh-recipe-card__title {
  font-family: var(--gfh-font-display);
  font-size: 1.125rem;
  color: var(--gfh-teal);
  margin: 0 0 0.5rem;
}

/* Lift interactive elements above the stretched card link */
.gfh-recipe-card__stats,
.gfh-recipe-card__rating {
  position: relative;
  z-index: 1;
}

.gfh-recipe-card__excerpt {
  font-size: 0.875rem;
  color: var(--gfh-text-muted);
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gfh-recipe-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
}

.gfh-recipe-card__rating-stars {
  font-size: 0.8rem;
}

.gfh-recipe-card__rating-stars i {
  color: var(--gfh-primary);
}

.gfh-recipe-card__rating-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gfh-text);
}

.gfh-recipe-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.gfh-recipes-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.gfh-no-recipes {
  text-align: center;
  color: var(--gfh-text-muted);
  padding: 3rem 0;
}

/* ── Single ──────────────────────────────────────────── */

.gfh-recipe-back {
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gfh-teal) 10%, transparent);
}

.gfh-recipe-back__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gfh-accent);
  text-decoration: none;
}

.gfh-recipe-back__link:hover {
  color: var(--gfh-teal);
}

.gfh-recipe-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}

.gfh-recipe-hero__image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.gfh-recipe-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.gfh-recipe-header {
  margin-bottom: 2rem;
}

.gfh-recipe-header__title {
  font-family: var(--gfh-font-display);
  font-size: 2.25rem;
  color: var(--gfh-teal);
  margin: 0 0 0.75rem;
}

.gfh-recipe-header__description {
  font-size: 1.125rem;
  color: var(--gfh-text-muted);
  margin: 0 0 1.25rem;
}

.gfh-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gfh-surface);
  border-radius: var(--gfh-radius-card);
}

.gfh-recipe-stat--labeled {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

.gfh-recipe-stat--labeled .fa-solid {
  display: none;
}

.gfh-recipe-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gfh-text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.gfh-recipe-stat__label .fa-solid {
  color: var(--gfh-accent);
  display: inline-block;
}

.gfh-recipe-stat__value {
  font-weight: 700;
  color: var(--gfh-text);
  font-size: 1rem;
}

.gfh-recipe-section {
  margin-bottom: 2.5rem;
}

.gfh-recipe-section__heading {
  font-family: var(--gfh-font-display);
  font-size: 1.5rem;
  color: var(--gfh-teal);
  border-bottom: 2px solid var(--gfh-accent);
  padding-bottom: 0.5rem;
  margin: 0 0 1rem;
}

.gfh-recipe-section__content {
  line-height: 1.8;
}

.gfh-recipe-header__author {
  font-size: 0.875rem;
  color: var(--gfh-text-muted);
  margin: 0 0 1.25rem;
}

.gfh-recipe-comments-section {
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 2px solid color-mix(in srgb, var(--gfh-teal) 10%, transparent);
  background: var(--gfh-surface);
}

/* ── Single recipe aggregate rating ──────────────────────── */

.gfh-recipe-aggregate-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.gfh-recipe-aggregate-rating__stars {
  color: var(--gfh-primary);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.gfh-recipe-aggregate-rating__score {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gfh-text);
}

.gfh-recipe-aggregate-rating__count {
  font-size: 0.875rem;
  color: var(--gfh-text-muted);
}

