/* Seasonal looks (which one is on: themes.js; what each adds: DECOR in common.js).
   Decoration only: nothing here takes taps or covers content. */

.theme-toggle { border: 0; background: none; padding: 4px 8px; font-size: 0.85rem; line-height: 1; color: var(--muted); opacity: 0.45; cursor: pointer; filter: grayscale(1); border-radius: 999px; }
.theme-toggle.on { opacity: 0.8; filter: none; }
.version-row { display: flex; align-items: center; justify-content: center; gap: 2px; }
.rail .theme-toggle, .rail .theme-toggle.on { width: auto; height: auto; min-height: 0; padding: 0.3rem 0.6rem; margin: 0.2rem auto 0; background: none; box-shadow: none; color: var(--muted); font-size: 0.85rem; display: block; }

/* Greeting chip (countdown or "Happy ...") */
.season { display: none; }
.theme-on .season { display: inline-flex; }
.theme-on .sub .season { display: inline; margin-left: 8px; color: var(--theme-ink, #b8433f); font-weight: 500; white-space: nowrap; }
.theme-on .weekday .season { align-items: center; gap: 0.3rem; padding: 0.12rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 500; white-space: nowrap;
  color: var(--theme-ink, #9c3a36); background: var(--theme-soft, #fbeeee); box-shadow: 0 0 0 1px var(--theme-line, #f1d3d2) inset; }

/* Chip colors per look */
.theme-churro { --theme-ink: #8a5a1f; --theme-soft: #fbf1df; --theme-line: #efd9b0; }
.theme-stpatricks { --theme-ink: #2f7d55; --theme-soft: #e8f5ed; --theme-line: #c5e6d2; }
.theme-anniversary { --theme-ink: #b23a57; --theme-soft: #fdecef; --theme-line: #f6cdd6; }
.theme-easter { --theme-ink: #8a5aa8; --theme-soft: #f5effb; --theme-line: #e3d4f5; }
.theme-felipe { --theme-ink: #2f6f9f; --theme-soft: #eaf3fa; --theme-line: #cfe2f1; }
.theme-angela { --theme-ink: #a8377f; --theme-soft: #fbedf6; --theme-line: #f1cfe5; }
.theme-halloween { --theme-ink: #b8561f; --theme-soft: #fdf0e6; --theme-line: #f4d4bd; }
.theme-valentines { --theme-ink: #b8355a; --theme-soft: #fdecf1; --theme-line: #f7cbd7; }
.theme-mothers { --theme-ink: #a8487a; --theme-soft: #fcf0f6; --theme-line: #f3d2e3; }
.theme-fathers { --theme-ink: #24557c; --theme-soft: #eaf3fa; --theme-line: #cfe2f1; }
.theme-colombia { --theme-ink: #003893; --theme-soft: #fff9d9; --theme-line: #f5e48a; }
.theme-thanksgiving { --theme-ink: #8a3b12; --theme-soft: #fbf1e4; --theme-line: #eed6b5; }
.theme-velitas { --theme-ink: #9a6a10; --theme-soft: #fff6dc; --theme-line: #f3dfa2; }
.theme-nye { --theme-ink: #7a6420; --theme-soft: #faf6e8; --theme-line: #e9dfb8; }

/* Content stays above falling particles */
.theme-on .shell, .theme-on .wrap { position: relative; z-index: 2; }

/* Holidays: string of lights along the top edge */
.holiday-lights { position: fixed; top: 0; left: 0; right: 0; height: 18px; z-index: 4; pointer-events: none; display: flex; justify-content: space-around; align-items: flex-start; }
.holiday-lights::before { content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 8px; border-bottom: 1.5px solid rgba(31, 41, 51, 0.25); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.holiday-lights i { position: relative; top: 6px; width: 7px; height: 11px; border-radius: 50% 50% 45% 45%; background: var(--b);
  box-shadow: 0 0 6px 1px color-mix(in srgb, var(--b) 55%, transparent); animation: theme-twinkle 3.2s ease-in-out infinite; }
.holiday-lights i::before { content: ''; position: absolute; top: -3px; left: 2px; width: 3px; height: 3px; border-radius: 1px; background: rgba(31, 41, 51, 0.45); }
.holiday-lights i:nth-child(odd) { top: 9px; }
@keyframes theme-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* Celebrations: a small flag bunting along the top edge */
.theme-bunting { position: fixed; top: 0; left: 0; right: 0; height: 16px; z-index: 4; pointer-events: none; display: flex; justify-content: space-between; padding: 0 4px; }
.theme-bunting::before { content: ''; position: absolute; left: 0; right: 0; top: 1px; border-top: 1.5px solid rgba(31, 41, 51, 0.22); }
.theme-bunting i { width: 12px; height: 14px; margin-top: 2px; background: var(--b); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: 0.9; }

/* Slow drifting particles (snow, leaves, petals, hearts...) kept pale and behind everything */
.theme-particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.theme-particles i { position: absolute; top: -2rem; font-style: normal; color: #a9c1d9; opacity: 0.45; animation: theme-fall linear infinite; }
.theme-holiday .theme-particles i { opacity: 0.55; }
@keyframes theme-fall {
  0% { transform: translate3d(0, -2rem, 0) rotate(0deg); }
  50% { transform: translate3d(1.2rem, 50vh, 0) rotate(120deg); }
  100% { transform: translate3d(-0.6rem, 105vh, 0) rotate(240deg); }
}
.theme-season .theme-particles i { opacity: 0.35; }

/* Easter: a bunny peeking up from the bottom-left corner */
.theme-corner { position: fixed; left: 10px; bottom: -6px; z-index: 1; pointer-events: none; font-size: 2rem; opacity: 0.8; animation: theme-peek 9s ease-in-out infinite; }
@keyframes theme-peek { 0%, 70%, 100% { transform: translateY(40%); } 80%, 92% { transform: translateY(0); } }

/* Warm touches on the kitchen screen */
.theme-holiday .rail .logo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d9a441; border-radius: 14px; }
.theme-celebration:not(.theme-holiday) .rail .logo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--theme-line, #e3e7ec); border-radius: 14px; }
.theme-holiday body { background-image: radial-gradient(circle at 100% 0%, rgba(217, 79, 79, 0.05), transparent 40%), radial-gradient(circle at 0% 100%, rgba(63, 154, 107, 0.06), transparent 45%); background-attachment: fixed; }

@media (prefers-reduced-motion: reduce) {
  .theme-particles, .theme-corner { display: none; }
  .holiday-lights i { animation: none; }
}
@media (max-width: 700px) { .theme-corner { bottom: calc(64px + env(safe-area-inset-bottom)); font-size: 1.6rem; } }
