/* CadHelp - tema de Crăciun, peste „Ruloul”. Se încarcă doar în perioada din base.html (1 decembrie - 7 ianuarie) sau
   cu ?tema=craciun; nu schimbă nimic din ruloul.css, deci după sărbători site-ul revine singur la forma obișnuită. */

/* ninsoarea cade pe planșa albastră, în spatele foilor (z-index -1): pe hârtie nu se vede, textul rămâne curat.
   Două straturi, fiecare cu modelul lui care se repetă; coboară exact o dată modelul, ca bucla să nu aibă cusătură. */
body.craciun::before, body.craciun::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none;
}
body.craciun::before {
  height: calc(100vh + 260px); margin-top: -260px;
  background:
    radial-gradient(circle at 30px 40px, rgba(255, 255, 255, 0.8) 1.4px, transparent 2.2px),
    radial-gradient(circle at 150px 90px, rgba(255, 255, 255, 0.6) 1.1px, transparent 1.8px),
    radial-gradient(circle at 90px 170px, rgba(255, 255, 255, 0.75) 1.6px, transparent 2.4px),
    radial-gradient(circle at 210px 220px, rgba(255, 255, 255, 0.55) 1px, transparent 1.7px),
    radial-gradient(circle at 230px 20px, rgba(255, 255, 255, 0.7) 1.3px, transparent 2px);
  background-size: 260px 260px;
}
body.craciun::after {
  height: calc(100vh + 410px); margin-top: -410px;
  background:
    radial-gradient(circle at 70px 60px, rgba(255, 255, 255, 0.85) 2.2px, transparent 3.2px),
    radial-gradient(circle at 300px 160px, rgba(255, 255, 255, 0.7) 1.9px, transparent 2.9px),
    radial-gradient(circle at 180px 330px, rgba(255, 255, 255, 0.8) 2.5px, transparent 3.6px),
    radial-gradient(circle at 380px 280px, rgba(255, 255, 255, 0.6) 1.8px, transparent 2.7px);
  background-size: 410px 410px;
}
.js-tipar body.craciun::before { animation: ninge-mic 26s linear infinite; will-change: transform; }
.js-tipar body.craciun::after { animation: ninge-mare 34s linear infinite; will-change: transform; }
@keyframes ninge-mic { to { transform: translateY(260px); } }
@keyframes ninge-mare { to { transform: translateY(410px); } }

/* căciula de Moș Crăciun pe logo */
body.craciun .plotter__marca { position: relative; }
.caciula { position: absolute; left: -10px; top: -15px; width: 30px; height: auto; transform: rotate(-17deg); pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(4, 20, 36, 0.35)); transition: transform var(--d-mediu) var(--e-arc); }
.plotter__marca:hover .caciula { transform: rotate(-24deg) translate(-2px, -1px); }
.plotter.compact .caciula { top: -12px; width: 27px; }

/* ghirlanda de luminițe atârnă sub bara plotterului; becurile se aprind pe rând, în două grupe */
.ghirlanda { position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; z-index: 1; }
.ghirlanda::before, .ghirlanda::after { content: ""; position: absolute; inset: 0; background-repeat: repeat-x; background-size: 132px 18px; }
.ghirlanda::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='18'%3E%3Cpath d='M0 1.5Q33 8 66 1.5T132 1.5' fill='none' stroke='%230A2E50' stroke-width='1.6'/%3E%3Crect x='14' y='4' width='4' height='3' rx='1' fill='%23234B70'/%3E%3Cellipse cx='16' cy='11' rx='3.6' ry='4.8' fill='%23E2403C'/%3E%3Crect x='80' y='4' width='4' height='3' rx='1' fill='%23234B70'/%3E%3Cellipse cx='82' cy='11' rx='3.6' ry='4.8' fill='%23FFB24D'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 3px rgba(255, 178, 77, 0.55));
}
.ghirlanda::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='18'%3E%3Crect x='47' y='4' width='4' height='3' rx='1' fill='%23234B70'/%3E%3Cellipse cx='49' cy='11' rx='3.6' ry='4.8' fill='%2346B35A'/%3E%3Crect x='113' y='4' width='4' height='3' rx='1' fill='%23234B70'/%3E%3Cellipse cx='115' cy='11' rx='3.6' ry='4.8' fill='%23BFE3FF'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 3px rgba(156, 203, 242, 0.6));
}
.js-tipar .ghirlanda::before { animation: becuri 2.4s ease-in-out infinite alternate; }
.js-tipar .ghirlanda::after { animation: becuri 2.4s ease-in-out -1.2s infinite alternate; }
@keyframes becuri { from { opacity: 1; } to { opacity: 0.45; } }

/* rândul de urări, pe planșă, sub ghirlandă */
.urare { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.2rem 0.55rem; margin: 0;
  padding: 1.35rem var(--margine) 0.5rem; text-align: center; color: #fff; font-weight: 650; font-size: 0.98rem; line-height: 1.4; }
.urare .icon { color: var(--albastru-cer); width: 1.15em; height: 1.15em; }
.urare span { color: var(--albastru-cer); font-weight: 500; }
@media (max-width: 575.98px) { .urare { font-size: 0.9rem; padding-top: 1.25rem; } }

@media print { body.craciun::before, body.craciun::after, .ghirlanda, .caciula, .urare { display: none !important; } }
