/* ===========================================================================
   NEWSLETTER WIDGET + COOKIE CONSENT BANNER
   Both are React-portal components in Framer's build, so they have no static
   markup to copy — copy, colours and geometry were read out of the captured
   computed-style data from live production.

   Banner: centred card, body copy rgba(255,255,255,.85), Decline is a ghost
   button rgba(255,255,255,.7), Accept is solid gold #c9a84c on #0a0a0a text.
   Widget: sits in #sp-newsletter-slot at the end of the Shows section.
   =========================================================================== */

/* --- newsletter ---------------------------------------------------------- */

.sp-newsletter {
  width: 100%;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(10, 10, 10, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.sp-newsletter-copy {
  flex: 1 1 260px;
  /* 300 weight on production, not the default 400. */
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.72);
}
.sp-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 1 auto;
}
.sp-newsletter input[type="email"] {
  min-width: 220px;
  flex: 1 1 220px;
  padding: 12px 14px;
  font-size: 14px;
  color: #0a0a0a;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.18);
  border-radius: 3px;
}
.sp-newsletter input[type="email"]::placeholder { color: rgba(10, 10, 10, 0.42); }
.sp-newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--color-gold);
}
.sp-newsletter button {
  padding: 12px 26px;
  /* Measured: 12px / 700 / 1.2px tracking. */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  /* Measured on production: solid gold fill, dark label, NO border, radius 4px.
     This was #0a0a0a on a dark band, which read as an invisible button. */
  color: #0a0a0a;
  background: var(--color-gold);
  border: 0;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.sp-newsletter button:hover { background: #0a0a0a; color: var(--color-gold); }
.sp-newsletter button[disabled] { opacity: 0.55; cursor: default; }
.sp-newsletter-status {
  flex: 1 0 100%;
  font-size: 13px;
  min-height: 18px;
  color: rgba(10, 10, 10, 0.7);
}
.sp-newsletter-status.is-error { color: #a3241f; }
.sp-newsletter-status.is-ok    { color: #1f7a3d; }

/* Honeypot — off-screen, not display:none (bots skip hidden fields but will
   happily fill one that is merely positioned away). */
.sp-newsletter .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- cookie consent ------------------------------------------------------ */

.sp-consent {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 900;
  width: min(460px, calc(100vw - 32px));
  padding: 22px 24px;
  background: rgba(18, 17, 15, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.sp-consent[hidden] { display: none; }
.sp-consent p {
  font-size: 13px;
  line-height: 19.5px;
  color: rgba(255, 255, 255, 0.85);
}
.sp-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.sp-consent button {
  /* Measured: 39px tall with 8px radius. */
  padding: 9px 10px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}
.sp-consent button:hover { opacity: 0.85; }
.sp-consent-decline {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.sp-consent-accept {
  color: #0a0a0a;
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
}

@media (prefers-reduced-motion: no-preference) {
  .sp-consent { animation: sp-consent-in 0.35s cubic-bezier(0, 0, 0.3, 1) both; }
  @keyframes sp-consent-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
}

/* ---------------------------------------------------------------------------
   NEWSLETTER SUCCESS — flying musical notes + rising confirmation.
   Keyframes copied from production (kit-note-fly / kit-msg-in).
   --------------------------------------------------------------------------- */
@keyframes kit-note-fly {
  0%   { opacity: 0; transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.5); }
  12%  { opacity: 1; }
  100% { opacity: 0;
         transform: translate(-50%, -50%) translate(var(--dx), var(--dy))
                    rotate(var(--rot)) scale(var(--sc)); }
}

@keyframes kit-msg-in {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.sp-newsletter { position: relative; }

.kit-note {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.sp-newsletter .kit-msg-rise {
  /* Production: rgb(148,116,28), 15px, weight 500, rises in after 0.35s. */
  color: rgb(148, 116, 28);
  font-size: 15px;
  font-weight: 500;
  animation: 0.55s 0.35s forwards kit-msg-in;
}

@media (prefers-reduced-motion: reduce) {
  /* No note burst, and the message simply appears. */
  .kit-note { display: none; }
  .sp-newsletter .kit-msg-rise { animation: none; opacity: 1; transform: none; }
}
