/* =========================================================
   1) FAVORIETEN KNOP OP RECEPTPAGINA (WPRM TEMPLATE)
   ========================================================= */

/* Wrapper: knop onder rating/metadata */
.pc-favorite-wrapper{
  display:block;
  margin-top: 12px; /* pas aan naar smaak */
}

/* Knop: hart + tekst op 1 regel */
.pc-favorite-wrapper .pc-favorite-button{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
}

/* Hart (ETmodules) */
.pc-favorite-wrapper .pc-favorite-heart{
  font-family:'ETmodules';
  font-size:30px;     /* jouw keuze */
  line-height:1;
  color:#999;
  display:inline-block;
}

/* ETmodules hart-icoon voor de knop op de receptpagina */
.pc-favorite-wrapper .pc-favorite-heart::before{
  content: "\e089";
}

/* Hover en actieve staat */
.pc-favorite-wrapper .pc-favorite-button:hover .pc-favorite-heart,
.pc-favorite-wrapper .pc-favorite-button.is-active .pc-favorite-heart{
  color:#e13d3d;
}

/* Tekst naast het hart */
.pc-favorite-wrapper .pc-favorite-text{
  font-family: inherit;
  font-size: 16px;     /* jouw keuze */
  line-height: 1.2;
  color: #333333;      /* jouw keuze */
}

/* Locked state */
.pc-favorite-button.is-locked {
  cursor: default;
  opacity: 0.6;
}
.pc-favorite-button.is-locked:hover .pc-favorite-heart {
  color: #e13d3d; /* blijft rood, geen hover-effect */
}


/* =========================================================
   FAVORIETEN PAGINA (/favorieten) — GRID + CONSISTENTE KAARTEN
   Voor shortcode: [pc_favorieten]
   ========================================================= */

.pc-favorites-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:24px;
  align-items:start;
}

/* Kaart: één uniforme stijl */
.pc-fav-card{
  display:flex;
  flex-direction:column;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Afbeelding altijd bovenaan, volle breedte */
.pc-fav-thumb{
  display:block;
  width:100%;
}
.pc-fav-thumb img{
  display:block;
  width:100%;
  height:auto;
}

/* Meta onder de afbeelding */
.pc-fav-meta{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  width:100%;
  position: relative; /* anker voor hartje */
}

/* Hartje linksboven in meta (favorietenpagina) */
.pc-fav-meta .pc-wpupg-fav-indicator{
  display: none;
  position: absolute;
  left: 10px;
  top: 10px;
  margin: 0 !important;
  font-family: 'ETmodules';
  font-size: 18px;
  line-height: 1;
  color: #e13d3d;
  pointer-events: none;
}
/* Favorietenpagina: alles is favoriet */
.pc-fav-card.pc-is-favorite .pc-wpupg-fav-indicator{
  display: block;
}

/* Titel: centreren + vaste hoogte (2 regels) */
.pc-fav-title{
  display:block;
  text-align:center;
  text-decoration:none;
  font-size:16px;
  line-height:1.3;
  /* 2 regels vaste ruimte, zodat alle knoppen gelijk uitlijnen */
  min-height: calc(1.3em * 2);
  margin: 0 0 12px 0;
  white-space:normal;
  overflow-wrap:break-word;
  word-wrap:break-word;
}

/* Verwijderknop: kleiner + rechts */
.pc-fav-remove{
  align-self:flex-end;
  padding:6px 12px;
  border:0;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
  background:#d9234a;
  color:#fff;
}
.pc-fav-remove:disabled{
  opacity:.6;
  cursor:default;
}

/* =========================================================
   Desktop: forceer 4 kolommen (Favorieten + Recente Recepten)
   ========================================================= */

/* 4 kolommen op desktop */
@media (min-width: 1200px) {
  .pc-favorites-grid{
    grid-template-columns: repeat(4, 1fr);
  }
}
/* Optioneel: op “normale” laptops 3 kolommen */
@media (min-width: 981px) and (max-width: 1199px) {
  .pc-favorites-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Tablet: 2 kolommen */
@media (min-width: 768px) and (max-width: 980px) {
  .pc-favorites-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Mobiel: 1 kolom */
@media (max-width: 767px) {
  .pc-favorites-grid{
    grid-template-columns: 1fr;
  }
}

/* Favorietenpagina: forceer rood hartje (overschrijft theme kleuren) */
.pc-fav-meta .pc-wpupg-fav-indicator,
.pc-fav-meta .pc-wpupg-fav-indicator::before{
  color: #e13d3d !important;
}

/* ETmodules hart (generiek) */
.pc-wpupg-fav-indicator::before{
  content: "\e089";
}


