/* ============================================================
   TEMA DE CRĂCIUN (craciun.js pune clasa .craciun pe <html> între 25 noiembrie și 7 ianuarie)
   Un singur element care atrage privirea – șirul de beculețe de sub meniu, ca luminile aprinse în oraș –
   și câteva atingeri discrete: ninsoare doar în partea de sus a paginii, „Titu” și sigla în roșu și auriu.
   Restul site-ului rămâne la fel.
   ============================================================ */
:root {
  --xmas-red: #c0262d;
  --xmas-green: #15803d;
  --xmas-gold: #d4a017;
  --xmas-white: #fff7d6;
  --xmas-wire: #2f3b2f;
}
[data-theme="dark"] { --xmas-wire: #9aa89a; }

/* --- Șirul de beculețe, sub meniu, pe toată lățimea --- */
.xmas-lights {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: 26px;
  pointer-events: none;
  z-index: 999;
}
.xmas-lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xmas-lights path { fill: none; stroke: var(--xmas-wire); stroke-width: 1.4; opacity: 0.55; }
.xmas-bulb {
  position: absolute;
  width: 8px;
  height: 12px;
  margin-left: -4px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c);
  box-shadow: 0 0 6px 1px var(--c), 0 0 14px 3px color-mix(in srgb, var(--c) 45%, transparent);
  animation: xmasTwinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite;
}
.xmas-bulb::before {               /* soclul becului */
  content: '';
  position: absolute;
  top: -3px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--xmas-wire);
}
.xmas-bulb.r { --c: #ef4444; }
.xmas-bulb.g { --c: #22c55e; }
.xmas-bulb.y { --c: #facc15; }
.xmas-bulb.w { --c: #fff3c4; }
.xmas-bulb.b { --c: #60a5fa; }
@keyframes xmasTwinkle {
  0%, 100% { opacity: 1; filter: brightness(1.1); }
  50% { opacity: 0.35; filter: brightness(0.7); box-shadow: 0 0 2px 0 var(--c); }
}

/* --- Ninsoarea (canvas pus de craciun.js în .hero sau .page-hero) --- */
.xmas-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* --- Pagina principală: fundal de iarnă, „Titu” în culorile sărbătorilor --- */
.craciun .hero-bg {
  background: linear-gradient(135deg, rgba(192,38,45,0.07) 0%, rgba(21,128,61,0.06) 30%, rgba(212,160,23,0.07) 60%, rgba(37,99,235,0.07) 100%);
  background-size: 400% 400%;
}
.craciun .hero-shape-1 { background: rgba(192,38,45,0.12); }
.craciun .hero-shape-2 { background: rgba(212,160,23,0.14); }
.craciun .hero-shape-3 { background: rgba(21,128,61,0.10); }
.craciun .hero-shape-4 { background: rgba(192,38,45,0.08); }
.craciun .hero-shape-5 { background: rgba(21,128,61,0.08); }
.craciun .text-gradient { background-image: linear-gradient(120deg, var(--xmas-red) 10%, #e0532f 40%, var(--xmas-gold) 90%); }
.craciun .hero-badge { background: rgba(192,38,45,0.09); color: var(--xmas-red); }
[data-theme="dark"].craciun .hero-badge { background: rgba(239,68,68,0.16); color: #fca5a5; }
.craciun .hero-badge .fa-snowflake { animation: xmasSpin 9s linear infinite; }
@keyframes xmasSpin { to { transform: rotate(360deg); } }

/* trimiterea la știrea despre luminile din oraș, sub textul de prezentare */
.xmas-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -28px auto 32px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--xmas-gold) 45%, transparent);
  background: color-mix(in srgb, var(--xmas-gold) 9%, var(--bg-card));
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.xmas-note:hover { color: var(--text); border-color: var(--xmas-gold); }
.xmas-note i { color: var(--xmas-gold); }

/* --- Sigla: roșie, în ton cu „Titu” --- */
.craciun .logo-icon { background: linear-gradient(135deg, var(--xmas-red), #8f1d22); }

/* --- Antetul paginilor interioare: o tentă caldă --- */
.craciun .page-hero::before {
  background:
    radial-gradient(ellipse at 25% 50%, rgba(192,38,45,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 30%, rgba(21,128,61,0.06) 0%, transparent 55%);
}

/* fără mișcare pentru cine a cerut asta din sistem: beculețele ard constant, nu ninge */
@media (prefers-reduced-motion: reduce) {
  .xmas-bulb, .craciun .hero-badge .fa-snowflake { animation: none; }
  .xmas-snow { display: none; }
}
@media (max-width: 640px) {
  .xmas-lights { height: 20px; }
  .xmas-note { font-size: 13px; margin-top: -24px; }
}
