/* Recipes page card layout - focuses on prominent thumbnails */
:root {
  --rc-gap: 20px;
  --rc-radius: 14px;
  --rc-shadow-sm: 0 6px 16px rgba(20, 12, 4, 0.08);
  --rc-shadow-md: 0 12px 30px rgba(20, 12, 4, 0.12);
  --rc-border: #efe9e2;
  --rc-muted: #666;
  --rc-strong: #2a2a2a;
  --rc-accent: #a76d3a; /* chestnut */
}


.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rc-gap);
  padding: 16px;
}

@media (min-width: 1400px) {
  .recipe-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .recipe-grid { grid-template-columns: 1fr; }
}

.recipe-card {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  overflow: hidden;
  box-shadow: var(--rc-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rc-shadow-md);
}

.recipe-link { display: grid; color: inherit; text-decoration: none; }

.recipe-thumb { position: relative; background: #faf7f3; }
.recipe-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (max-width: 576px) {
  .recipe-thumb img { height: 200px; }
}

.thumb-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0846a;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #fff4e6, #fffdfa 60%);
}
@media (max-width: 576px) {
  .thumb-placeholder { height: 200px; }
}

.recipe-info { padding: 14px 14px 16px; }
.recipe-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 2px 0 8px;
  color: var(--rc-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-meta { color: var(--rc-muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.meta-author { color: var(--rc-accent); font-weight: 600; }
.meta-dot { opacity: .5; }

.no-data {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  color: var(--rc-muted);
  border: 1px dashed var(--rc-border);
  border-radius: var(--rc-radius);
  background: #fff;
}
