/* Seizoensthema's: één lichte laag bovenop elke website-template en de clubhuis-tv.
   Alles is CSS + kleine inline-SVG's; geen beelden. Bij "minder beweging" valt de
   animatie weg en blijft enkel de groet over. */
.season-overlay { --season-accent: #F76B10; pointer-events: none; }
.season-particles { position: fixed; inset: 0; z-index: 1029; overflow: hidden; pointer-events: none; }
.season-particles > i, .season-particles > b { position: absolute; display: block; will-change: transform; pointer-events: none; }

/* ── Vallende deeltjes (sneeuw, pepernoten) ── */
@keyframes sp-fall {
    0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); }
    50%  { transform: translate3d(22px, 50vh, 0) rotate(180deg); }
    100% { transform: translate3d(-14px, 112vh, 0) rotate(360deg); }
}
.sp-snow { top: 0; border-radius: 50%; background: #f4f9ff; box-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 3px rgba(110,150,210,.45); animation: sp-fall 14s linear infinite; }
.sp-pepernoot { top: 0; width: 11px; height: 9px; border-radius: 45% 55% 50% 50%; background: radial-gradient(circle at 35% 30%, #a2653a, #6b3d1e 70%); box-shadow: inset -1px -1px 2px rgba(0,0,0,.35); animation: sp-fall 11s linear infinite; }

/* ── Confetti (carnaval): dwarrelende strookjes in feestkleuren ── */
@keyframes sp-confetti {
    0%   { transform: translate3d(0, -12vh, 0) rotateZ(0deg) rotateX(0deg); }
    50%  { transform: translate3d(28px, 50vh, 0) rotateZ(200deg) rotateX(180deg); }
    100% { transform: translate3d(-20px, 112vh, 0) rotateZ(400deg) rotateX(360deg); }
}
.sp-confetti { top: 0; width: 9px; height: 15px; border-radius: 2px; background: var(--c, #ff4fa3); opacity: .92; animation: sp-confetti 9s linear infinite; }

/* ── Opstijgende hartjes ── */
@keyframes sp-rise {
    0%   { transform: translate3d(0, 10vh, 0) scale(.8); opacity: 0; }
    15%  { opacity: .9; }
    50%  { transform: translate3d(-18px, -40vh, 0) scale(1); }
    100% { transform: translate3d(14px, -100vh, 0) scale(1.1); opacity: 0; }
}
.sp-heart { bottom: 0; width: 16px; height: 16px; animation: sp-rise 12s ease-in infinite; }
.sp-heart::before, .sp-heart::after { content: ''; position: absolute; top: 0; left: 50%; width: 50%; height: 80%; background: #ff5c8a; border-radius: 50% 50% 0 0; transform: rotate(-45deg); transform-origin: 0 100%; }
.sp-heart::after { left: 0; transform: rotate(45deg); transform-origin: 100% 100%; }

/* ── Vonken (nieuwjaar) ── */
@keyframes sp-twinkle {
    0%, 100% { transform: scale(.3) rotate(0deg); opacity: 0; }
    50%      { transform: scale(1) rotate(45deg); opacity: 1; }
}
.sp-spark { width: 12px; height: 12px; background: radial-gradient(circle, #fff6c4 0%, #ffd166 45%, transparent 70%); animation: sp-twinkle 3s ease-in-out infinite; }
.sp-spark::before, .sp-spark::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 22px; margin: -11px 0 0 -1px; background: linear-gradient(transparent, #ffe08a, transparent); }
.sp-spark::after { transform: rotate(90deg); }

/* ── Vleermuizen (halloween) ── */
@keyframes sp-fly {
    0%   { transform: translate3d(-10vw, 0, 0) scale(.9); }
    50%  { transform: translate3d(50vw, -6vh, 0) scale(1.05); }
    100% { transform: translate3d(110vw, 2vh, 0) scale(.9); }
}
@keyframes sp-flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.sp-bat { width: 42px; height: 20px; animation: sp-fly 16s linear infinite; }
.sp-bat svg { width: 100%; height: 100%; fill: #1b1b2a; animation: sp-flap .35s ease-in-out infinite; transform-origin: 50% 50%; }
.sp-pumpkin { bottom: -6px; width: 72px; height: 64px; }
.sp-pumpkin--l { left: 10px; } .sp-pumpkin--r { right: 10px; transform: scaleX(-1); }
.sp-pumpkin svg { width: 100%; height: 100%; }

/* ── Hangende paaseieren ── */
@keyframes sp-swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.sp-egg { top: 0; width: 26px; height: 90px; transform-origin: 50% 0; animation: sp-swing 4s ease-in-out infinite; }
.sp-egg::before { content: ''; position: absolute; left: 50%; top: 0; width: 1px; height: 56px; background: rgba(0,0,0,.35); }
.sp-egg::after { content: ''; position: absolute; left: 0; top: 54px; width: 26px; height: 34px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--egg, #ffd166); box-shadow: inset -4px -5px 0 rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.2); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 3px, transparent 3px 9px); }

/* ── Slinger met lichtjes (kerst) ── */
.season-garland { position: fixed; top: 0; left: 0; right: 0; height: 26px; z-index: 1031; pointer-events: none; display: flex; justify-content: space-around; align-items: flex-start; background: linear-gradient(to bottom, rgba(0,0,0,.18), transparent); }
.season-garland::before { content: ''; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid #163a22; border-radius: 50%; height: 6px; }
@keyframes sp-glow { 0%, 100% { opacity: .55; filter: brightness(.9); } 50% { opacity: 1; filter: brightness(1.35); } }
.season-garland i { width: 10px; height: 14px; margin-top: 7px; border-radius: 50% 50% 55% 55%; background: var(--c, #ff4b4b); box-shadow: 0 0 8px var(--c, #ff4b4b), 0 0 16px var(--c, #ff4b4b); animation: sp-glow 1.6s ease-in-out infinite; animation-delay: var(--d, 0s); position: relative; }
.season-garland i::before { content: ''; position: absolute; top: -5px; left: 3px; width: 4px; height: 5px; background: #2c2c2c; border-radius: 1px; }

/* ── Mijter (sinterklaas) ── */
.sp-mijter { top: 8px; right: 14px; width: 54px; height: 72px; }
.sp-mijter svg { width: 100%; height: 100%; }

/* ── Groet (website): klein pilletje linksonder, weg te klikken ── */
.season-greet { position: fixed; left: 16px; bottom: 16px; z-index: 1040; display: flex; align-items: center; gap: 10px; max-width: min(92vw, 420px); padding: 10px 12px 10px 14px; border-radius: 999px; background: #fff; color: #1b1b1b; box-shadow: 0 10px 30px rgba(0,0,0,.18); border: 2px solid var(--season-accent); font: 500 14px/1.3 inherit; pointer-events: auto; animation: season-greet-in .5s ease-out both; }
@keyframes season-greet-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.season-greet__icon { font-size: 22px; line-height: 1; }
.season-greet__hunt { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--season-accent) 14%, #fff); color: #1b1b1b; font-size: 12px; font-weight: 600; white-space: nowrap; }
.season-greet__close { appearance: none; border: 0; background: transparent; color: #777; font-size: 20px; line-height: 1; padding: 0 2px; cursor: pointer; }
.season-greet__close:hover { color: #111; }
@media (max-width: 600px) { .season-greet { left: 10px; right: 10px; bottom: 10px; max-width: none; border-radius: 16px; font-size: 13px; } }

/* ── Verstopt paasei (zoektocht): een echte knop in de pagina ── */
@keyframes sp-wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.season-egg { position: absolute; z-index: 1035; width: 30px; height: 38px; border: 0; padding: 0; background: transparent; cursor: pointer; pointer-events: auto; animation: sp-wobble 2.4s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.season-egg svg { width: 100%; height: 100%; }
.season-egg:hover { animation-duration: .6s; }
.season-egg:focus-visible { outline: 3px solid var(--season-accent); border-radius: 50%; }

/* ── Melding na een klik ── */
.season-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 1041; padding: 12px 18px; border-radius: 14px; background: #1b1b1b; color: #fff; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 92vw; text-align: center; pointer-events: auto; animation: season-greet-in .35s ease-out both; }
.season-toast a { color: #ffd166; font-weight: 600; }

/* ── Clubhuis-tv: groet als pilletje in de kop, rustiger deeltjes ── */
.season-tv-greet { display: inline-flex; align-items: center; gap: .6vw; margin-left: 1.6vw; padding: .5vh 1.2vw; border-radius: 99vh; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: 2.1vh; font-weight: 600; white-space: nowrap; }
body.season-tv .season-particles { z-index: 1; }
body.season-tv .season-garland { height: 2.6vh; }
body.season-tv .season-garland i { width: 1vh; height: 1.4vh; margin-top: .7vh; }

/* ── Beeldpakket: hoeken en strook onderaan (PNG's op de server) ── */
.season-particles > img { position: absolute; pointer-events: none; }
.season-corner { top: 0; width: min(190px, 30vw); height: auto; }
.season-corner--left { left: 0; } .season-corner--right { right: 0; }
.season-bottom { left: 0; right: 0; bottom: 0; width: 100%; height: auto; max-height: 18vh; object-fit: cover; object-position: top; }
body.season-tv .season-corner { width: 12vw; }

/* ── Hero-lagen (website): PNG's over de hero-banner, die zijn eigen maat houdt.
   Maten volgen de hóógte van de banner (de breedte loopt op grote schermen ver uit),
   zodat de hoekgroepen op elk scherm dezelfde verhouding tot de foto houden. ── */
.season-hero { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.season-hero img { position: absolute; pointer-events: none; }
.sh-top-left { top: 0; left: 0; height: 36%; }
.sh-top-right { top: 0; right: 0; height: 30%; }
.sh-bottom-left { bottom: 0; left: 0; height: 30%; }
.sh-bottom-right { bottom: 0; right: 0; height: 40%; }
.sh-bottom { bottom: -1px; left: 0; width: 100%; height: 14%; object-fit: cover; object-position: center bottom; }
.sh-top { top: -1px; left: 0; width: 100%; height: 14%; object-fit: cover; object-position: center top; }
/* Eén complete overlay per feest (hele banner in één PNG, 2000 × 750, tekening tegen boven- en
   onderrand): gedraagt zich zoals de foto van de slider zelf (cover): houdt de hoogte en wordt
   op een smaller venster aan de zijkanten afgesneden, onderrand blijft onderaan. */
.sh-overlay { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* De welkomsttekst van de slider blijft vóór de decoratie staan */
.gi-slide-item > .season-hero { z-index: 1; }
.gi-slide-item > .gi-slide-content, [data-season-hero] .sp-hero__inner, [data-season-hero] .mo-hero__content { position: relative; z-index: 6; }
@media (max-width: 760px) {
    .sh-top-left, .sh-top-right { height: 26%; }
    .sh-bottom-left { display: none; }
    .sh-bottom-right { height: 32%; }
}

/* ── Minder beweging: enkel stilstaande decoratie en de groet ── */
@media (prefers-reduced-motion: reduce) {
    .season-particles > i, .season-particles > b, .season-garland i, .season-egg, .sp-bat svg { animation: none !important; }
    .sp-snow, .sp-pepernoot, .sp-heart, .sp-spark, .sp-bat, .sp-confetti { display: none; }
}
