/* ==========================================================
   TiMe 2026 – beweging, fotostijl en deelknoppen
   Onderdeel van plugin plg_system_timemotion
   ========================================================== */

/* ---------- 1. Hero: trage zoom + parallax ---------- */
/* Werkt ook voor een latere <video class="time-hero-photo">. */
.time-hero-photo {
  translate: 0 var(--time-hero-shift, 0px);
  scale: 1.06;
}
/* Trage zoom: standaard enkel op de homepage, of overal via de plugininstelling */
.time-home .time-hero-photo,
.time-kb-all .time-hero-photo {
  animation: time-kenburns 24s ease-in-out infinite alternate;
}
@keyframes time-kenburns {
  from { scale: 1.06; }
  to   { scale: 1.14; }
}
/* tekst en kaarten schuiven iets sneller weg dan de foto */
.time-hero-inner {
  translate: 0 var(--time-hero-lift, 0px);
}

/* Header-golf onder het logo boven de bewegende foto houden
   (Safari zet geanimeerde lagen soms boven elementen met z-index -1) */
.time-header { isolation: isolate; }
.time-header-wave { z-index: 0; }
.time-header-inner { position: relative; z-index: 1; }

/* ---------- 2. Golven onderaan de hero ademen mee ---------- */
.time-hero > svg path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: time-wave 7s ease-in-out infinite alternate;
}
.time-hero > svg path:nth-child(2) { animation-duration: 9s;  animation-delay: -2s; }
.time-hero > svg path:nth-child(3) { animation-duration: 11s; animation-delay: -4s; }
.time-hero > svg path:nth-child(4) { animation-duration: 13s; animation-delay: -6s; }
@keyframes time-wave {
  from { scale: 1 1; }
  to   { scale: 1 1.18; }
}

/* ---------- 3. Blokken schuiven zacht binnen bij scrollen ---------- */
.time-js-motion .time-reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity .7s ease,
    translate .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--time-delay, 0ms);
}
.time-js-motion .time-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ---------- 4. Nieuwsfoto's in clubkleuren (duotone) ---------- */
/* Maakt matige gsm-foto's uniform. Sterkte aanpassen in motion.js (DUOTONE_STRENGTH). */
.time-news-item img,
.time-feature > img,
.time-related img,
.time-article .time-duotone img,
img.time-duotone {
  filter: url(#time-duotone);
}
/* Wil je een foto in originele kleur? Geef de afbeelding de klasse "time-original". */
img.time-original,
.time-original img {
  filter: none !important;
}

/* ---------- 5. Deelknoppen onder nieuwsberichten ---------- */
.time-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 28px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--time-line, #d2e8ec);
  border-radius: var(--time-radius, 18px);
  background: var(--time-ice, #f0f9fa);
}
.time-share-label {
  margin-right: 4px;
  font-weight: 700;
  color: var(--time-navy, #050060);
}
.time-share a,
.time-share button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  transition: translate .2s ease, box-shadow .2s ease;
}
.time-share a:hover,
.time-share button:hover {
  translate: 0 -2px;
  box-shadow: 0 8px 18px #05006026;
}
.time-share a:focus-visible,
.time-share button:focus-visible {
  outline: 3px solid var(--time-cyan, #35A9BC);
  outline-offset: 2px;
}
.time-share svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.time-share-fb   { background: #1877F2; }
.time-share-wa   { background: #1FA855; }
.time-share-copy { background: var(--time-navy, #050060); }
.time-share-native { background: var(--time-cyan, #35A9BC); }
.time-share-copy.is-copied { background: var(--time-cyan, #35A9BC); }

@media (max-width: 600px) {
  .time-share { padding: 14px; }
  .time-share-label { width: 100%; }
}

/* ---------- 6. Minder beweging als de bezoeker dat vraagt ---------- */
@media (prefers-reduced-motion: reduce) {
  .time-hero-photo { animation: none; translate: none; scale: 1; }
  .time-hero-inner { translate: none; }
  .time-hero > svg path { animation: none; }
  .time-js-motion .time-reveal { opacity: 1; translate: none; transition: none; }
}

/* Beweging uitgeschakeld in de plugininstellingen */
.time-no-motion .time-hero-photo { animation: none; translate: none; scale: 1; }
.time-no-motion .time-hero-inner { translate: none; }
.time-no-motion .time-hero > svg path { animation: none; }
