/* ============================================================
   VR Hub — Sim Detail Page Styles
   Loaded on /hub/library/<slug>/ pages.
   Built to match the rest of the site's spacing + surface system.
   ============================================================ */

/* Main wrapper: clear fixed header + give generous bottom space */
.vr-hub-sim-detail {
  padding-top: clamp(6rem, 10vw, 8rem);
  padding-bottom: clamp(var(--vr-hub-space-12), 8vw, var(--vr-hub-space-20));
  background: var(--vr-hub-color-bg);
  color: var(--vr-hub-color-text);
}

/* Inner container — narrower than the wide container, easier to read */
.vr-hub-sim-detail .vr-hub-container {
  max-width: 980px;
}

/* ---------- Breadcrumb ---------- */
.vr-hub-breadcrumb {
  margin-bottom: var(--vr-hub-space-6);
  font-size: var(--vr-hub-text-sm);
  color: var(--vr-hub-color-text-faint);
}
.vr-hub-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--vr-hub-space-2);
  margin: 0;
  padding: 0;
}
.vr-hub-breadcrumb li + li::before {
  content: "›";
  margin-right: var(--vr-hub-space-2);
  color: var(--vr-hub-color-text-faint);
}
.vr-hub-breadcrumb a {
  color: var(--vr-hub-color-text-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.vr-hub-breadcrumb a:hover { color: var(--vr-hub-color-teal); }
.vr-hub-breadcrumb [aria-current="page"] {
  color: var(--vr-hub-color-text);
  font-weight: 500;
}

/* ---------- Hero card ---------- */
.vr-hub-sim-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  padding: clamp(var(--vr-hub-space-6), 4vw, var(--vr-hub-space-8));
  background: var(--vr-hub-color-surface);
  border: 1px solid var(--vr-hub-color-border);
  border-radius: var(--vr-hub-radius-lg);
  margin-bottom: var(--vr-hub-space-10);
}
.vr-hub-sim-hero-icon {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vr-hub-color-bg);
  border-radius: var(--vr-hub-radius-md);
  padding: var(--vr-hub-space-3);
}
[data-theme="dark"] .vr-hub-sim-hero-icon {
  background: #ffffff;
}
.vr-hub-sim-hero-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.vr-hub-sim-hero-body .vr-hub-module-category {
  display: inline-block;
  margin: 0 0 var(--vr-hub-space-3);
  vertical-align: top;
}
.vr-hub-sim-hero-body h1 {
  font-family: var(--vr-hub-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--vr-hub-space-4);
  color: var(--vr-hub-color-text);
}
.vr-hub-sim-blurb {
  font-size: var(--vr-hub-text-base);
  color: var(--vr-hub-color-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--vr-hub-space-6);
}

/* ---------- Stats row (inside hero) ---------- */
.vr-hub-sim-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--vr-hub-space-5);
  margin: 0;
  padding-top: var(--vr-hub-space-5);
  border-top: 1px solid var(--vr-hub-color-border);
}
.vr-hub-sim-stat {
  display: flex;
  flex-direction: column;
  gap: var(--vr-hub-space-1);
}
.vr-hub-sim-stat-label {
  font-size: var(--vr-hub-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vr-hub-color-text-faint);
  font-weight: 600;
}
.vr-hub-sim-stat-value {
  font-size: var(--vr-hub-text-base);
  color: var(--vr-hub-color-text);
  font-weight: 600;
  font-family: var(--vr-hub-font-display);
}

/* ---------- Generic detail block (intro/video/chapters/cta) ---------- */
.vr-hub-sim-block {
  margin-bottom: var(--vr-hub-space-10);
}
.vr-hub-sim-block:last-child { margin-bottom: 0; }

.vr-hub-sim-block-label {
  display: inline-block;
  font-size: var(--vr-hub-text-xs);
  font-weight: 700;
  color: var(--vr-hub-color-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--vr-hub-space-3);
}

.vr-hub-sim-block-title {
  font-family: var(--vr-hub-font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--vr-hub-color-text);
  margin: 0 0 var(--vr-hub-space-5);
  line-height: 1.2;
}

