/* Promo link in the site header (all pages).
   Desktop: the last nav item, set apart by a hairline divider, with gradient text and a live dot.
   Mobile: a dot on the menu button, and a highlighted first row inside the menu. */

/* ---- Desktop nav item ---- */
.vx-promo-li { position: relative; display: flex; align-items: center; }
.vx-promo-li::before {
  content: '';
  position: absolute;
  left: -0.875rem;
  top: 50%;
  width: 1px;
  height: 14px;
  margin-top: -7px;
  background: currentColor;
  opacity: 0.18;
}
/* Arrives right after the other nav items on the animated home header. */
.hdr-nav > li.vx-promo-li { animation-delay: 615ms; }

.vx-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 800;
}
.vx-promo-text {
  background: linear-gradient(90deg, #f59e0b, #f97316, #e11d48, #f97316, #f59e0b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vxp-drift 6s ease-in-out infinite;
}
.vx-promo-arrow {
  width: 12px;
  height: 12px;
  color: #f97316;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.vx-promo-link:hover .vx-promo-arrow,
.vx-promo-link:focus-visible .vx-promo-arrow { opacity: 1; transform: none; }
.vx-promo-link:focus-visible { outline: 3px solid #fdba74; outline-offset: 4px; border-radius: 6px; }

/* ---- Live dot (shared) ---- */
.vx-promo-dot { position: relative; width: 6px; height: 6px; flex: none; border-radius: 9999px; background: #f97316; }
.vx-promo-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #f97316;
  animation: vxp-ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ---- Mobile: dot on the menu button ---- */
summary:has(> .vx-menu-dot), #menu-button { position: relative; }
.vx-menu-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #f97316;
  box-shadow: 0 0 0 2px #fff;
}
#menu-button .vx-menu-dot { box-shadow: 0 0 0 2px #05070d; }
.vx-menu-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #f97316;
  animation: vxp-ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
details[open] > summary > .vx-menu-dot,
#menu-button[aria-expanded="true"] .vx-menu-dot { display: none; }

/* ---- Mobile: first row inside the menu ---- */
.vx-promo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.375rem;
  padding: 0.75rem;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(225, 29, 72, 0.06));
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.25);
  text-decoration: none;
}
.vx-promo-row .vx-promo-sub { margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 700; opacity: 0.6; }
.vx-promo-sub-arrow { width: 11px; height: 11px; }

@keyframes vxp-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes vxp-ping {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vx-promo-text, .vx-promo-dot::after, .vx-menu-dot::after { animation: none; }
}
