/* =========================================
   KALĖDINĖ PUOŠYBA (įjungiama per includes/kaledos.php)
   Visus elementus sukuria /assets/kaledos.js
   ========================================= */

/* Logotipą JS apgaubia .xmas-logo-fx: jis tirpsta/atsiranda, o nuoroda lieka paspaudžiama.
   block (ne inline-block) – kad eilutės aukštis nepadidintų meniu */
.logo a {
    display: block;
}

.xmas-logo-fx {
    display: block;
    position: relative;
}

/* Kalėdų Senelio kepurė ant „H“ */
.xmas-hat {
    position: absolute;
    left: -4%;
    top: -14%;
    width: 15%;
    height: auto;
    transform: rotate(-16deg);
    transform-origin: 70% 90%;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

/* Auksinis blizgesys, perbėgantis per raides (kaukė – pats logotipas) */
.xmas-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 226, 150, 0.95) 50%, transparent 65%) no-repeat;
    background-size: 250% 100%;
    background-position: 130% 0;
    -webkit-mask: var(--xmas-logo) center / contain no-repeat;
            mask: var(--xmas-logo) center / contain no-repeat;
    opacity: 0;
}

/* Sluoksnis rogėms ir žvaigždelėms: per visą meniu plotį, šiek tiek žemiau jo */
.xmas-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% + 100px);
    overflow: hidden;
    pointer-events: none;
    z-index: 5; /* virš logotipo ir nuorodų, bet po mobiliu meniu (9999) */
}

.xmas-sleigh {
    position: absolute;
    left: 0;
    top: 0;
    width: 230px;
    will-change: transform;
}

.xmas-sleigh svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.xmas-spark {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: #ffe39a;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 3px rgba(255, 200, 80, 0.9));
}

.xmas-spark.dot {
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    clip-path: none;
    background: #fff4d0;
    box-shadow: 0 0 6px 2px rgba(255, 210, 100, 0.7);
    filter: none;
}

/* Lemputių girlianda per visą meniu viršų */
.xmas-lights {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 30px;
    pointer-events: none;
    z-index: 4;
}

.xmas-lights svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.xmas-bulb {
    animation: xmasTwinkle 2.4s ease-in-out infinite;
}

.xmas-bulb.c1 { fill: #ff3b4e; filter: drop-shadow(0 0 4px rgba(255, 59, 78, 0.9)); }
.xmas-bulb.c2 { fill: #ffd36b; filter: drop-shadow(0 0 4px rgba(255, 211, 107, 0.9)); }
.xmas-bulb.c3 { fill: #3ddc84; filter: drop-shadow(0 0 4px rgba(61, 220, 132, 0.9)); }
.xmas-bulb.c4 { fill: #fff3d6; filter: drop-shadow(0 0 4px rgba(255, 243, 214, 0.9)); }

@keyframes xmasTwinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

/* Sniegas virš viršutinės nuotraukos */
.xmas-snow {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    pointer-events: none;
    z-index: 900; /* po meniu (1000), virš nuotraukos ir antraštės */
}

@media (max-width: 992px) {
    .xmas-sleigh { width: 180px; }
}

@media (max-width: 480px) {
    .xmas-sleigh { width: 150px; }
    .xmas-lights { height: 24px; }
}

/* Kas išjungęs animacijas – lieka tik kepurė ir nemirksinčios lemputės */
@media (prefers-reduced-motion: reduce) {
    .xmas-bulb { animation: none; }
}