/* ---------- Intro paragraphs ---------- */
.vr-hub-sim-intro p {
  font-size: var(--vr-hub-text-base);
  line-height: 1.7;
  color: var(--vr-hub-color-text-muted);
  margin: 0 0 var(--vr-hub-space-4);
}
.vr-hub-sim-intro p:last-child { margin-bottom: 0; }

/* ---------- Video Preview ---------- */
.vr-hub-sim-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--vr-hub-radius-lg);
  background: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--vr-hub-color-border);
}
.vr-hub-sim-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
[data-theme="dark"] .vr-hub-sim-video-wrap {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

/* ---------- Chapters ---------- */
.vr-hub-sim-chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--vr-hub-space-4);
}
.vr-hub-sim-chapter {
  background: var(--vr-hub-color-surface);
  border: 1px solid var(--vr-hub-color-border);
  border-radius: var(--vr-hub-radius-lg);
  padding: clamp(var(--vr-hub-space-5), 3vw, var(--vr-hub-space-6));
  transition: border-color var(--vr-hub-transition);
}
.vr-hub-sim-chapter:hover {
  border-color: rgba(13, 211, 176, 0.35);
}
.vr-hub-sim-chapter-head {
  display: flex;
  align-items: center;
  gap: var(--vr-hub-space-3);
  margin-bottom: var(--vr-hub-space-3);
}
.vr-hub-sim-chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--vr-hub-color-teal);
  color: #0a0a0a;
  font-size: var(--vr-hub-text-sm);
  font-weight: 800;
  font-family: var(--vr-hub-font-display);
}
.vr-hub-sim-chapter h3 {
  font-family: var(--vr-hub-font-display);
  font-size: var(--vr-hub-text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--vr-hub-color-text);
  margin: 0;
  line-height: 1.25;
}
.vr-hub-sim-chapter p {
  font-size: var(--vr-hub-text-base);
  line-height: 1.65;
  color: var(--vr-hub-color-text-muted);
  margin: 0;
}

/* ---------- CTA block ---------- */
.vr-hub-sim-cta {
  text-align: center;
  padding: clamp(2.25rem, 4.5vw, 3.25rem) clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(135deg, rgba(13, 211, 176, 0.10), rgba(13, 211, 176, 0.02));
  border: 1px solid rgba(13, 211, 176, 0.25);
  border-radius: var(--vr-hub-radius-lg);
}
.vr-hub-sim-cta h2 {
  font-family: var(--vr-hub-font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 auto var(--vr-hub-space-3);
  color: var(--vr-hub-color-text);
  line-height: 1.25;
  max-width: 32ch;
}
.vr-hub-sim-cta p {
  font-size: var(--vr-hub-text-base);
  color: var(--vr-hub-color-text-muted);
  margin: 0 auto var(--vr-hub-space-6);
  line-height: 1.6;
  max-width: 56ch;
}
.vr-hub-sim-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vr-hub-space-3);
  justify-content: center;
  margin-top: var(--vr-hub-space-2);
}
.vr-hub-sim-cta-actions .vr-hub-btn {
  padding: 14px 32px;
  font-size: var(--vr-hub-text-base);
  font-weight: 600;
  text-decoration: none;
}
.vr-hub-sim-cta-actions .vr-hub-btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--vr-hub-color-text);
  border-color: rgba(13, 211, 176, 0.35);
}
.vr-hub-sim-cta-actions .vr-hub-btn--ghost:hover {
  background: #ffffff;
  border-color: var(--vr-hub-color-teal);
  color: var(--vr-hub-color-text);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .vr-hub-sim-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--vr-hub-space-5);
  }
  .vr-hub-sim-hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  .vr-hub-sim-blurb {
    margin-left: auto;
    margin-right: auto;
  }
  .vr-hub-sim-stats {
    text-align: left;
    grid-template-columns: repeat(2, 1fr);
  }
  .vr-hub-sim-chapter-head {
    flex-wrap: wrap;
  }
}
