/* Recipes section */
.recipes-section {
  padding: 60px 0;
  margin: 60px 0;
  text-align: center;
}
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}
.recipe-card {
  border: 1px solid rgba(99, 46, 10, 0.1);
  border-radius: 8px;
  background: var(--soft-white);
  text-align: left;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.recipe-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--soft-cream), var(--cream-linen));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wood-ash);
  font-size: 0.9rem;
  font-style: italic;
  overflow: hidden;
  position: relative;
}
.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.recipe-card:hover .recipe-image img {
  transform: scale(1.02);
}
.recipe-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.recipe-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--cider-brown);
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.recipe-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.recipe-time {
  color: var(--cinnamon-bark);
  font-size: 0.9rem;
  font-weight: 500;
}
.recipe-author {
  color: var(--wood-ash);
  font-size: 0.85rem;
  font-style: italic;
}
.recipe-description {
  color: var(--wood-ash);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.85em;
  flex-grow: 1;
}
.recipe-link {
  color: var(--cinnamon-bark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.recipe-link:hover {
  color: var(--mulled-wine);
  font-weight: 600;
  transform: translateY(-1px);
}

/* Recipe filters */
.recipe-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  transform: scale(0.7);
}
.recipe-filter-btn {
  background: transparent;
  color: var(--cider-brown);
  border: 1px solid var(--cinnamon-bark);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}
.recipe-filter-btn:hover,
.recipe-filter-btn.active {
  background: var(--cinnamon-bark);
  color: var(--soft-white);
  border-color: var(--cinnamon-bark);
}

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

/* Skeleton loading styles (legacy parity) */
.skeleton-card {
  opacity: 0.7;
  height: 550px;
  display: flex;
  flex-direction: column;
}
.skeleton-card .recipe-image {
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--soft-cream) 0%,
    #e8dfd6 50%,
    var(--soft-cream) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  width: 100%;
  height: 100%;
}
.skeleton-card .recipe-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-title {
  height: 24px;
  border-radius: 4px;
  width: 85%;
  animation: shimmer 2.5s infinite;
}
.skeleton-meta {
  height: 16px;
  width: 70%;
  border-radius: 4px;
  animation: shimmer 3s infinite;
}
.skeleton-description {
  height: 16px;
  border-radius: 4px;
  width: 95%;
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
