/* Velocity — sezonska zimska tema (26.11.2026).
   Učitava se SAMO dok postoji storage/seasonal-winter.flag (vc_winter_on() u includes/functions.php).
   Elemente (.vcw-*) ubacuje assets/js/vc-winter-2026.js; ovdje nema izmjena postojećeg dizajna osim dekoracije. */

/* ---- snijeg (canvas) ---- */
#vcw-snow{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1300}

/* ---- lampice ispod headera ---- */
.v9-topbar{overflow:visible!important}
.vcw-lights{position:absolute;left:0;right:0;top:100%;height:26px;pointer-events:none;z-index:2;overflow:hidden}
.vcw-lights svg.vcw-wire{position:absolute;left:0;top:0;width:100%;height:26px}
.vcw-lights svg.vcw-wire path{fill:none;stroke:rgba(150,180,205,.38);stroke-width:1.2}
.vcw-bulb{position:absolute;width:7px;height:11px;margin-left:-3.5px;border-radius:50% 50% 48% 48%/58% 58% 42% 42%;
  background:var(--c);box-shadow:0 0 6px 1px var(--c),0 0 16px 2px color-mix(in srgb,var(--c) 45%,transparent);
  animation:vcw-twinkle var(--d,2.4s) ease-in-out var(--dl,0s) infinite}
.vcw-bulb::before{content:"";position:absolute;left:1.5px;top:-3px;width:4px;height:4px;border-radius:1px;background:#3b4d5c}
@keyframes vcw-twinkle{0%,100%{opacity:1;filter:brightness(1.1)}45%{opacity:.35;filter:brightness(.6)}60%{opacity:.9}}

/* ---- kapa na V logu ---- */
.v9-brand{position:relative}
.vcw-hat{position:absolute;left:19px;top:-7px;width:30px;height:26px;pointer-events:none;transform:rotate(14deg);
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.45));z-index:2}
@media (max-width:1380px){.vcw-hat{left:16px;top:-6px;width:27px;height:23px}}
@media (max-width:520px){.vcw-hat{left:13px;top:-5px;width:24px;height:21px}}

/* ---- snježni nanos na vrhu footera ---- */
.v9-footer{position:relative}
.v9-footer::before{content:"";position:absolute;left:0;right:0;top:-13px;height:14px;pointer-events:none;z-index:1;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='14' viewBox='0 0 240 14'%3E%3Cpath d='M0 8C20 8 30 3 60 4S100 10 130 8S180 2 205 5S230 8 240 8V14H0z' fill='%23e8f3ff' fill-opacity='.92'/%3E%3Cpath d='M0 12C30 12 50 10 80 11S140 13 170 11S220 12 240 12V14H0z' fill='%23bcd7ef' fill-opacity='.55'/%3E%3C/svg%3E") repeat-x left bottom/240px 14px;
  filter:drop-shadow(0 -2px 6px rgba(160,210,255,.25))}

/* ---- dugme za snijeg ---- */
.vcw-toggle{position:fixed;left:16px;bottom:16px;z-index:1301;width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;color:#cfe9ff;
  background:rgba(4,18,30,.82);border:1px solid rgba(110,170,220,.35);box-shadow:0 6px 18px rgba(0,0,0,.35);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transition:transform .2s,opacity .2s,color .2s}
.vcw-toggle:hover{transform:scale(1.08);color:#fff}
.vcw-toggle:focus-visible{outline:2px solid #22a8ff;outline-offset:2px}
.vcw-toggle[aria-pressed="false"]{opacity:.55;color:#7f97ab}
.vcw-toggle svg{width:20px;height:20px}
.vcw-toggle[aria-pressed="true"] svg{animation:vcw-spin 9s linear infinite}
@keyframes vcw-spin{to{transform:rotate(360deg)}}

@media (prefers-reduced-motion:reduce){
  .vcw-bulb,.vcw-toggle svg{animation:none!important}
}
