/* ============================================================
   Shared styles for the v6 preview tabs.
   Used by: api-documentation, integration-recipes, status,
            webhook-events, changelog, partner-ecosystem,
            partner-directory, become-a-partner.
   Lives in /draft-tabs/ alongside the pages themselves.
   ============================================================ */

.pv-banner {
  position: relative; z-index: 200;
  background: #FBBF24; color: #1A1209;
  padding: 8px 16px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.pv-banner code { background: rgba(0,0,0,0.08); padding: 2px 6px; border-radius: 3px; font-size: 11px; }

/* Nav mega-menus */
.nav__links li.pv-has-mega { position: relative; }
.nav__mega {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 480px;
  background: #0B1421;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
}
.nav__mega::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: #0B1421; border-top: 1px solid rgba(255,255,255,0.08); border-left: 1px solid rgba(255,255,255,0.08);
}
.nav__links li.pv-has-mega:hover .nav__mega,
.nav__links li.pv-has-mega:focus-within .nav__mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0s;
}
.nav__mega-col h4 {
  color: rgba(255,255,255,0.4); font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 12px;
}
.nav__mega-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; margin: 0 -10px; border-radius: 6px;
  color: rgba(255,255,255,0.85); font-size: 13px !important; font-weight: 500 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  transition: background 0.15s;
}
.nav__mega-item:hover { background: rgba(79,70,229,0.1); color: #fff !important; }
.nav__mega-soon {
  font-size: 9px !important; font-weight: 700 !important; letter-spacing: 0.06em !important;
  color: rgba(255,255,255,0.4) !important; background: rgba(255,255,255,0.06);
  padding: 2px 7px; border-radius: 100px; text-transform: uppercase !important;
}

/* Page hero */
.pv-page-hero { background: var(--navy); padding: var(--sp-2xl) 0; position: relative; overflow: hidden; }
.pv-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 70% 50%, rgba(79,70,229,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.pv-page-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.pv-page-hero h1 { color: #fff; font-size: 2.75rem; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: var(--sp-md); }
.pv-page-hero p { color: rgba(255,255,255,0.7); font-size: var(--md); line-height: 1.65; max-width: 640px; }
.pv-page-hero .label { color: var(--gold); }

/* Stat strip under hero */
.pv-stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md);
  padding: var(--sp-lg) 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--sp-xl);
}
.pv-stat-strip__val { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.pv-stat-strip__lbl { font-size: 11px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

/* Generic content cards (light bg) */
.pv-content-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.pv-content-card:hover { border-color: rgba(79,70,229,0.35); transform: translateY(-2px); }
.pv-content-card h3 { color: var(--text); margin-bottom: 10px; letter-spacing: -0.02em; }
.pv-content-card p { color: var(--text-sec); font-size: 14px; line-height: 1.6; margin: 0; }
.pv-content-card__lead {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}

/* Status / health indicators */
.pv-status-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 14px 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 8px;
}
.pv-status-name { color: var(--text); font-weight: 600; font-size: 14px; }
.pv-status-name__sub { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.pv-status-uptime { color: var(--text-sec); font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.pv-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.pv-status-badge--ok { background: rgba(52,211,153,0.12); color: #059669; }
.pv-status-badge--warn { background: rgba(251,191,36,0.15); color: #B45309; }
.pv-status-badge--down { background: rgba(248,113,113,0.15); color: #B91C1C; }
.pv-status-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Code blocks */
.pv-code {
  background: #0B1421; color: #E5E7EB; border-radius: 10px; padding: 18px 20px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px;
  line-height: 1.65; overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.04);
}
.pv-code__token-key  { color: #93C5FD; }
.pv-code__token-str  { color: #FCA5A5; }
.pv-code__token-num  { color: #C4B5FD; }
.pv-code__token-comm { color: #6B7280; font-style: italic; }
.pv-code__token-meth { color: #34D399; font-weight: 700; }
.pv-code__token-url  { color: #FBBF24; }

/* Changelog entries */
.pv-changelog-entry {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: start;
}
.pv-changelog-entry:last-child { border-bottom: none; }
.pv-changelog-entry__date { font-family: ui-monospace, Menlo, monospace; color: var(--text-muted); font-size: 12px; padding-top: 4px; }
.pv-changelog-entry__title { color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.015em; }
.pv-changelog-entry__body { color: var(--text-sec); font-size: 14px; line-height: 1.6; }

/* Page CTA */
.pv-page-cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 36px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.pv-page-cta h3 { margin-bottom: 4px; color: var(--text); letter-spacing: -0.02em; }
.pv-page-cta p { margin: 0; color: var(--text-sec); font-size: 14px; }

@media (max-width: 900px) {
  .pv-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .nav__mega { min-width: 320px; grid-template-columns: 1fr; }
  .pv-changelog-entry { grid-template-columns: 1fr; gap: 8px; }
  .pv-page-cta { flex-direction: column; align-items: flex-start; }
}
