/* Christmas look ("Elegant & light"): loaded only while catchontv_season() is 'christmas'.
   The normal orange site plus a few festive touches: light snow, Santa hat, red sale bar, gold best card. */

body.is-xmas {
  --xf-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.1 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z'/%3E%3C/svg%3E");
  --xf-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.5 3.5 10.5 12 12-8.5 1.5-11.2 5.5-12 12-.8-6.5-3.5-10.5-12-12C8.5 10.5 11.2 6.5 12 0z'/%3E%3C/svg%3E");
}

/* Snow canvas (assets/js/christmas-snow.js) */
.xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 900; pointer-events: none; }

/* Top sale bar: red with a gold tag  */
@keyframes xmas-snow-a {
  from { background-position: 0 0, 35px 60px, 70px 20px, 20px 110px, 95px 150px; }
  to { background-position: 40px 90px, -25px 200px, 150px 210px, -40px 360px, 215px 480px; }
}
body.is-xmas .top-banner.is-sale.is-xmas { position: relative; overflow: hidden; background: linear-gradient(90deg,#7F1D1D,#B91C1C 50%,#7F1D1D); color: #FEF2F2; }
body.is-xmas .top-banner.is-sale.is-xmas::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,1) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.85) 0 2.5px, transparent 3.5px),
    radial-gradient(circle, rgba(255,255,255,.78) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(255,255,255,.7) 0 3.5px, transparent 4.5px);
  background-size: 90px 90px, 140px 140px, 190px 190px, 250px 250px, 330px 330px;
  opacity: .45; animation: xmas-snow-a 30s linear infinite;
}
body.is-xmas .top-banner.is-sale.is-xmas > * { position: relative; z-index: 1; }
body.is-xmas .top-banner.is-sale.is-xmas .tb-sale-text { color: #FEF2F2; }
body.is-xmas .top-banner.is-sale.is-xmas .tb-sale-link { color: #FDE68A; }
body.is-xmas .top-banner.is-sale.is-xmas .tb-sale-tag { background: linear-gradient(135deg,#FDE68A,#F59E0B); color: #7F1D1D; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); display: inline-flex; align-items: center; gap: 6px; }
body.is-xmas .top-banner.is-sale.is-xmas .tb-sale-tag svg { flex: none; }
body.is-xmas .top-banner.is-sale.is-xmas .tb-sale-count b { color: #FDE68A; }
@media (prefers-reduced-motion: reduce) { body.is-xmas .top-banner.is-sale.is-xmas::after { animation: none; } }

/* Santa hat on logos */
body.is-xmas .header .logo,
body.is-xmas .footer .logo,
body.is-xmas.catchontv-order .order-top > a:first-child { position: relative; }
body.is-xmas .header .logo::before,
body.is-xmas .footer .logo::before,
body.is-xmas.catchontv-order .order-top > a:first-child::before {
  content: ""; position: absolute; left: 2px; top: -9px; width: 30px; height: 28px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='56' viewBox='0 0 60 56'%3E%3Cpath d='M9 42Q13 10 44 7Q38 24 51 42Z' fill='%23DC2626'/%3E%3Cpath d='M30 12Q36 26 33 42H51Q38 26 44 7Z' fill='%23B91C1C' fill-opacity='.55'/%3E%3Crect x='4' y='36' width='52' height='13' rx='6.5' fill='%23fff'/%3E%3Ccircle cx='46' cy='8' r='7' fill='%23fff'/%3E%3Cpath d='M4 43H56' stroke='%23E2E8F0' stroke-width='1' opacity='.7'/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(-18deg); transform-origin: 50% 80%;
}

body.is-xmas.catchontv-order .order-top > a:first-child { display: inline-block; line-height: 0; }
body.is-xmas .footer .logo { display: inline-block; line-height: 0; }

/* Sale tag: the only red on the cards */
body.is-xmas .oc-sale-tag { background: #B91C1C; color: #fff; }
body.is-xmas .oc-plan-badge { z-index: 3; }

/* 12-month best card: normal white card, gold border + glow, gold badge with a star and a sparkle */
body.is-xmas .oc-plan.is-best {
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg,#F5C451,#D99A1E) border-box;
  box-shadow: 0 40px 80px -28px rgba(217,154,30,.5), 0 0 0 8px rgba(245,196,81,.10);
}
body.is-xmas .oc-plan-badge { background: linear-gradient(135deg,#F8D878,#F5C451 50%,#D99A1E); color: #3B2A06; box-shadow: 0 10px 22px -8px rgba(217,154,30,.65); }
body.is-xmas .oc-plan.is-best .oc-plan-badge::before {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 7px; vertical-align: -1px; background: currentColor;
  -webkit-mask: var(--xf-star) center / contain no-repeat; mask: var(--xf-star) center / contain no-repeat;
}
body.is-xmas .oc-plan.is-best .oc-plan-badge::after {
  content: ""; position: absolute; top: -10px; right: -8px; width: 16px; height: 16px; background: #F5C451; pointer-events: none;
  -webkit-mask: var(--xf-sparkle) center / contain no-repeat; mask: var(--xf-sparkle) center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(245,196,81,.8)); animation: xmas-twinkle 3.2s ease-in-out infinite;
}
@keyframes xmas-twinkle { 0%,100% { opacity: .55; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { body.is-xmas .oc-plan.is-best .oc-plan-badge::after { animation: none; opacity: 1; } }

/* Christmas hero above the plan cards: Santa + sale headline */
.xh { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 36px); max-width: 820px; margin: 0 auto clamp(18px, 2.5vw, 28px); text-align: left; }
.xh-art { flex: none; width: clamp(150px, 20vw, 210px); }
.xh-santa { display: block; width: 100%; height: auto; overflow: visible; }
.xh-copy { min-width: 0; }
.xh-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #B91C1C; color: #fff; border: 1.5px solid #F5C451; font-size: .74rem; font-weight: 800; letter-spacing: .12em; line-height: 1; margin-bottom: 14px; }
.xh-title { margin: 0 0 10px; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.15; color: var(--ink, #0F172A); letter-spacing: -.01em; }
.xh-title span { color: #B91C1C; white-space: nowrap; }
.xh-sub { margin: 0; font-size: clamp(.98rem, 1.3vw, 1.1rem); font-weight: 600; color: #A16207; line-height: 1.5; text-wrap: balance; }
.xh-santa .xh-body { animation: xh-float 3.6s ease-in-out infinite; }
.xh-santa .xh-sign { transform-box: view-box; transform-origin: 79px 150px; animation: xh-wobble 2.8s ease-in-out infinite; }
.xh-santa .xh-twinkle { animation: xh-tw 2.6s ease-in-out infinite; }
.xh-santa .xh-twinkle--b { animation-delay: -1.3s; }
@keyframes xh-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes xh-wobble { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes xh-tw { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .xh-santa .xh-body, .xh-santa .xh-sign, .xh-santa .xh-twinkle { animation: none; } .xh-santa .xh-twinkle { opacity: 1; } }
@media (max-width: 640px) {
  .xh { flex-direction: column; text-align: center; gap: 6px; }
  .xh-art { width: 150px; }
  .xh-title { text-wrap: balance; }
}
