/**
 * Podxmas season FX — winter / christmas / newyear decorations (CSS layer).
 * Paired with assets/js/podxmas-christmas.js (falling-snow canvas renderer).
 *
 * Contract (run R-XMAS-UI-01, task T2):
 *  - Active only when <body> carries .podxmas-season plus one phase class
 *    (.podxmas-season-winter | -christmas | -newyear) added by the T1 PHP module.
 *  - Snow canvas markup is injected via wp_body_open:
 *      <canvas id="podxmas-snow-canvas" class="podxmas-snow-canvas" aria-hidden="true"></canvas>
 *  - Everything is scoped under body.podxmas-season* (canvas placement excepted —
 *    the node itself only exists while the season is active). No layout shifts:
 *    accent lines are inset box-shadows or absolutely positioned pseudo-elements.
 *  - Design tokens: --podxmas-* (podxmas-ui.css:7-20). TABS. Real selectors verified:
 *    .podxmas-macorner-topbar (inc/podxmas-macorner-shell.php:155),
 *    .podxmas-macorner-shell button tier (podxmas-macorner-shell.css:725-744),
 *    .footer-wrapper (Flatsome wrapper, already targeted by child CSS).
 */

/* -------------------------------------------------------------------------- */
/* Phase tokens                                                                */
/* -------------------------------------------------------------------------- */

body.podxmas-season-winter {
	--podxmas-season-accent: #5b8dd6;
	--podxmas-season-accent-soft: rgba(91, 141, 214, 0.14);
	--podxmas-season-highlight: #9ec5ff;
	--podxmas-season-strip: linear-gradient(90deg, #d6e7fa 0%, #9ec5ff 45%, #e8f2fd 75%, #b8d4f0 100%);
}

body.podxmas-season-christmas {
	--podxmas-season-accent: #c0392b;
	--podxmas-season-accent-soft: rgba(192, 57, 43, 0.12);
	--podxmas-season-highlight: #2e7d32;
	--podxmas-season-strip: linear-gradient(90deg, #c0392b 0%, #e74c3c 22%, #2e7d32 55%, #d4a537 100%);
}

body.podxmas-season-newyear {
	--podxmas-season-accent: #d4a537;
	--podxmas-season-accent-soft: rgba(212, 165, 55, 0.14);
	--podxmas-season-highlight: #f4d47c;
	--podxmas-season-strip: linear-gradient(90deg, #f4d47c 0%, #d4a537 55%, #a67c1e 100%);
}

/* -------------------------------------------------------------------------- */
/* Snow canvas — fixed overlay, paint-topmost (above the 100100 ATC dock),     */
/* never interactive                                                           */
/* -------------------------------------------------------------------------- */

.podxmas-snow-canvas {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 100150;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.podxmas-snow-canvas {
		display: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Topbar festive tint — soft accent wash + 3px accent edge (left)             */
/* Desktop only: the bar is hidden <=849px by podxmas-macorner-shell.css:46-48 */
/* The left edge is an inset box-shadow (visually a 3px border, zero reflow)   */
/* -------------------------------------------------------------------------- */

body.podxmas-season .podxmas-macorner-topbar {
	position: relative;
	background-color: var(--podxmas-season-accent-soft, #fff9f4);
	box-shadow: inset 3px 0 0 0 var(--podxmas-season-accent, #c0392b);
}

/* Festive strip — 3px gradient bar across the topbar's bottom edge */
body.podxmas-season .podxmas-macorner-topbar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--podxmas-season-strip, none);
	pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Subtle accent — primary CTA hover ring (2px, season accent)                 */
/* Same primary-button tier as podxmas-macorner-shell.css:725-730              */
/* -------------------------------------------------------------------------- */

body.podxmas-season.podxmas-macorner-shell .button.primary:not(.is-outline):hover,
body.podxmas-season.podxmas-macorner-shell button.primary:not(.is-outline):hover,
body.podxmas-season.podxmas-macorner-shell input[type="submit"]:not(.is-form):not(.is-outline):hover,
body.podxmas-season.podxmas-macorner-shell .single_add_to_cart_button.button.alt:hover,
body.podxmas-season.podxmas-macorner-shell .checkout-button:hover,
body.podxmas-season.podxmas-macorner-shell .woocommerce .button.checkout:hover {
	box-shadow: 0 0 0 2px var(--podxmas-season-accent, #c0392b) !important;
}

/* -------------------------------------------------------------------------- */
/* Subtle accent — 3px gradient top edge on the footer wrapper                 */
/* .footer-wrapper is Flatsome's footer element; the child already targets it  */
/* (podxmas-trend-landing.css:1407, podxmas-page-agent.css:374). Rendered as   */
/* an absolutely positioned overlay: no layout shift. Flatsome parent CSS has  */
/* no ::before/::after on .footer-wrapper (grep-verified), so this is safe.    */
/* -------------------------------------------------------------------------- */

body.podxmas-season .footer-wrapper {
	position: relative;
}

body.podxmas-season .footer-wrapper::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--podxmas-season-strip, none);
	pointer-events: none;
	z-index: 1;
}
