/*
Theme Name: Noble Aminos Splash
Theme URI: https://nobleaminos.com
Author: Noble Aminos
Description: Extended Black Friday (Buy One, Get One Free) splash / age-gate page for Noble Aminos. Button, sale end date and links are editable under Appearance > Customize > Noble Splash.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: noble-splash
*/

:root {
  --bg: #161618;
  --bg-2: #1e1e21;
  --ink: #f5f3f1;
  --muted: #a9a6a3;
  --maroon: #7a2a33;
  --maroon-2: #9b3743;
  --maroon-deep: #4a161d;
  --line: rgba(255, 255, 255, 0.06);
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --logo: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body.noble-splash {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 42%, rgba(122, 42, 51, 0.28), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Promo ticker */
.ns-ticker {
  background: var(--maroon);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  padding: 10px 0;
}
.ns-ticker__track {
  display: inline-flex;
  gap: 40px;
  animation: ns-scroll 40s linear infinite;
}
.ns-ticker__track span::after { content: "•"; margin-left: 40px; opacity: 0.6; }
@keyframes ns-scroll { to { transform: translateX(-50%); } }

/* Layout */
.ns-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  text-align: center;
}

/* Logo */
.ns-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.ns-logo svg { width: 52px; height: 60px; flex: none; }
.ns-logo img { max-height: 80px; width: auto; }
.ns-logo__text { text-align: left; line-height: 1; }
.ns-logo__name { display: block; font-family: var(--logo); font-weight: 500; font-size: 42px; letter-spacing: 0.22em; }
.ns-logo__sub { display: block; font-family: var(--logo); font-size: 13px; letter-spacing: 0.55em; margin-top: 6px; padding-left: 4px; color: var(--muted); }

.ns-tagline {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Pills */
.ns-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.ns-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #1b1b1d;
  font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px;
}
.ns-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--maroon-2); display: inline-block; }
.ns-pill i.g { background: #4caf6e; }
.ns-pill i.d { background: #3a3a3e; }

/* Sale card */
.ns-card {
  position: relative;
  margin-top: 32px;
  padding: 34px 30px 30px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #2a2a2e 0%, #232326 45%, var(--maroon-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 60px rgba(155, 55, 67, 0.35), 0 20px 50px rgba(0, 0, 0, 0.45);
}
.ns-card__watermark {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.035);
  white-space: nowrap; pointer-events: none; user-select: none;
  text-transform: uppercase;
}
.ns-card > *:not(.ns-card__watermark) { position: relative; }

.ns-badge {
  display: inline-block;
  background: var(--maroon);
  border: 1px solid var(--maroon-2);
  color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 6px;
}

.ns-title { margin-top: 18px; line-height: 0.95; }
.ns-title__a { display: block; font-weight: 800; font-size: clamp(42px, 9vw, 64px); letter-spacing: -0.045em; }
.ns-title__b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(46px, 10vw, 70px); letter-spacing: 0; margin-top: 4px; }

.ns-sub { margin-top: 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ns-sub-2 { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Countdown */
.ns-count {
  display: inline-flex; margin-top: 22px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; padding: 10px 6px;
}
.ns-count__cell { min-width: 70px; padding: 0 12px; }
.ns-count__cell + .ns-count__cell { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.ns-count__num { display: block; font-family: var(--serif); font-size: 36px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ns-count__lbl { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }

.ns-ended { display: none; margin-top: 18px; font-size: 15px; color: var(--muted); }
.is-ended .ns-count { display: none; }
.is-ended .ns-ended { display: block; }

/* Enter button */
.ns-enter {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 24px; width: 100%;
  padding: 20px 24px;
  border-radius: 999px;
  background: #fff; color: #161618;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ns-enter:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(155, 55, 67, 0.45); background: #f3eeee; }
.ns-enter svg { width: 20px; height: 20px; transition: transform 0.15s ease; }
.ns-enter:hover svg { transform: translateX(3px); }

.ns-confirm { margin-top: 22px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.ns-confirm strong { color: var(--ink); font-weight: 700; }

.ns-leave { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--ink); opacity: 0.8; }
.ns-leave:hover { opacity: 1; }

.ns-foot {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px; line-height: 1.7; color: var(--muted);
}

@media (max-width: 520px) {
  .ns-wrap { padding-top: 32px; }
  .ns-logo__name { font-size: 32px; }
  .ns-card { padding: 28px 18px 24px; }
  .ns-count__cell { min-width: 56px; padding: 0 8px; }
  .ns-count__num { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .ns-ticker__track { animation: none; }
}
