/**
 * Seasonal colour skins + effect layer for Football Heaven.
 * Loaded only when a seasonal theme is active (see jscript/jscript_zz_seasonal_theme.php).
 * Each theme sets a few colours; the shared rules at the bottom apply them.
 *   --s-nav      top navigation bar
 *   --s-head     centre box headings
 *   --s-accent   page headings, side box titles, promo bar highlight
 *   --s-bar      promo bar background     --s-bar-text  promo bar text
 */
.season-summer       { --s-nav:#0a8fb5; --s-head:#0b6f8c; --s-accent:#f39c12; --s-bar:linear-gradient(90deg,#ffb300,#ff7043); --s-bar-text:#3b1d00; }
.season-christmas    { --s-nav:#b3121f; --s-head:#1d6b34; --s-accent:#c8102e; --s-bar:linear-gradient(90deg,#1d6b34,#b3121f); --s-bar-text:#fff; }
.season-boxing_day   { --s-nav:#c8102e; --s-head:#8a0b1f; --s-accent:#c8102e; --s-bar:#ffd400; --s-bar-text:#8a0b1f; }
.season-new_year     { --s-nav:#1a1f4d; --s-head:#1a1f4d; --s-accent:#b8860b; --s-bar:linear-gradient(90deg,#1a1f4d,#5b2a86); --s-bar-text:#ffe9a8; }
.season-valentines   { --s-nav:#c2185b; --s-head:#8e1145; --s-accent:#d81b60; --s-bar:linear-gradient(90deg,#f8bbd0,#f48fb1); --s-bar-text:#6a0f35; }
.season-easter       { --s-nav:#7e57c2; --s-head:#5e35b1; --s-accent:#43a047; --s-bar:linear-gradient(90deg,#fff59d,#b2ebf2,#e1bee7); --s-bar-text:#4a2a7a; }
.season-mothers_day  { --s-nav:#ad1457; --s-head:#7b1f4b; --s-accent:#c2185b; --s-bar:linear-gradient(90deg,#fce4ec,#f8bbd0); --s-bar-text:#7b1f4b; }
.season-eofy         { --s-nav:#0d47a1; --s-head:#0d3a7a; --s-accent:#e53935; --s-bar:#e53935; --s-bar-text:#fff; }
.season-new_season   { --s-nav:#1b5e20; --s-head:#2e7d32; --s-accent:#1b8838; --s-bar:repeating-linear-gradient(90deg,#2e7d32 0 60px,#388e3c 60px 120px); --s-bar-text:#fff; }
.season-fathers_day  { --s-nav:#13294b; --s-head:#13294b; --s-accent:#b8860b; --s-bar:linear-gradient(90deg,#13294b,#1f3f73); --s-bar-text:#ffd76a; }
.season-spring       { --s-nav:#6a4c9c; --s-head:#5b3f8a; --s-accent:#7b5bb5; --s-bar:linear-gradient(90deg,#d1c4e9,#b39ddb); --s-bar-text:#3a2466; }
.season-halloween    { --s-nav:#1a1a1a; --s-head:#2b1a3a; --s-accent:#e8650a; --s-bar:linear-gradient(90deg,#1a1a1a,#3b1f4f); --s-bar-text:#ff9a3c; }
.season-black_friday { --s-nav:#000; --s-head:#111; --s-accent:#b8860b; --s-bar:#000; --s-bar-text:#ffd700; }

/* ---- apply the colours ------------------------------------------------------------------- */
[class*="season-"] #navMainWrapper nav { background-color: var(--s-nav) !important; transition: background-color .4s; }
[class*="season-"] .centerBoxHeading { background-color: var(--s-head) !important; color: #fff !important; }
[class*="season-"] .pageHeading,
[class*="season-"] .leftBoxHeading,
[class*="season-"] .rightBoxHeading { color: var(--s-accent) !important; }

/* slim promo bar, placed by seasonal.js under the logo row */
.season-promo {
  display: block; margin: 0 0 .75rem; padding: .45rem 1rem; border-radius: .35rem;
  background: var(--s-bar); color: var(--s-bar-text) !important; text-align: center;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-decoration: none !important;
  position: relative; overflow: hidden;
}
a.season-promo:hover, a.season-promo:focus { filter: brightness(1.07); color: var(--s-bar-text) !important; }
a.season-promo::after { content: ' \203A'; font-size: 1.15em; }
.season-promo .s-ico { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.25em; margin: 0 .4em; }

/* small corner ribbon on the logo for sale themes */
.season-ribbon {
  position: absolute; top: 6px; left: -4px; z-index: 2; padding: 2px 10px; border-radius: 0 3px 3px 0;
  background: var(--s-accent); color: #fff; font: 700 11px/1.5 Montserrat, Arial, sans-serif;
  letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 4px rgba(0,0,0,.25); pointer-events: none;
}
.season-black_friday .season-ribbon { color: #000; background: #ffd700; }

/* ---- effect layer -------------------------------------------------------------------------- */
.season-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1020; } /* below the fixed navbar (1030) and modals */
.season-layer svg { position: absolute; display: block; }
.s-pause .season-layer *, .s-pause .season-lights i { animation-play-state: paused !important; }

/* falling (snow, petals, leaves, eggs, confetti) */
.s-fall { top: -40px; animation: s-fall linear infinite; will-change: transform; }
@keyframes s-fall {
  0%   { transform: translate3d(0,-40px,0) rotate(0deg); }
  50%  { transform: translate3d(var(--sway,30px),50vh,0) rotate(calc(var(--spin,180deg) / 2)); }
  100% { transform: translate3d(0,105vh,0) rotate(var(--spin,180deg)); }
}
/* rising (hearts, balloons) */
.s-rise { bottom: -40px; animation: s-rise linear infinite; will-change: transform; }
@keyframes s-rise {
  0%   { transform: translate3d(0,0,0) scale(.8); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate3d(var(--sway,25px),-55vh,0) scale(1); }
  100% { transform: translate3d(0,-110vh,0) scale(1.1); opacity: 0; }
}
/* flying across (bats, footballs) */
.s-fly { left: -60px; animation: s-fly linear infinite; will-change: transform; }
@keyframes s-fly {
  0%   { transform: translate3d(0,0,0) scale(var(--s,1)); }
  25%  { transform: translate3d(28vw,-40px,0) scale(var(--s,1)); }
  50%  { transform: translate3d(55vw,20px,0) scale(var(--s,1)); }
  75%  { transform: translate3d(80vw,-30px,0) scale(var(--s,1)); }
  100% { transform: translate3d(calc(100vw + 120px),0,0) scale(var(--s,1)); }
}
.s-fly .s-wing { transform-origin: 50% 50%; animation: s-flap .25s ease-in-out infinite alternate; }
@keyframes s-flap { to { transform: scaleY(.35); } }

/* twinkle (stars, fireworks sparkles) */
.s-twinkle { animation: s-twinkle ease-in-out infinite; }
@keyframes s-twinkle { 0%,100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }

/* fireworks */
.s-burst { width: 6px; height: 6px; border-radius: 50%; position: absolute; animation: s-burst 2.6s ease-out infinite; }
@keyframes s-burst {
  0%   { box-shadow: 0 0 0 0 transparent; opacity: 0; transform: scale(.2); }
  10%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { box-shadow: var(--burst); opacity: 0; transform: scale(1); }
}

/* bouncing ball in the bottom-left corner (live chat sits bottom-right) */
.s-bouncer { position: fixed; left: 18px; bottom: 14px; width: 46px; height: 70px; pointer-events: none; z-index: 1020; }
.s-bouncer svg { position: absolute; left: 4px; bottom: 6px; width: 38px; height: 38px; animation: s-bounce 1.1s cubic-bezier(.3,0,.7,1) infinite alternate; }
.s-bouncer .s-shadow { position: absolute; left: 8px; bottom: 0; width: 30px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.25); animation: s-shadow 1.1s cubic-bezier(.3,0,.7,1) infinite alternate; }
@keyframes s-bounce { 0% { transform: translateY(-28px) rotate(0deg); } 100% { transform: translateY(0) rotate(200deg); } }
@keyframes s-shadow { 0% { transform: scaleX(.55); opacity: .4; } 100% { transform: scaleX(1); opacity: 1; } }

/* sun glow (summer) */
.s-sun { position: fixed; top: -90px; right: -90px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none; z-index: 1019;
  background: radial-gradient(circle, rgba(255,214,0,.55) 0%, rgba(255,179,0,.25) 45%, rgba(255,179,0,0) 70%); animation: s-glow 4s ease-in-out infinite alternate; }
@keyframes s-glow { to { transform: scale(1.12); opacity: .8; } }

/* Christmas light string under the navbar */
.season-lights { position: absolute; left: 0; right: 0; bottom: -10px; height: 14px; display: flex; justify-content: space-around; pointer-events: none; z-index: 1; }
.season-lights::before { content: ''; position: absolute; left: 0; right: 0; top: 0; border-top: 2px solid #234; border-radius: 50%; opacity: .5; }
.season-lights i { width: 8px; height: 12px; border-radius: 50%; margin-top: 2px; animation: s-blink 1.6s ease-in-out infinite; }
.season-lights i:nth-child(4n+1) { background: #ff3b3b; }
.season-lights i:nth-child(4n+2) { background: #ffd400; animation-delay: .4s; }
.season-lights i:nth-child(4n+3) { background: #2ecc71; animation-delay: .8s; }
.season-lights i:nth-child(4n)   { background: #3ba7ff; animation-delay: 1.2s; }
@keyframes s-blink { 0%,100% { opacity: 1; box-shadow: 0 0 8px currentColor; } 50% { opacity: .35; box-shadow: none; } }

/* hat on the logo (Christmas) */
.season-hat { position: absolute; width: 46px; height: 40px; top: -14px; left: -10px; transform: rotate(-22deg); pointer-events: none; z-index: 2; }

/* ---- header flyers (sleigh, banner plane, kangaroo, bunny, butterflies, witch) ------------- */
.s-lane { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.s-flyer { position: absolute; left: 0; top: 8px; animation: s-cross 20s linear infinite both; will-change: transform; }
@keyframes s-cross {
  0%   { transform: translateX(var(--from, -300px)); }
  60%  { transform: translateX(var(--to, 100vw)); }
  100% { transform: translateX(var(--to, 100vw)); }
}
.s-flyer svg { display: block; overflow: visible; filter: drop-shadow(0 3px 3px rgba(0,0,0,.18)); }
.s-bob  { animation: s-bob 1.8s ease-in-out infinite alternate; }
@keyframes s-bob { from { transform: translateY(-5px) rotate(-1.5deg); } to { transform: translateY(6px) rotate(1.5deg); } }
.s-wave { animation: s-wave 1.3s ease-in-out infinite alternate; }
@keyframes s-wave { from { transform: translateY(-14px) rotate(-8deg); } to { transform: translateY(14px) rotate(8deg); } }
.s-hop  { animation: s-hop .75s infinite; transform-origin: 50% 100%; }
@keyframes s-hop {
  0%   { transform: translateY(0) scaleY(.92); animation-timing-function: ease-out; }
  45%  { transform: translateY(-28px) rotate(-6deg) scaleY(1.03); animation-timing-function: ease-in; }
  90%  { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(0) scaleY(.92); }
}
.s-prop, .s-flutter, .s-wl, .s-wr, .s-flag, .s-legs, .s-wave-arm { transform-box: fill-box; }
.s-prop    { transform-origin: center; animation: s-prop .1s linear infinite alternate; }
@keyframes s-prop { to { transform: scaleY(.15); } }
.s-flutter { transform-origin: center; animation: s-flutter .22s ease-in-out infinite alternate; }
@keyframes s-flutter { to { transform: scaleX(.25); } }
.s-wl { transform-origin: 100% 100%; animation: s-wl .3s ease-in-out infinite alternate; }
.s-wr { transform-origin: 0% 100%;   animation: s-wr .3s ease-in-out infinite alternate; }
@keyframes s-wl { to { transform: rotate(28deg); } }
@keyframes s-wr { to { transform: rotate(-28deg); } }
.s-flag { transform-origin: 100% 50%; animation: s-flag .6s ease-in-out infinite alternate; }
@keyframes s-flag { from { transform: skewY(2.5deg); } to { transform: skewY(-2.5deg); } }
.s-legs { transform-origin: 50% 0; animation: s-legs .35s ease-in-out infinite alternate; }
@keyframes s-legs { to { transform: scaleX(.6); } }
.s-wave-arm { transform-origin: 0% 100%; animation: s-arm .5s ease-in-out infinite alternate; }
@keyframes s-arm { to { transform: rotate(-25deg); } }
.s-nose  { animation: s-nose 1s ease-in-out infinite alternate; }
@keyframes s-nose { to { opacity: .45; } }
.s-spark { animation: s-twinkle 1.2s ease-in-out infinite; }
.s-pause .s-lane * { animation-play-state: paused !important; }

/* ---- calmer / no motion --------------------------------------------------------------------- */
.season-fx-subtle .season-layer { opacity: .7; }
.season-fx-off .s-lane, .season-fx-off .season-layer, .season-fx-off .s-bouncer, .season-fx-off .s-sun, .season-fx-off .season-lights { display: none !important; }
@media (max-width: 767.98px) {
  .s-sun { width: 160px; height: 160px; top: -60px; right: -60px; }
  .s-bouncer { transform: scale(.75); transform-origin: left bottom; }
  .season-promo { font-size: .85rem; padding: .4rem .6rem; }
  .season-hat { width: 34px; height: 30px; top: -10px; }
  .season-ribbon { display: none; } /* the logo is small on phones; the promo bar carries the message */
}
@media print { .s-lane, .season-layer, .s-bouncer, .s-sun, .season-lights, .season-promo, .season-ribbon, .season-hat { display: none !important; } }
