/* ─────────────────────────────────────────────────────────────────────
   XR Template Sandbox — shared styles
   Palette eyedropper-extracted from the reference PPTX images.
   ───────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Backgrounds */
  --bg-light-start: #f8f7f2;
  --bg-light-mid: #efece2;
  --bg-light-end: #e2dfd1;
  --bg-dark-start: #2a1d4a;
  --bg-dark-mid: #1a0f33;
  --bg-dark-end: #0a0518;

  /* Text */
  --text-dark: #2a1f3d;
  --text-light: #ffffff;
  --text-mint-dark: #0e3a23;
  --text-purple-soft: #f3e9ff;
  --text-purple-muted: rgba(243, 233, 255, 0.85);
  --text-body: #5a4a78;

  /* Mint family */
  --mint-50: #ecf7f0;
  --mint-100: #dcf0e3;
  --mint-200: #b8e0c8;
  --mint-300: #9fd6b5;
  --mint-400: #7cc8a0;
  --mint-500: #6ee7b7;
  --mint-600: #2eb88a;

  /* Purple family */
  --purple-100: #ddd6fe;
  --purple-200: #c4b5fd;
  --purple-300: #a78bfa;
  --purple-400: #8b5cf6;
  --purple-500: #7c3aed;
  --purple-600: #6d28d9;
  --purple-700: #5b21b6;
  --purple-navy: #1f0a3f;
  --purple-deep: #1a0a35;

  /* Gradients */
  --grad-bg-light: linear-gradient(180deg, var(--bg-light-start) 0%, var(--bg-light-mid) 60%, var(--bg-light-end) 100%);
  --grad-bg-dark: radial-gradient(ellipse at top right, var(--bg-dark-start) 0%, var(--bg-dark-mid) 55%, var(--bg-dark-end) 100%);
  --grad-card-dark: linear-gradient(135deg, #4a2870 0%, #2d1655 60%, #1a0d35 100%);
  --grad-card-light: linear-gradient(135deg, #dcf0e3 0%, #b8e0c8 60%, #9fd6b5 100%);
  --grad-spectrum: linear-gradient(90deg, #2a1245 0%, #4a2a6e 28%, #7c3aed 50%, #a78bfa 72%, #aedcc2 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  -webkit-font-smoothing: antialiased;
}

[lang="ar"], .arabic, .rtl {
  font-family: 'Cairo', system-ui, sans-serif;
  direction: rtl;
}

/* ─────────────────────────────────────────────────────────────────────
   Sandbox layout — header, side-by-side comparison grid
   ───────────────────────────────────────────────────────────────────── */

.sandbox {
  max-width: 2900px;
  margin: 0 auto;
  padding: 24px;
}

.sandbox header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #21262d;
}

.sandbox header h1 {
  font-size: 22px;
  font-weight: 800;
  color: #f0f6fc;
}

.sandbox header .meta {
  font-size: 12px;
  color: #8b949e;
  font-family: 'JetBrains Mono', monospace;
}

.sandbox header nav {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.sandbox header nav a {
  color: #8b949e;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  background: #161b22;
  border: 1px solid #21262d;
}

.sandbox header nav a:hover {
  color: #c9d1d9;
  border-color: #30363d;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare > section {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
}

.compare > section h2 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b949e;
  padding: 12px 16px;
  background: #0d1117;
  border-bottom: 1px solid #21262d;
}

.compare img.ref {
  display: block;
  width: 100%;
  height: auto;
}

/* The slide stage — fixed 1376×768 dimensions = 16:9, scaled to fit */
.slide-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1376 / 768;
  container-type: inline-size;
}

/* Index page grid */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.index-card {
  display: block;
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}

.index-card:hover {
  transform: translateY(-2px);
  border-color: #58a6ff;
}

.index-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid #21262d;
}

.index-card .caption {
  padding: 12px 14px;
}

.index-card .caption h3 {
  font-size: 14px;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 4px;
}

.index-card .caption p {
  font-size: 11px;
  color: #8b949e;
  font-family: 'JetBrains Mono', monospace;
}

.index-card .caption .status {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-todo { background: #21262d; color: #8b949e; }
.status-wip  { background: #f5c00040; color: #f5c000; }
.status-done { background: #2ea04340; color: #2ea043; }

/* ─────────────────────────────────────────────────────────────────────
   Slide-internal helpers — used inside the .slide-stage container
   ───────────────────────────────────────────────────────────────────── */

.slide-stage * {
  font-family: inherit;
}

.slide-stage.dark {
  background: var(--grad-bg-dark);
  color: var(--text-light);
}

.slide-stage.light {
  background: var(--grad-bg-light);
  color: var(--text-dark);
}
