/* ─────────────────────────────────────────────────────────────────────────
   birthday-banner.css — TEMPORARY · Jill's birthday surprise
   ───────────────────────────────────────────────────────────────────────── */
/* HOW TO REMOVE EVERYTHING (3 steps):
   1. Delete this file: styles/birthday-banner.css
   2. Delete: js/birthday-banner.js
   3. In index.html, remove the two lines tagged with: <!-- BIRTHDAY -->
   ───────────────────────────────────────────────────────────────────────── */

.birthday-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  /* Layered celebratory background:
       1. Soft polka dots (radial gradients) — confetti vibe
       2. Sweeping warm-to-cool gradient base */
  background: radial-gradient(circle at 12% 28%, rgba(255, 247, 232, 0.55) 0 5px, transparent 6px),
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.4) 0 4px, transparent 5px),
    radial-gradient(circle at 47% 22%, rgba(255, 247, 232, 0.5) 0 6px, transparent 7px),
    radial-gradient(circle at 64% 78%, rgba(255, 255, 255, 0.45) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 30%, rgba(255, 247, 232, 0.55) 0 5px, transparent 6px),
    radial-gradient(circle at 92% 70%, rgba(255, 255, 255, 0.35) 0 4px, transparent 5px),
    linear-gradient(100deg, #c25e54 0%, #d8867d 30%, #e9d8b4 55%, #ebc7c3 75%, #5a9aa0 100%);
  color: #fff;
  padding: 18px 60px 18px 24px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(31, 48, 53, 0.22);
  transform: translateY(-110%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.birthday-banner.is-open {
  transform: translateY(0);
}

.bday-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
}

.bday-line-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.bday-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(31, 48, 53, 0.25);
}

/* Jill's italic "J" fix — Playfair italic capital J reads as "F".
   Use Georgia for the italic emphasized word. */
.bday-headline em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: #fff7e8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.bday-line-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.04em;
  color: #fff7e8;
  text-shadow: 0 1px 3px rgba(31, 48, 53, 0.25);
  opacity: 0.96;
}

.bday-emoji {
  display: inline-block;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  animation: bday-bob 2.8s ease-in-out infinite;
}
.bday-emoji:last-child {
  animation-delay: 0.6s;
}

.bday-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bday-close:hover,
.bday-close:focus-visible {
  background: rgba(255, 255, 255, 0.4);
  outline: none;
}

/* Push the sticky site header down while banner is open */
body.has-birthday-banner .site-header {
  top: var(--bday-banner-h, 64px);
  transition: top 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
body.has-birthday-banner .filter-bar {
  top: calc(var(--header-h) + var(--bday-banner-h, 64px));
}

@keyframes bday-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-3px) rotate(3deg);
  }
}

/* ── CONFETTI ───────────────────────────────────────────────────────── */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

@media (prefers-reduced-motion: reduce) {
  .birthday-banner,
  .birthday-banner.is-open {
    transition: none;
    transform: translateY(0);
  }
  .bday-emoji {
    animation: none;
  }
}

@media (max-width: 640px) {
  .birthday-banner {
    padding: 14px 50px 14px 14px;
  }
  .bday-line-main {
    gap: 0.4rem;
  }
}
