/*
 * Theme layer shared by every seasonal theme (loaded only when the active
 * theme is not "standard"). Structure of band / preview bar / gift badges:
 * colours come from each themes/{slug}.css. No Tailwind utilities here —
 * this file is copied as-is to public/assets/css/themes/.
 */

/* ---- Seasonal band above the header ---- */
.theme-band {
  position: relative; z-index: 41;
  font-size: .9375rem; font-weight: 700; line-height: 1.35;
}
.theme-band p {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .25rem 1rem; margin-inline: auto; max-width: 72rem;
  padding: .55rem 1rem; text-align: center;
}
@media (width >= 40rem) { .theme-band p { padding-inline: 1.5rem; } }
.theme-band a {
  color: inherit; text-decoration-line: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* ---- Admin-only theme preview bar (bottom, floating) ---- */
.theme-preview-bar {
  position: fixed; left: 50%; bottom: 1rem; translate: -50% 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .35rem .75rem; max-width: min(34rem, calc(100% - 2rem));
  padding: .6rem 1rem; background: #141414; color: #FFF6E5;
  border: 2px solid #141414; border-radius: 1rem;
  box-shadow: 4px 4px 0 0 rgb(20 20 20 / .35);
  font-size: .8125rem; font-weight: 700; text-align: center;
}
.theme-preview-bar a { color: #FFD23F; text-decoration: underline; text-underline-offset: 3px; }
.theme-preview-bar a:focus-visible { outline-color: #FFD23F; }

/* ---- Marker classes: the public views add these unconditionally,
       only the theme CSS gives them a shape (standard = no-op). ---- */
[data-theme] .hero-sticker { display: inline-flex; }
[data-theme] .hero-decor { position: absolute; inset: 0; pointer-events: none; }

/* ---- Header garland: ONE shared geometry for every decorated theme
   (docs/brand.md §10). One thin ink wire hangs from the header bottom line
   into two soft festoons (sag ~7 px); per-theme element layers hang from the
   festoon low points (x = 43 and 129 in tile space). Same container height,
   same side insets (match .wrap gutters), same 172px round-scaled period:
   whole elements at every width, wire never animates. */
[data-theme=natal] .theme-lights, [data-theme=capodanno] .theme-lights, [data-theme=epifania] .theme-lights, [data-theme=san-valentino] .theme-lights, [data-theme=carnevale] .theme-lights, [data-theme=festa-papa] .theme-lights, [data-theme=festa-mamma] .theme-lights, [data-theme=pasqua] .theme-lights, [data-theme=halloween] .theme-lights {
  position: absolute; left: 1rem; right: 1rem; bottom: -30px; height: 30px;
  z-index: 5; pointer-events: none;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="172" height="30" viewBox="0 0 172 30"><path d="M0 0q43 14.5 86 0q43 14.5 86 0" fill="none" stroke="%23141414" stroke-width="1.8"/></svg>') round top left / 172px 30px;
}
@media (width >= 40rem) { [data-theme=natal] .theme-lights, [data-theme=capodanno] .theme-lights, [data-theme=epifania] .theme-lights, [data-theme=san-valentino] .theme-lights, [data-theme=carnevale] .theme-lights, [data-theme=festa-papa] .theme-lights, [data-theme=festa-mamma] .theme-lights, [data-theme=pasqua] .theme-lights, [data-theme=halloween] .theme-lights { left: 1.5rem; right: 1.5rem; } }
@media (width >= 64rem) { [data-theme=natal] .theme-lights, [data-theme=capodanno] .theme-lights, [data-theme=epifania] .theme-lights, [data-theme=san-valentino] .theme-lights, [data-theme=carnevale] .theme-lights, [data-theme=festa-papa] .theme-lights, [data-theme=festa-mamma] .theme-lights, [data-theme=pasqua] .theme-lights, [data-theme=halloween] .theme-lights { left: 2rem; right: 2rem; } }
[data-theme=natal] .theme-lights::before, [data-theme=capodanno] .theme-lights::before, [data-theme=epifania] .theme-lights::before, [data-theme=san-valentino] .theme-lights::before, [data-theme=carnevale] .theme-lights::before, [data-theme=festa-papa] .theme-lights::before, [data-theme=festa-mamma] .theme-lights::before, [data-theme=pasqua] .theme-lights::before, [data-theme=halloween] .theme-lights::before,
[data-theme=natal] .theme-lights::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: round; background-size: 172px 30px; background-position: top left;
}
