/* =========================================================
   Newsletter Strip — Shared + Per-Theme Variants
   Add to the END of:
     theme-relicrunners.css  (uses .nl-strip--rr)
     theme-balam.css         (uses .nl-strip--balam)

   The books.php version (.btn-newsletter-nl without modifier)
   is already in theme-books.css and is unaffected.
========================================================= */

/* =========================================================
   Base strip — shared structure
========================================================= */
.nl-strip {
  border-radius: 18px;
  padding: 42px 52px;
  margin: 48px 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10,16,24,0.82);
  box-shadow: 0 24px 72px rgba(0,0,0,0.55);
}

/* Badge */
.nl-strip__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--serif, "Cinzel", ui-serif, Georgia, serif);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Title */
.nl-strip__title {
  font-family: var(--serif, "Cinzel", ui-serif, Georgia, serif);
  font-size: clamp(19px, 2.4vw, 27px);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.22;
  margin: 0 0 10px;
  color: var(--text-main, #e7f6f8);
}

/* Sub */
.nl-strip__sub {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted, rgba(231,246,248,0.72));
  max-width: 420px;
  line-height: 1.62;
  margin: 0;
}

.nl-strip__left  { position: relative; z-index: 1; }
.nl-strip__cta   { flex-shrink: 0; position: relative; z-index: 1; }

/* CTA button — base */
.btn-newsletter-nl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 11px;
  font-family: var(--serif, "Cinzel", ui-serif, Georgia, serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-newsletter-nl:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* When strip sits inside a .container wrapper (e.g. about page) */
.container .nl-strip {
  margin: 0;
}

/* =========================================================
   Relicrunners variant — teal
========================================================= */
.nl-strip--rr {
  background: rgba(7,14,22,0.86);
}

/* Teal ambient glow */
.nl-strip--rr::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 520px 260px at 0% 50%,   rgba(70,240,255,0.07), transparent 62%),
    radial-gradient(ellipse 380px 200px at 100% 50%,  rgba(70,240,255,0.04), transparent 62%);
}

/* Teal left-edge accent line */
.nl-strip--rr::after {
  content: "";
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg,
    transparent,
    rgba(70,240,255,0.55) 35%,
    rgba(70,240,255,0.55) 65%,
    transparent
  );
  box-shadow: 0 0 10px rgba(70,240,255,0.28);
  pointer-events: none;
}

.nl-strip--rr .nl-strip__badge {
  background: rgba(70,240,255,0.07);
  border: 1px solid rgba(70,240,255,0.20);
  color: #46f0ff;
}

.nl-strip--rr .nl-strip__title span {
  color: #46f0ff;
}

.btn-newsletter-nl--rr {
  color: #46f0ff;
  background: rgba(70,240,255,0.07);
  border: 1px solid rgba(70,240,255,0.30);
}

/* Shimmer sweep — teal */
.btn-newsletter-nl--rr::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(70,240,255,0.13), transparent);
  animation: nlShimmerRR 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* Top edge shine */
.btn-newsletter-nl--rr::after {
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(70,240,255,0.40), transparent);
  border-radius: 999px;
  pointer-events: none;
}

.btn-newsletter-nl--rr:hover {
  background: rgba(70,240,255,0.12);
  border-color: rgba(70,240,255,0.46);
  box-shadow: 0 8px 28px rgba(70,240,255,0.15);
  color: #46f0ff;
}

@keyframes nlShimmerRR {
  0%        { left: -80%;  opacity: 0; }
  20%       { opacity: 1; }
  55%, 100% { left: 130%;  opacity: 0; }
}

/* =========================================================
   Balam variant — ember / gold
========================================================= */
.nl-strip--balam {
  background: rgba(12,9,6,0.88);
}

/* Ember ambient glow */
.nl-strip--balam::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 520px 260px at 0% 50%,   rgba(255,154,60,0.08),  transparent 62%),
    radial-gradient(ellipse 380px 200px at 100% 50%,  rgba(214,178,107,0.05), transparent 62%);
}

