/* Social media-pagina (/social, module SocialFeed) — publieke site.
   Geladen door Views/Site/Shared/SocialFeed.cshtml. Merkbewust via var(--brand-*), zodat de pagina in elke
   template goed staat zonder eigen CSS per template. De merkkleuren van de kanalen zelf (Instagram-verloop,
   Facebook-blauw, YouTube-rood, TikTok-zwart) zijn bewust vast: dat is hoe bezoekers een kanaal herkennen. */

.wf-social { display: flex; flex-direction: column; gap: 64px; }

/* ── Kop per kanaal: icoon, naam + @naam, Volg-knop rechts ─────────────────── */
.wf-social-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.wf-social-ico {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.35rem;
}
.wf-social-ico--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.wf-social-ico--facebook  { background: #1877f2; }
.wf-social-ico--youtube   { background: #ff0000; }
.wf-social-ico--tiktok    { background: #000; }
.wf-social-who { min-width: 0; }
.wf-social-name { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.2; color: var(--brand-ink); }
.wf-social-handle { font-size: .9rem; color: #8a8a8a; }
/* De tekstkleur staat met !important vast: de templates kleuren links (vooral in de donkere variant) met
   hun eigen regels, en die wonnen hier — bij Frenque (business1-dark, merkkleur lichtgrijs) werd de knop
   een lege grijze pil zonder zichtbare tekst (Tom, 13-09-2026). */
.wf-social-follow {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--brand-primary);
  background: var(--brand-primary); color: var(--brand-on-primary) !important;
  /* Ondergrens: sommige templates verkleinen de basismaat op mobiel, en dan werd de knoptekst 10,8px. */
  font-size: max(.9rem, 13px); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: filter .15s ease, transform .15s ease, background-color .15s ease, color .15s ease;
}
.wf-social-follow i { color: inherit !important; }
.wf-social-follow:hover,
.wf-social-follow:focus-visible { filter: brightness(.94); transform: translateY(-1px); color: var(--brand-on-primary) !important; }

/* Donkere template: een gevulde knop in de merkkleur staat op een donkere achtergrond al snel als een vlak
   grijs blok. Daar dus omlijnd in de lichte merkkleur, en pas bij hover gevuld. */
[data-bs-theme="dark"] .wf-social-follow {
  background: transparent;
  border-color: var(--brand-primary-ondark, #f1efec);
  color: var(--brand-primary-ondark, #f1efec) !important;
}
[data-bs-theme="dark"] .wf-social-follow:hover,
[data-bs-theme="dark"] .wf-social-follow:focus-visible {
  filter: none;
  background: var(--brand-primary-ondark, #f1efec);
  color: var(--brand-on-primary, #1a1a1a) !important;
}

/* ── Instagram: kaart (tot de live feed er is) ─────────────────────────────── */
.wf-social-card { padding: 28px; border: 1px solid #ececec; border-radius: 10px; background: #fff; }
.wf-social-card .wf-social-head { margin-bottom: 8px; }
.wf-social-lead { margin: 0; color: #4a4a4a; }

/* ── Facebook: de Page Plugin is hoogstens 500px breed ─────────────────────── */
.wf-social-fb { max-width: 500px; margin: 0 auto; }
.wf-social-fb .wf-embed { margin: 0; }

/* ── YouTube: raster van video's ───────────────────────────────────────────── */
.wf-social-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.wf-social-video { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.wf-social-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.wf-social-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.wf-social-video:hover .wf-social-thumb img,
.wf-social-video:focus-visible .wf-social-thumb img { transform: scale(1.05); }
.wf-social-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3.2rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
}
.wf-social-video:hover .wf-social-play { opacity: 1; transform: scale(1.08); }
.wf-social-video:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 4px; border-radius: 10px; }
.wf-social-vtitle {
  margin-top: 10px; font-weight: 600; line-height: 1.35; color: var(--brand-ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* Videovenster: zwart vlak; een nog niet toegestane speler krijgt een licht vlak, anders valt de
   donkere uitleg van wf-consent weg tegen het zwart. */
.wf-social-modal .modal-content { position: relative; background: #000; border: 0; border-radius: 12px; overflow: hidden; }
.wf-social-modal .wf-embed { margin: 0; }
.wf-social-modal .wf-embed-blocked { background: #fff; }
.wf-social-modal-x { position: absolute; top: 12px; right: 12px; z-index: 3; }

/* ── TikTok: de embed centreert zichzelf tot 780px ─────────────────────────── */
.wf-social-tiktok { display: flex; justify-content: center; }
.wf-social-tiktok .wf-embed-code { max-width: 780px; margin: 0; }

@media (max-width: 575.98px) {
  .wf-social { gap: 44px; }
  .wf-social-follow { margin-left: 0; }
  .wf-social-card { padding: 20px; }
  .wf-social-videos { grid-template-columns: 1fr; }
}

/* ── Donkere template ──────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .wf-social-card {
  background: var(--wf-dark-card, color-mix(in srgb, var(--brand-secondary, #8a8a8a) 14%, var(--site-dark-bg, #16201b)));
  border-color: rgba(255, 255, 255, .08);
}
[data-bs-theme="dark"] .wf-social-name,
[data-bs-theme="dark"] .wf-social-vtitle { color: #f1efec; }
[data-bs-theme="dark"] .wf-social-lead { color: #cfd2d8; }
[data-bs-theme="dark"] .wf-social-handle { color: #9aa0a8; }

/* ── Eigen Instagram-feed (_InstagramFeed) ─────────────────────────────────────
   Profielkop + vierkant raster, zoals Instagram en de oude Perfectmanage/Elfsight-feed het tonen. De Volgen-
   knop is bewust zwart/wit (de huisstijl van Instagram), niet de merkkleur van de klant. */
.wf-ig { width: 100%; }
.wf-ig-head {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 16px 28px; padding: 16px 20px; margin-bottom: 16px;
}
.wf-ig-avatar {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid #fff; box-shadow: 0 0 0 2px #d6249f;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem;
}
.wf-ig-who { min-width: 0; text-align: left; }
.wf-ig-name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--brand-ink); }
.wf-ig-handle { font-size: .85rem; color: #8a8a8a; }
.wf-ig-stats { display: flex; gap: 24px; }
.wf-ig-stats span { display: flex; flex-direction: column; align-items: center; font-size: .78rem; line-height: 1.25; color: #8a8a8a; }
.wf-ig-stats b { font-size: 1rem; font-weight: 700; color: var(--brand-ink); }
.wf-ig-follow {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 8px;
  background: #000; color: #fff !important; font-weight: 600; font-size: max(.85rem, 13px); line-height: 1.2;
  text-decoration: none; transition: transform .15s ease, filter .15s ease;
}
.wf-ig-follow i { color: inherit !important; }
.wf-ig-follow:hover, .wf-ig-follow:focus-visible { transform: translateY(-1px); filter: brightness(1.25); color: #fff !important; }

.wf-ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.wf-ig-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.wf-ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.wf-ig-tile:hover img, .wf-ig-tile:focus-visible img { transform: scale(1.06); }
.wf-ig-tile:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.wf-ig-type { position: absolute; top: 10px; right: 10px; color: #fff; font-size: 1.1rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.wf-ig-cap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 18px; overflow: hidden; text-align: center;
  background: rgba(0, 0, 0, .58); color: #fff; font-size: .85rem; line-height: 1.45;
  opacity: 0; transition: opacity .25s ease;
}
.wf-ig-tile:hover .wf-ig-cap, .wf-ig-tile:focus-visible .wf-ig-cap { opacity: 1; }

@media (max-width: 991.98px) { .wf-ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) {
  .wf-ig-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-ig-stats { gap: 18px; }
  .wf-ig-cap { display: none; }
}

[data-bs-theme="dark"] .wf-ig-name,
[data-bs-theme="dark"] .wf-ig-stats b { color: #f1efec; }
[data-bs-theme="dark"] .wf-ig-handle,
[data-bs-theme="dark"] .wf-ig-stats span { color: #9aa0a8; }
[data-bs-theme="dark"] .wf-ig-avatar { border-color: #16201b; }
[data-bs-theme="dark"] .wf-ig-follow { background: #f1efec; color: #111 !important; }
[data-bs-theme="dark"] .wf-ig-follow:hover { filter: brightness(.92); color: #111 !important; }
