/*
 * KB Café — Machines overzicht pagina
 * Alles gescopet op body.kbc-machines-page om conflicten te vermijden
 */

/* ─── HERO ───────────────────────────────────────────────── */
.kbc-mach-hero {
  background: var(--ink2);
  background-size: cover;
  background-position: center;
  position: relative; overflow: hidden;
}
.kbc-mach-hero > .kbc-container { position: relative; z-index: 2; }
.kbc-mach-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg,
    rgba(14,11,20,0.90) 0%,
    rgba(26,20,40,0.75) 50%,
    rgba(14,11,20,0.60) 100%
  );
}
.kbc-mach-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--purple), var(--teal), transparent);
}
.kbc-mach-hero .kbc-container {
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(56px, 7vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.kbc-mach-hero-content { max-width: 640px; }

.kbc-mach-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 16px; display: block;
}
.kbc-mach-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 700; line-height: 1.0;
  color: #ffffff; margin-bottom: 20px;
}
.kbc-mach-title em { font-style: italic; color: var(--teal); display: block; }
.kbc-mach-sub {
  font-size: 16px; line-height: 1.8;
  color: rgba(255,255,255,0.55); font-weight: 300;
  max-width: 480px; margin-bottom: 32px;
}
.kbc-mach-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.kbc-mach-hero-actions .btn-primary {
  background: var(--teal); color: var(--ink);
  border: 1px solid var(--teal); font-size: 13px; padding: 14px 28px;
  font-family: var(--font-body); font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; border-radius: 2px; text-decoration: none;
  transition: background 0.2s, transform 0.15s; display: inline-flex; align-items: center;
}
.kbc-mach-hero-actions .btn-primary:hover {
  background: var(--teal-d); border-color: var(--teal-d); color: white; transform: translateY(-2px);
}

/* ─── GRID SECTIE ────────────────────────────────────────── */
body.kbc-machines-page .kbc-mach-grid-section {
  background: #f5f0e8;
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 112px);
}

/* Filter tabs */
body.kbc-machines-page .kbc-mach-filters {
  display: flex; gap: 0; flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 1px solid #e0d8cc;
  background: transparent;
}
body.kbc-machines-page .kbc-mach-filter {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  background: transparent; border: none; cursor: pointer;
  color: #aaa; padding: 10px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
body.kbc-machines-page .kbc-mach-filter:hover { color: var(--purple); }
body.kbc-machines-page .kbc-mach-filter.actief {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

/* Machine grid */
body.kbc-machines-page .kbc-mach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { body.kbc-machines-page .kbc-mach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { body.kbc-machines-page .kbc-mach-grid { grid-template-columns: 1fr; } }

/* ─── MACHINE CARD ───────────────────────────────────────── */
body.kbc-machines-page .kbc-mach-card {
  background: #ffffff;
  border: 1px solid #e8e2d8;
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
body.kbc-machines-page .kbc-mach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(92,52,128,0.12);
  border-color: rgba(92,52,128,0.2);
}

/* Afbeelding */
body.kbc-machines-page .kbc-mach-card-img-wrap {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4/3; background: #f0ebe0;
  padding: 28px; overflow: hidden; position: relative;
  text-decoration: none;
}
body.kbc-machines-page .kbc-mach-card-img-wrap img {
  width: 80%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.10));
  transition: transform 0.4s ease;
}
body.kbc-machines-page .kbc-mach-card:hover .kbc-mach-card-img-wrap img {
  transform: scale(1.06) translateY(-4px);
}
body.kbc-machines-page .kbc-mach-card-img-placeholder {
  width: 100%; height: 200px; background: #f0ebe0;
}

/* Badges */
body.kbc-machines-page .kbc-mach-badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
  background: #1a1428; color: white;
}
body.kbc-machines-page .kbc-mach-badge.teal { background: var(--teal); color: var(--ink); }
body.kbc-machines-page .kbc-mach-badge-nieuw {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 3px;
  background: var(--purple); color: white;
}

