/* =============================================================================
   HoloAlmanac member site — design system v2 (visual layer)
   team/bot8/v2/ha.css

   This is an add-on to v1 team/bot8/ha.css. Load v1 first, then this file:
     <link rel="stylesheet" href="../ha.css">
     <link rel="stylesheet" href="ha.css">
   v1 files are not modified. This sheet adds mockup frames, a countdown,
   icons, feature cards, a how-it-works graphic, gold glows and gradients,
   and motion that is fully disabled under prefers-reduced-motion.

   No url() references, no raster images, no webfonts, no third-party logos.
   The wordmark stays HTML text. eBay may appear in copy only — never as a
   logo, brand color, or trade dress.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Token extensions (v1 tokens remain the source of color)
   --------------------------------------------------------------------------- */
:root {
  --glow-gold: 0 0 48px rgb(198 163 90 / 0.32);
  --glow-gold-sm: 0 0 24px rgb(198 163 90 / 0.22);
  --glow-urgent: 0 0 28px rgb(232 160 168 / 0.28);
  --glow-ok: 0 0 28px rgb(142 207 190 / 0.22);
  --grad-gold: linear-gradient(135deg, #e0c078 0%, #c6a35a 52%, #d4b36a 100%);
  --grad-gold-border: linear-gradient(135deg, #e0c078, #7a7262 42%, #c6a35a);
  --hero-wash: radial-gradient(ellipse 80% 55% at 50% -8%, rgb(198 163 90 / 0.16), transparent 62%);
  --hero-wash-side: radial-gradient(ellipse 40% 40% at 90% 20%, rgb(198 163 90 / 0.08), transparent 70%);
  --move-lift: 200ms;
  --lift: translateY(-0.3rem);
}

/* ---------------------------------------------------------------------------
   2. Motion — hover lifts and fade-in; off under reduced motion
   --------------------------------------------------------------------------- */
@keyframes ha-fade-up {
  from { opacity: 0; transform: translateY(0.6rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ha-pulse {
  0%, 100% { box-shadow: var(--glow-urgent); }
  50%      { box-shadow: 0 0 14px rgb(232 160 168 / 0.12); }
}

.fade-in {
  animation: ha-fade-up var(--move-slow) var(--ease) both;
}

.card-lift,
.frame-browser,
.frame-extension {
  transition: transform var(--move-lift) var(--ease),
              box-shadow var(--move-lift) var(--ease);
}

.card-lift:hover,
.card-lift:focus-within {
  transform: var(--lift);
  box-shadow: var(--glow-gold-sm), var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
  .card-lift,
  .frame-browser,
  .frame-extension,
  .countdown.is-urgent {
    transition: none;
    animation: none;
    transform: none;
  }
  .card-lift:hover,
  .card-lift:focus-within,
  .frame-browser:hover,
  .frame-extension:hover {
    transform: none;
  }
  .countdown.is-urgent {
    box-shadow: none;
  }
}

/* ---------------------------------------------------------------------------
   3. Icons
   --------------------------------------------------------------------------- */
.icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 2rem; height: 2rem; }

.icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  color: var(--gold-soft);
  background: var(--gold-dim);
  box-shadow: inset 0 0 0 1px rgb(198 163 90 / 0.28);
}

.icon-wrap-lg {
  width: 3.25rem;
  height: 3.25rem;
}

/* Hidden sprite host when the sheet is used with an inlined <svg> */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   4. Gradient / glow accents
   --------------------------------------------------------------------------- */
.glow-panel {
  box-shadow: var(--glow-gold-sm), var(--shadow-soft);
}

.hero-visual {
  position: relative;
  background: var(--hero-wash), var(--hero-wash-side), var(--bg);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: auto auto -8rem -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(198 163 90 / 0.1), transparent 68%);
  pointer-events: none;
}

.grad-border {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-gold-border) border-box;
}

/* ---------------------------------------------------------------------------
   5. Browser and extension mockup frames
   --------------------------------------------------------------------------- */
.frame-browser,
.frame-extension {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow), var(--glow-gold-sm);
  overflow: hidden;
  color: var(--text);
}

.frame-browser {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-gold-border) border-box;
}

.frame-chrome,
.frame-extension-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.55rem 0.75rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.frame-dots {
  display: flex;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.frame-dots i {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Brand-colored dots (our tokens, not operating-system traffic lights). */
.frame-dots i:nth-child(1) { background: var(--danger); }
.frame-dots i:nth-child(2) { background: var(--gold); }
.frame-dots i:nth-child(3) { background: var(--ok); }

.frame-url {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--input-bg);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-url-host { color: var(--gold-soft); }

.frame-body,
.frame-extension-body {
  padding: var(--s-4);
  background: var(--bg);
}

.frame-extension {
  max-width: 22rem;
  border-radius: 12px;
}

.frame-extension-bar {
  justify-content: space-between;
}

.frame-extension-bar .wordmark { font-size: 1.05rem; }

.frame-extension-meta {
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-listing-title {
  margin: 0 0 var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

.mock-bid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.mock-bid {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.mock-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-3) 0 0;
}

.mock-chip {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.55rem;
  background: var(--surface);
}

.hero-frames {
  display: grid;
  gap: var(--s-5);
  align-items: start;
  margin-top: var(--s-6);
}

@media (min-width: 64em) {
  .hero-frames {
    display: block;
    position: relative;
    margin-top: 0;
    min-height: 22rem;
  }

  .hero-frames .frame-browser { width: 100%; }

  /* Overlays must not reserve a gutter that squeezes result rows. */
  .hero-frames .frame-browser .frame-body {
    padding-right: 0.85rem;
    min-height: 18rem;
  }
}

@media (min-width: 80em) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--s-7);
    align-items: center;
  }

  .hero-frames {
    margin-top: 0;
  }
}

