/* ============================================================
   TVB Crowdfunder – Basisstijl
   ============================================================ */

/* Algemene layout */
.wpcf-campaign-detail,
.tvb-grid {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
}

/* Grid overzicht */
.tvb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 1rem;
}

/* Kaartcontainer */
.tvb-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tvb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Afbeeldingen (vierkant) */
¨.tvb-card__media,
.wpcf-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #f3f4f6;
  overflow: hidden;
}
.tvb-card__media img,
.wpcf-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
} 

/* Tekst en inhoud */
.tvb-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tvb-badge {
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  display: inline-block;
  width: fit-content;
}

.tvb-org {
  font-size: 0.8rem;
  color: #6b7280;
}

.tvb-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
  margin: 0.2rem 0;
  line-height: 1.3;
}

.tvb-desc {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.4;
}

/* Progress bar */
.tvb-progress,
.wpcf-progress {
  margin-top: 0.5rem;
}

.tvb-progress__bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}
.tvb-progress__bar span {
  display: block;
  height: 100%;
  background: #10b981;
}

.tvb-progress__nums {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #374151;
}

/* Knoppen */
.tvb-btn,
.wpcf-donate-form a {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s ease;
}
.tvb-btn:hover,
.wpcf-donate-form a:hover {
  background: #1d4ed8;
}

/* Detailpagina */
.wpcf-campaign-detail {
  padding: 1rem;
}
.wpcf-campaign-detail h2 {
  margin-top: 1rem;
  font-size: 1.6rem;
  color: #111827;
}
.wpcf-campaign-detail p {
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

/* Donatieformulier */
.wpcf-donate-form label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 500;
}
.wpcf-donate-form input[type="number"] {
  width: 120px;
  padding: 0.4rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.wpcf-donate-form {
  margin-top: 1rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .tvb-grid {
    grid-template-columns: 1fr;
  }
  .tvb-title {
    font-size: 1rem;
  }
}
/* --- TVB overview tweaks --- */

/* Bovenstuk (org + categorie + titel) krijgt vaste minimumhoogte */
.tvb-card__top{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height: 92px; /* pas gerust aan tussen 86–110px */
}

/* Titel altijd 2 regels hoog (gelijk voor alle kaarten) */
.tvb-title{
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
  max-height: calc(1.3em * 2);
}

/* Zorg dat progress + knop netjes onderaan blijven */
.tvb-card__body{ display:flex; flex-direction:column; gap:.6rem; }
.tvb-progress__bar{ order: 2; }
.tvb-progress__nums{ order: 3; }
.tvb-card__body .tvb-btn{ order: 4; margin-top:auto; }

/* --- Status banners in kaartmedia --- */
.tvb-card{ position:relative; overflow:hidden; }
.tvb-card__media{ position:relative; }

/* compact lintje linksboven op de foto */
.tvb-flag{
  position:absolute;
  top:10px; left:10px;
  padding:6px 10px;
  font-size:.85rem;
  line-height:1;
  border-radius:8px;
  color:#fff;
  font-weight:600;
  text-align: center;
  box-shadow:0 1px 3px rgba(0,0,0,.16);
  width:95%;
  z-index:2;
}
.tvb-flag--completed{ background:#2e7d32; }  /* groen */
.tvb-flag--ending   { background:#ff9800; }  /* oranje */
.tvb-flag--expired  { background:#c62828; }  /* rood */
