/* Oprawa świąteczna (OP_Season, przełącznik: OVERPRINT → Święta i okazje). Ładowana tylko, gdy włączona. */
:root {
  --xmas-gold: #e8b64c; --xmas-red: #e2445c; --xmas-pine: #2bb673;
  --xmas-snow: rgba(255, 255, 255, 0.07); --xmas-wire: rgba(255, 255, 255, 0.22);
}
html[data-theme="light"] {
  --xmas-gold: #b7791f; --xmas-red: #c62f47; --xmas-pine: #1e7a4f;
  --xmas-snow: #ffffff; --xmas-wire: rgba(44, 20, 70, 0.28);
}

/* lampki pod menu (SVG rysuje xmas.js) */
.op-xmas-lights { position: absolute; left: 0; right: 0; top: 100%; height: 34px; margin-top: -3px; pointer-events: none; z-index: -1; overflow: hidden; }
.op-xmas-lights svg { display: block; }
.op-xmas-lights { transition: opacity .35s ease, transform .35s ease; }
.op-lights-off .op-xmas-lights { opacity: 0; transform: translateY(-10px); }
.op-xmas-lights .op-wire { fill: none; stroke: var(--xmas-wire); stroke-width: 1.2; }
.op-xmas-lights .op-cap { fill: var(--xmas-wire); }
.op-bulb { fill: currentColor; animation: op-twinkle 2.6s ease-in-out infinite alternate; }
.op-bulb .op-glow { opacity: .2; }
.op-bulb.c0 { color: var(--primary); }
.op-bulb.c1 { color: var(--teal); }
.op-bulb.c2 { color: var(--xmas-gold); }
.op-bulb.c3 { color: var(--xmas-red); }
@keyframes op-twinkle { 0% { opacity: .38; } 70% { opacity: 1; } 100% { opacity: .9; } }

/* śnieg w hero */
.op-xmas .hero > .container { position: relative; z-index: 1; }
.op-snow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* hero: gwiazdka przy nadtytule i drugi przycisk */
.op-xmas .hero .eyebrow::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--xmas-gold); -webkit-mask: var(--op-star) center / contain no-repeat; mask: var(--op-star) center / contain no-repeat; }
.op-xmas { --op-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.9L22 9.3l-5.8 4.6L18.2 21 12 17l-6.2 4 2-7.1L2 9.3l7.4-.4z'/%3E%3C/svg%3E"); }
.op-xmas .hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.op-xmas-btn { border-color: color-mix(in srgb, var(--xmas-gold) 55%, transparent); }
.op-xmas-btn:hover { border-color: var(--xmas-gold); color: var(--fg-strong); }

/* plakietka „Na Święta” na kartach */
.badge.op-badge-xmas, html[data-theme="light"] .badge.op-badge-xmas { display: inline-flex; align-items: center; gap: 5px; color: #fff; background: var(--xmas-red); border-color: transparent; }
.badge.op-badge-xmas svg { color: #ffe39a; flex: none; }

/* sekcje okazji i licznik: złota gwiazdka przy nadtytule */
.op-xmas #okazja-boze-narodzenie .eyebrow, .op-xmas #okazja-mikolajki .eyebrow, .op-xmas .op-countdown .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.op-xmas #okazja-boze-narodzenie .eyebrow::before, .op-xmas #okazja-mikolajki .eyebrow::before, .op-xmas .op-countdown .eyebrow::before { content: ""; width: 13px; height: 13px; background: var(--xmas-gold); -webkit-mask: var(--op-star) center / contain no-repeat; mask: var(--op-star) center / contain no-repeat; }

/* stopka: zaspa śniegu na górnej krawędzi */
.op-xmas footer { position: relative; }
.op-xmas footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px; background: var(--xmas-snow); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V10C20 4 34 3 52 8s30 7 48 1 36-8 56-3 30 8 48 4 26-6 36-4V16z'/%3E%3C/svg%3E") 0 0 / 240px 16px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V10C20 4 34 3 52 8s30 7 48 1 36-8 56-3 30 8 48 4 26-6 36-4V16z'/%3E%3C/svg%3E") 0 0 / 240px 16px repeat-x;
}
html[data-theme="light"].op-xmas footer::before, html[data-theme="light"] .op-xmas footer::before { filter: drop-shadow(0 -1px 0 rgba(44, 20, 70, 0.08)); }

@media (prefers-reduced-motion: reduce) {
  .op-bulb { animation: none; opacity: .9; }
}
