/* ============================================================================
   VR Realms — style-v2.css  (visual redesign, June 2026)
   Levels up the dark-purple identity toward a "Feature-Rich Showcase" gaming
   aesthetic: aurora depth, glass, neon glow, HUD grid texture, bold display type.
   ── Keeps EVERY class name from the original style.css so all pages (docs,
      support, updates, etc.) keep working. New file = backup + cache-bust.
   ── Design direction grounded in ui-ux-pro-max gaming reasoning rule.
   ============================================================================ */

:root {
  --bg:           #0a0612;
  --bg-2:         #120a22;
  --panel:        #16102b;
  --panel-2:      #1d1638;
  --border:       #2a1f4d;
  --border-soft:  rgba(139, 92, 246, 0.22);
  --text:         #ece9f5;
  --muted:        #9b94b3;
  --accent:       #8b5cf6;
  --accent-2:     #a855f7;
  --accent-3:     #22d3ee;   /* cyan micro-accent for HUD/sci-fi pop */
  --accent-soft:  rgba(139, 92, 246, 0.18);
  --glow:         rgba(139, 92, 246, 0.55);
  --danger:       #f87171;
  --ok:           #4ade80;
  --warn:         #fbbf24;
  --radius:       16px;
  --radius-sm:    9px;
  --shadow:       0 18px 60px rgba(0,0,0,0.55);
  --shadow-glow:  0 10px 40px rgba(139,92,246,0.35);
  --maxw:         1180px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Animated aurora + faint HUD grid, painted behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -200px, rgba(139,92,246,0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(168,85,247,0.13), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(34,211,238,0.08), transparent 60%),
    var(--bg);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(139,92,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-2%,0) scale(1.05); }
}

a { color: var(--accent-2); text-decoration: none; transition: color .15s ease; }
a:hover { color: #c9b3ff; text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 6, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; gap: 22px;
  height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none; font-family: var(--font-display);
}
.brand img { height: 32px; width: 32px; object-fit: contain; filter: drop-shadow(0 2px 8px var(--glow)); }
.brand strong { color: var(--accent-2); }
.brand.small img { height: 24px; width: 24px; }
.brand:hover { text-decoration: none; }

nav.primary {
  display: flex; align-items: center; gap: 4px;
  margin-left: 12px; flex: 1;
}
nav.primary a {
  color: var(--text); text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  opacity: 0.82; transition: background .15s ease, opacity .15s ease;
}
nav.primary a:hover { background: var(--accent-soft); opacity: 1; text-decoration: none; }
nav.primary a.active { background: var(--accent-soft); color: #fff; opacity: 1; box-shadow: inset 0 -2px 0 var(--accent-2); }

/* Build dropdown — pure CSS (hover on desktop, :focus-within for keyboard).
   The nav is hidden ≤900px, so no mobile handling needed. The top-level link
   still navigates to /docs.php, so the dropdown is an accelerator, not a gate. */
.nav-dd { position: relative; }
.nav-dd .dd-caret { font-size: 10px; opacity: .55; margin-left: 2px; }
.nav-dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  display: none; flex-direction: column; gap: 2px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5), 0 0 0 1px var(--border-soft);
  z-index: 60;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { display: flex; }
nav.primary .nav-dd-menu a { display: block; padding: 8px 12px; font-size: 13.5px; white-space: nowrap; }

.cta-row { display: flex; gap: 8px; }

/* Language dropdown (drives the Google page translator via the googtrans cookie) */
.lang-select {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 11px;
  padding: 9px 10px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lang-select:hover { border-color: var(--accent); }
.lang-select:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; }
/* Hide every piece of Google Translate's own chrome — the custom dropdown is the only UI */
#google_translate_element, .skiptranslate, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
font { background: transparent !important; box-shadow: none !important; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 24px rgba(139,92,246,0.40);
  position: relative;
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 34px rgba(139,92,246,0.60); }
/* Secondary = outlined accent (used for the "also do this" wishlist action) */
.btn-secondary {
  background: rgba(139,92,246,0.10);
  color: #e7ddff;
  border-color: var(--accent);
}
.btn-secondary:hover { background: rgba(139,92,246,0.20); color: #fff; border-color: var(--accent-2); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--accent-soft); color: #fff; border-color: var(--border-soft); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 13px; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 68px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.02; margin: 0 0 18px;
  letter-spacing: -0.02em; font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #c4b5fd, #a855f7 55%, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18.5px; color: #c3bdd6; margin: 0 0 30px; max-width: 560px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-art {
  aspect-ratio: 1 / 1; max-width: 430px; margin-left: auto;
  background:
    radial-gradient(closest-side, rgba(168,85,247,0.50), transparent 70%),
    linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  animation: floatY 7s ease-in-out infinite;
}
.hero-art::before {
  content: ""; position: absolute; inset: -1px; border-radius: 28px; padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,.6), transparent 40%, rgba(34,211,238,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hero-art img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 12px 36px rgba(139,92,246,0.6)); }
@keyframes floatY { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--accent-soft); color: #d6c5ff;
  border: 1px solid var(--border-soft);
  font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 20px;
}
.tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100%{ opacity: 1; } 50%{ opacity: .35; } }

/* ---------- Generic sections ---------- */
section.block { padding: 72px 0; border-top: 1px solid var(--border); position: relative; }
section.block.no-border { border-top: 0; }
h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 36px); margin: 0 0 8px;
  letter-spacing: -0.01em; font-weight: 700;
}
p.section-sub { color: var(--muted); margin: 0 0 34px; max-width: 720px; font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: linear-gradient(180deg, rgba(34,24,62,0.66), rgba(20,13,40,0.66));
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.7), transparent);
  opacity: 0; transition: opacity .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-glow); }