/* Card body */
body.kbc-machines-page .kbc-mach-card-body {
  padding: 18px 22px 22px;
  display: flex; flex-direction: column; flex: 1;
  border-top: 1px solid #e8e2d8;
  background: #ffffff;
}
body.kbc-machines-page .kbc-mach-card-top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 6px;
}
body.kbc-machines-page .kbc-mach-avail {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: #2d9b4e;
}
body.kbc-machines-page .kbc-mach-avail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2d9b4e; flex-shrink: 0;
}
body.kbc-machines-page .kbc-mach-prijs {
  font-size: 12px; font-weight: 600; color: var(--purple);
}
body.kbc-machines-page .kbc-mach-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: #1a1428; line-height: 1.1; margin-bottom: 4px;
}
body.kbc-machines-page .kbc-mach-name a { color: inherit; transition: color 0.2s; }
body.kbc-machines-page .kbc-mach-name a:hover { color: var(--purple); }
body.kbc-machines-page .kbc-mach-specs {
  font-size: 13px; color: #999;
  line-height: 1.5; font-weight: 300; margin-bottom: 12px;
}

/* Highlights */
body.kbc-machines-page .kbc-mach-highlights {
  list-style: none; display: flex; flex-direction: column;
  gap: 5px; margin-bottom: 16px; flex: 1;
}
body.kbc-machines-page .kbc-mach-highlights li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #555;
}
body.kbc-machines-page .kbc-mach-highlights li svg { color: var(--teal); flex-shrink: 0; }

/* Card footer */
body.kbc-machines-page .kbc-mach-card-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid #e8e2d8;
  margin-top: auto;
}
body.kbc-machines-page .kbc-mach-card-link {
  font-size: 13px; font-weight: 600; color: var(--purple);
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s; text-decoration: none;
}
body.kbc-machines-page .kbc-mach-card-link:hover { gap: 10px; }
body.kbc-machines-page .kbc-mach-card-cta {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ink);
  background: var(--teal); padding: 9px 16px; border-radius: 2px;
  transition: background 0.2s; white-space: nowrap; text-decoration: none;
}
body.kbc-machines-page .kbc-mach-card-cta:hover { background: var(--teal-d); color: white; }

/* Leeg / geen resultaten */
body.kbc-machines-page .kbc-mach-empty,
body.kbc-machines-page .kbc-mach-no-results {
  grid-column: 1/-1; text-align: center;
  padding: 64px 0; color: #999; font-size: 15px; line-height: 1.8;
}

/* ─── CTA BLOK ───────────────────────────────────────────── */
.kbc-mach-cta {
  position: relative; overflow: hidden;
  min-height: 320px;
}
.kbc-mach-cta-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--ink2);
}
.kbc-mach-cta-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14,11,20,0.92) 0%,
    rgba(26,20,40,0.80) 50%,
    rgba(14,11,20,0.65) 100%
  );
}
.kbc-mach-cta-inner {
  position: relative; z-index: 2;
  background: transparent;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--pad);
}
.kbc-mach-cta-inner::before { display: none; }
.kbc-mach-cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700; line-height: 1.05;
  color: #ffffff; margin-bottom: 14px;
}
.kbc-mach-cta-title em { font-style: italic; color: var(--teal); }
.kbc-mach-cta-sub {
  font-size: 17px; color: rgba(255,255,255,0.65);
  line-height: 1.75; font-weight: 300;
  margin-bottom: 32px; max-width: 520px;
}
.kbc-mach-cta-actions {
  display: flex; flex-direction: row; gap: 12px; flex-wrap: wrap;
}
.kbc-mach-cta-actions .btn-ghost { display: none; }
.kbc-mach-cta-actions .btn-primary {
  background: var(--teal); color: var(--ink);
  border: 1px solid var(--teal);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 36px; border-radius: 2px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.kbc-mach-cta-actions .btn-primary:hover {
  background: var(--teal-d); border-color: var(--teal-d);
  color: white; transform: translateY(-2px);
}