/* greendesign.lv — Ziemassvētku rotājumi (2026/27). Atsevišķs fails; neko esošo nemaina.
   Darbojas tikai, ja gdxmas.js pievieno klasi html.gd-xmas (līdz 8.01.2027). Lai noņemtu — izdzēsiet 3 rindas iestatījumos. */

/* --- lampiņu virtene zem zaļās izvēlnes joslas --- */
html.gd-xmas .gdx-garland{position:absolute;left:22px;right:22px;bottom:-21px;height:22px;pointer-events:none;z-index:4}
html.gd-xmas .gdx-garland svg{display:block;width:100%;height:22px;overflow:visible}
html.gd-xmas .gdx-wire{fill:none;stroke:#5f7350;stroke-width:1.1;opacity:.75}
html.gd-xmas .gdx-bulb{transform-box:fill-box;transform-origin:center top;animation:gdx-tw 2.6s ease-in-out infinite alternate}
html.gd-xmas .gdx-cap{fill:#6d7a5f}
@keyframes gdx-tw{0%{opacity:.62;filter:none}100%{opacity:1;filter:drop-shadow(0 0 3px currentColor)}}

/* --- trīs mazas bumbiņas, kas karājas galvenē (tikai datorā) --- */
html.gd-xmas .gdx-baubles{position:absolute;top:0;left:47%;width:90px;height:70px;pointer-events:none;z-index:3}
html.gd-xmas .gdx-bb{position:absolute;top:0;display:flex;flex-direction:column;align-items:center;transform-origin:50% 0;animation:gdx-sway 5.5s ease-in-out infinite alternate}
html.gd-xmas .gdx-bb i{display:block;width:1px;background:#b9c4b0}
html.gd-xmas .gdx-bb b{display:block;width:5px;height:4px;border-radius:1px 1px 0 0;background:#c9a24a}
html.gd-xmas .gdx-bb u{display:block;border-radius:50%;box-shadow:inset -3px -3px 0 rgba(0,0,0,.12),inset 2px 2px 0 rgba(255,255,255,.35)}
@keyframes gdx-sway{0%{transform:rotate(-4deg)}100%{transform:rotate(4deg)}}
@media (max-width:980px){html.gd-xmas .gdx-baubles{display:none}}

/* --- maza ilex zariņa ikona pie sadaļu virsrakstiem --- */
html.gd-xmas .gdx-holly,html.gd-xmas .content h1 .gdx-holly{display:inline-block;background:none;border:0;border-radius:0;float:none;width:26px;height:20px;margin:0 0 0 8px;vertical-align:-3px}

/* --- kājene: sniega mala un viegls sniegs --- */
html.gd-xmas #footer .gdx-snowcap{position:absolute;left:0;right:0;top:0;height:12px;pointer-events:none;z-index:2;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M0 0h120v3c-6 0-7 6-12 6s-5-5-11-5-6 7-12 7-5-6-11-6-5 4-10 4-6-6-12-6-5 6-11 6S36 3 30 3s-6 5-11 5S13 2 8 2 3 6 0 6z' fill='%23ffffff' fill-opacity='.92'/%3E%3C/svg%3E") repeat-x top left/120px 12px}
html.gd-xmas #footer .gdx-snow{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
html.gd-xmas #footer .gdx-snow s{position:absolute;top:-10px;display:block;border-radius:50%;background:#fff;text-decoration:none;animation:gdx-fall linear infinite}
@keyframes gdx-fall{0%{transform:translate3d(0,-10px,0)}100%{transform:translate3d(var(--dx,20px),var(--fh,600px),0)}}
html.gd-xmas #footer .footer-content{position:relative;z-index:3}

/* --- svētku sveiciens kājenē --- */
html.gd-xmas .gdx-greet{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px auto 14px;padding:0 16px;font-size:14px;font-weight:700;letter-spacing:.02em;color:#e8f2dc;text-align:center}
html.gd-xmas .gdx-greet svg{flex:none;width:16px;height:16px}

/* --- Ziemassvētku vecīša cepure uz pogas "uz augšu" --- */
html.gd-xmas .gd-top::after{content:"";position:absolute;top:-13px;left:-6px;width:30px;height:24px;transform:rotate(-20deg);pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M4 18C6 9 12 3 20 3c3 0 5 2 6 5l-4 2c-1-2-2-3-3-3-5 0-9 5-10 11z' fill='%23d6332f'/%3E%3Cpath d='M3 17h17a2.6 2.6 0 0 1 0 5.2H3a2.6 2.6 0 0 1 0-5.2z' fill='%23fff'/%3E%3Ccircle cx='25' cy='10' r='3.2' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat}

/* kustību samazināšana: viss paliek, bet bez animācijas */
@media (prefers-reduced-motion:reduce){html.gd-xmas .gdx-bulb,html.gd-xmas .gdx-bb{animation:none}html.gd-xmas .gdx-bulb{opacity:.9}html.gd-xmas #footer .gdx-snow{display:none}}
@media print{.gdx-garland,.gdx-baubles,.gdx-snow,.gdx-snowcap,.gdx-greet,.gdx-holly{display:none!important}}
