/* Winter layer for All I Have. Loads after everything else; delete this file and the two
   enqueue lines in functions.php to go back to the normal look. */

:root {
  --snow: #ffffff;
  --snow-shade: #dbe8f5;
  --ice: #8fbfe6;
  --ice-deep: #4f86b8;
  --winter-tint: #f3f8fd;
}

/* ---- Icy colour accents (only the accent tokens, your layout settings stay) ---- */
:root {
  --accent: var(--ice-deep);
  --yellow: #dcecfa;
  --pink: var(--ice);
  --mist: #eaf3fb;
  --nav-1: #8fbfe6;
  --nav-2: #c9def2;
  --nav-3: #ffffff;
  --nav-4: #a9c8e6;
  --nav-5: #d7e3ee;
}
.jlo-look-gold { --g-gold: #5b8fbd; }
body { background-image: linear-gradient(180deg, var(--winter-tint) 0, transparent 520px); background-repeat: no-repeat; }

/* Frosted line under the menu bar */
.jlo-header { box-shadow: 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(79,134,184,.18); }

/* ---- Snow cap on top of every sidebar box ---- */
.jlo-sidebar { padding-top: 34px; }
.jlo-sidebar > .widget { position: relative; }
.jlo-snowcap {
  position: absolute; left: -6px; right: -6px; top: -17px; height: 34px;
  z-index: 6; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 34' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v12c-6 0-8 4-12 4s-6-5-11-5-7 14-13 14-7-10-12-10-6 8-11 8-6-12-12-12-7 7-12 7-6-9-12-9-7 15-13 15-7-11-12-11-7 5-12 5-6-8-11-8-7 10-12 10-6-13-12-13-7 6-11 6-6-4-12-4V0z' fill='%23fff'/%3E%3Cpath d='M0 12c6 0 8 4 12 4s6-5 11-5 7 14 13 14 7-10 12-10 6 8 11 8 6-12 12-12 7 7 12 7 6-9 12-9 7 15 13 15 7-11 12-11 7 5 12 5 6-8 11-8 7 10 12 10 6-13 12-13 7 6 11 6 6-4 12-4' fill='none' stroke='%23c9ddef' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x left top / 240px 34px;
  filter: drop-shadow(0 2px 2px rgba(79,134,184,.28));
}
/* Little snow mounds on top of the cap for a fluffy edge */
.jlo-snowcap::before, .jlo-snowcap::after {
  content: ""; position: absolute; top: -7px; height: 14px; background: #fff; border-radius: 50% 50% 0 0;
}
.jlo-snowcap::before { left: 12%; width: 22%; }
.jlo-snowcap::after { left: 58%; width: 30%; height: 11px; top: -5px; }

/* Icy frost on the boxes themselves */
.jlo-box, .jlo-sidebar > .widget:not([class*="jlo-widget--"]) {
  box-shadow: 0 0 0 1px rgba(143,191,230,.35), 0 8px 22px rgba(79,134,184,.14);
}

/* ---- Falling snow ---- */
.jlo-snowfall {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; width: 100%; height: 100%;
}
.jlo-still .jlo-snowfall { display: none; }
@media (prefers-reduced-motion: reduce) { .jlo-snowfall { display: none; } }

/* ---- Footer gets a snowdrift ---- */
.jlo-footer, footer.jlo-footer { position: relative; }
.jlo-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; pointer-events: none;
  background: radial-gradient(18px 14px at 12px 24px, #fff 98%, transparent) repeat-x 0 0 / 36px 24px;
  filter: drop-shadow(0 -1px 1px rgba(79,134,184,.25));
}
