/* Ice Cream Mix - Recetas: recipe cards.
 * Extracted verbatim from generar_cards.py (CARD_CSS + GRID_CSS).
 */

.icm-card-receta {
  position: relative;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  max-width: 320px;
  box-shadow: 0 10px 25px rgba(31,41,55,0.08);
  transition: all 0.3s ease;
}
.icm-card-receta:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(31,41,55,0.12);
}
/* Imagen */
.icm-card-img {
  height: 200px;
  overflow: hidden;
}
.icm-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Contenido */
.icm-card-content {
  padding: 22px;
}
/* Tag */
.icm-card-tag {
  display: inline-block;
  background: #fff0f6;
  color: #ff5ea8;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}
/* Título */
.icm-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #4a148c;
  margin-bottom: 10px;
}
/* Texto */
.icm-card-text {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 18px;
}
/* Botón */
.icm-card-btn {
  display: inline-block;
  background: #ff5ea8;
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(255,94,168,0.3);
  transition: all 0.25s ease;
}
.icm-card-btn:hover {
  transform: translateY(-2px);
}
/* Toda la tarjeta es clicable: el enlace del botón se estira sobre la tarjeta. */
.icm-card-receta > a.icm-card-btn::after,
.icm-card-content .icm-card-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.icm-card-btn {
  position: static;
}

/* Rejilla responsive para varias tarjetas */
.icm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}
.icm-card-grid .icm-card-receta {
  max-width: none;
}