/* ---------------------------------------------------------------------------
   6. Countdown
   --------------------------------------------------------------------------- */
.countdown {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.countdown-label {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.countdown-face {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--s-1);
}

.countdown-unit {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  min-width: 3.15rem;
  padding: 0.45rem 0.4rem 0.4rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.countdown-unit [data-part] {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
}

.countdown-unit abbr {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
}

.countdown-sep {
  display: flex;
  align-items: center;
  padding-bottom: 0.9rem;
  color: var(--gold);
  font-weight: var(--fw-bold);
}

.countdown.is-urgent {
  border-color: var(--danger);
  background: var(--danger-bg);
  box-shadow: var(--glow-urgent);
  animation: ha-pulse 1.2s var(--ease) infinite;
}

.countdown.is-urgent .countdown-unit {
  border-color: #4a2a2a;
  background: rgb(18 17 14 / 0.35);
}

.countdown.is-urgent .countdown-unit [data-part] { color: var(--danger); }

.countdown.is-placed {
  border-color: #2a4a40;
  background: var(--ok-bg);
  box-shadow: var(--glow-ok);
}

.countdown.is-placed .countdown-unit [data-part] { color: var(--ok); }

.countdown-placed {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  color: var(--ok);
  font-weight: var(--fw-semibold);
}

.countdown-placed[hidden] { display: none; }

.countdown-fallback {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.countdown-compact {
  padding: var(--s-3);
}

.countdown-compact .countdown-unit {
  min-width: 2.4rem;
  padding: 0.3rem 0.25rem;
}

.countdown-compact .countdown-unit [data-part] { font-size: var(--fs-md); }

.countdown-compact .countdown-face { flex-wrap: nowrap; }

.countdown-compact .countdown-sep { padding-bottom: 0.65rem; }

/* ---------------------------------------------------------------------------
   7. Feature cards
   --------------------------------------------------------------------------- */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  height: 100%;
}

.feature-card h3 {
  margin: 0;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.feature-icon-grid {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 40em) {
  .feature-icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
  .feature-icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------------
   8. How-it-works — 3 steps, vertical then horizontal
   --------------------------------------------------------------------------- */
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s-4);
  align-items: start;
}

.how-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.how-num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--text-on-gold);
  font-family: var(--font-serif);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  box-shadow: var(--glow-gold-sm);
  position: relative;
  z-index: 1;
}

.how-connector {
  width: 2px;
  flex: 1 1 auto;
  min-height: 1.75rem;
  margin: 0.25rem 0;
  background: var(--grad-gold);
  opacity: 0.7;
}

.how-step:last-child .how-connector { display: none; }

.how-copy { padding-bottom: var(--s-6); }
.how-step:last-child .how-copy { padding-bottom: 0; }

.how-copy h3 { margin-bottom: var(--s-2); }
.how-copy p { margin: 0; color: var(--text-muted); }

@media (min-width: 64em) {
  .how-steps {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .how-step {
    flex: 1 1 0;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    position: relative;
  }

  .how-rail {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin-bottom: var(--s-4);
  }

  .how-connector {
    width: auto;
    height: 2px;
    min-height: 0;
    flex: 1 1 auto;
    margin: 0 0 0 0.25rem;
  }

  .how-step:last-child .how-rail { justify-content: center; }

  .how-connector { display: none; }

  .how-steps::before {
    content: "";
    position: absolute;
    top: 1.2rem;
    left: calc(16.666% + 1.4rem);
    right: calc(16.666% + 1.4rem);
    height: 2px;
    background: var(--grad-gold);
    opacity: 0.8;
    pointer-events: none;
  }

  .how-copy {
    padding: 0 var(--s-3) 0;
    max-width: 20rem;
  }
}

/* ---------------------------------------------------------------------------
   9. v2 dashboard / queue snippets
   --------------------------------------------------------------------------- */
.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.queue-item {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  justify-items: start;
}

.queue-item:first-child { border-top: 0; }

@media (min-width: 48em) {
  .queue-item {
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: var(--s-4);
  }
}

.queue-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
}

.queue-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ---------------------------------------------------------------------------
   10. Demo page helpers (safe to use in product pages too)
   --------------------------------------------------------------------------- */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  color: var(--gold-soft);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