.card:hover::after { opacity: 1; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-family: var(--font-display); font-weight: 600; }
.card p  { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(34,211,238,0.12));
  color: #d6c5ff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px; font-size: 17px;
  border: 1px solid var(--border-soft);
}
.card a.more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }
.card a.more:hover { text-decoration: none; }

/* ---------- Status / What's working ---------- */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.status {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,0.02);
  font-size: 14px;
  transition: border-color .15s ease, background .15s ease;
}
.status:hover { border-color: var(--border-soft); background: rgba(139,92,246,0.05); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.dot.ok   { background: var(--ok);   box-shadow: 0 0 8px rgba(74,222,128,0.7); }
.dot.warn { background: var(--warn); box-shadow: 0 0 8px rgba(251,191,36,0.7); }
.dot.todo { background: var(--muted); }
.dot.live { background: var(--accent-2); box-shadow: 0 0 10px rgba(168,85,247,0.8); animation: livePulse 2s ease-in-out infinite; }

/* ---------- Video ---------- */
.video-wrap {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #000; box-shadow: var(--shadow);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Doc / long-form content ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 40px; font-size: 26px; font-family: var(--font-display); }
.prose h3 { margin-top: 30px; font-size: 20px; color: #d6c5ff; font-family: var(--font-display); }
.prose p, .prose li { color: #d6d4df; }
.prose code {
  background: #1a1234; padding: 2px 6px; border-radius: 5px;
  font-size: 13.5px; color: #f1e9ff;
  border: 1px solid var(--border);
}
.prose pre {
  background: #0f0a1f; border: 1px solid var(--border);
  padding: 16px; border-radius: var(--radius-sm);
  overflow-x: auto; font-size: 13px;
}
.prose pre code { background: transparent; border: 0; padding: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.prose blockquote {
  margin: 18px 0; padding: 12px 18px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 6px; color: #ece6ff;
}

.callout {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139,92,246,0.08), rgba(139,92,246,0.02));
  border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 22px 0;
  display: flex; gap: 14px;
}
.callout .lab {
  font-weight: 700; color: var(--accent-2); letter-spacing: 0.06em;
  text-transform: uppercase; font-size: 12px; min-width: 70px;
}
.callout.warn { border-color: #5a3d10; background: linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.02)); }
.callout.warn .lab { color: var(--warn); }
.callout.tip  { /* default */ }
.callout.todo { border-color: #2a1f4d; background: rgba(255,255,255,0.02); }
.callout.todo .lab { color: var(--muted); }

table.kv {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px;
}
table.kv th, table.kv td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
table.kv th { color: var(--muted); font-weight: 600; }
table.kv td code { font-size: 13px; }

/* ---------- Doc page layout ---------- */
.doc-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px;
  padding: 48px 0;
}
.doc-layout aside { position: sticky; top: 86px; align-self: start; }
.doc-layout aside h5 {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.doc-layout aside ul { list-style: none; padding: 0; margin: 0 0 22px; }
.doc-layout aside li a {
  display: block; padding: 6px 10px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: 14px;
}
.doc-layout aside li a:hover { background: var(--accent-soft); text-decoration: none; }

/* ---------- Page hero (smaller than home) ---------- */
.page-hero {
  padding: 74px 0 38px;
  position: relative;
  border-bottom: 1px solid transparent;
  background: radial-gradient(680px 240px at 0% -50%, rgba(139,92,246,0.16), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(34,211,238,0.4) 30%, transparent 65%);
}
.page-hero h1 {
  margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px);
  font-family: var(--font-display); letter-spacing: -0.01em; font-weight: 700;
}
.page-hero p  { margin: 0; color: #c3bdd6; max-width: 720px; font-size: 16.5px; }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(34,211,238,0.08));
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 34px 38px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px; margin: 64px 0;
  box-shadow: var(--shadow-glow);
}
.cta-strip h3 { margin: 0 0 6px; font-size: 23px; font-family: var(--font-display); }
.cta-strip p  { margin: 0; color: #c9c2dd; }

/* ---------- Footer ---------- */
.site-footer {
  background: #07040d;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  padding: 56px 24px 32px;
}
.footer-grid h4 { color: #d6c5ff; font-size: 14px; margin: 0 0 12px; letter-spacing: 0.05em; font-family: var(--font-display); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 6px 0; font-size: 14px; }
.link-list li a { color: var(--text); opacity: 0.82; }
.link-list li a:hover { opacity: 1; color: #fff; }
.footer-bottom { padding: 18px 24px 32px; color: var(--muted); border-top: 1px solid var(--border); }

/* ---------- Hero CTA helper bits (homepage) ---------- */
.cta-or { color: var(--muted); font-size: 13px; align-self: center; padding: 0 2px; }
.hero-note { margin-top: 20px; }
.hero-note code, .section-sub code, .card code, .status code, .muted code {
  background: #1a1234; padding: 1px 6px; border-radius: 5px;
  font-size: .9em; color: #f1e9ff; border: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 280px; margin: 0 auto; order: -1; }
  .grid-3, .grid-2, .status-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-layout aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  nav.primary { display: none; }
  .cta-row .btn-ghost { display: none; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .cta-or { display: none; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .hero-art { animation: none; }
  .dot.live, .tag::before { animation: none; }
  .btn, .card, .status, a { transition: none; }
  html { scroll-behavior: auto; }
}