/* Ember left-edge accent line */
.nl-strip--balam::after {
  content: "";
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg,
    transparent,
    rgba(255,154,60,0.60) 35%,
    rgba(214,178,107,0.50) 65%,
    transparent
  );
  box-shadow: 0 0 10px rgba(255,154,60,0.22);
  pointer-events: none;
}

.nl-strip--balam .nl-strip__badge {
  background: rgba(255,154,60,0.08);
  border: 1px solid rgba(255,154,60,0.22);
  color: #ff9a3c;
}

.nl-strip--balam .nl-strip__title span {
  color: #d6b26b;
}

.btn-newsletter-nl--balam {
  color: #ff9a3c;
  background: rgba(255,154,60,0.07);
  border: 1px solid rgba(255,154,60,0.28);
}

/* Shimmer sweep — ember */
.btn-newsletter-nl--balam::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,154,60,0.12), transparent);
  animation: nlShimmerBalam 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* Top edge shine */
.btn-newsletter-nl--balam::after {
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,178,107,0.40), transparent);
  border-radius: 999px;
  pointer-events: none;
}

.btn-newsletter-nl--balam:hover {
  background: rgba(255,154,60,0.12);
  border-color: rgba(255,154,60,0.46);
  box-shadow: 0 8px 28px rgba(255,154,60,0.14);
  color: #ff9a3c;
}

@keyframes nlShimmerBalam {
  0%        { left: -80%;  opacity: 0; }
  20%       { opacity: 1; }
  55%, 100% { left: 130%;  opacity: 0; }
}

/* =========================================================
   About variant — teal/ember split (neutral between both worlds)
========================================================= */
.nl-strip--about {
  background: rgba(8,11,18,0.88);
}

/* Dual ambient glow — teal left, ember right */
.nl-strip--about::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 480px 240px at 0% 50%,   rgba(70,240,255,0.06),  transparent 62%),
    radial-gradient(ellipse 480px 240px at 100% 50%,  rgba(255,154,60,0.06),  transparent 62%);
}

/* Split teal→ember left-edge accent line */
.nl-strip--about::after {
  content: "";
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg,
    transparent,
    rgba(70,240,255,0.50) 30%,
    rgba(255,154,60,0.45) 70%,
    transparent
  );
  box-shadow: 0 0 10px rgba(70,240,255,0.18);
  pointer-events: none;
}

.nl-strip--about .nl-strip__badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(231,246,248,0.70);
}

.nl-strip--about .nl-strip__title span {
  background: linear-gradient(90deg, #46f0ff, #d6b26b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-newsletter-nl--about {
  color: #e9f5f7;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
}

.btn-newsletter-nl--about::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: nlShimmerAbout 3.4s ease-in-out infinite;
  pointer-events: none;
}

.btn-newsletter-nl--about::after {
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  border-radius: 999px;
  pointer-events: none;
}

.btn-newsletter-nl--about:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  color: #e9f5f7;
}

@keyframes nlShimmerAbout {
  0%        { left: -80%;  opacity: 0; }
  20%       { opacity: 1; }
  55%, 100% { left: 130%;  opacity: 0; }
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 860px) {
  .nl-strip {
    flex-direction: column;
    padding: 32px 26px;
    text-align: center;
    align-items: center;
  }
  .nl-strip__sub  { max-width: none; }
  .nl-strip__cta  { width: 100%; }
  .btn-newsletter-nl { width: 100%; }

  .nl-strip--rr::after,
  .nl-strip--balam::after,
  .nl-strip--about::after {
    /* Replace left edge line with top edge line on mobile */
    left: 15%; right: 15%;
    top: 0; bottom: auto;
    width: auto; height: 2px;
  }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .btn-newsletter-nl--rr::before,
  .btn-newsletter-nl--balam::before,
  .btn-newsletter-nl--about::before {
    animation: none;
  }
}
