/* XLabs Bootcamp — base styles complementing Tailwind */

:root {
  --xlabs-green-300: #7BE889;
  --xlabs-green-400: #5CE06B;
  --xlabs-green-500: #3CD64C;
  --xlabs-green-600: #2FB83E;
  --xlabs-green-700: #268F32;
  --xlabs-dark: #0B1120;
  --xlabs-darker: #070B14;
  --xlabs-slate-700: #334155;
  --xlabs-slate-800: #1E293B;
}

html { scroll-behavior: smooth; }

/*
  .btn — vanilla CSS equivalent of the original Tailwind @apply rule.
  Tailwind via CDN does not process @apply inside external stylesheets,
  so this is implemented in plain CSS to ensure buttons get the base
  shape (rounded, inline-flex, focus ring) regardless of the utilities
  the caller layers on top.
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.btn:focus { outline: none; }
.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--xlabs-dark),
    0 0 0 4px var(--xlabs-green-500);
}
.btn:disabled,
.btn[disabled] {
  pointer-events: none;
  opacity: 0.5;
}
.btn:active:not(:disabled) { transform: translateY(1px); }

.prose-xlabs h2 { color: #fff; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.5rem; }
.prose-xlabs h3 { color: #fff; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.25rem; }
.prose-xlabs p { color: #cbd5e1; line-height: 1.75; margin-bottom: 1rem; }
.prose-xlabs ul { list-style: disc; padding-left: 1.5rem; color: #cbd5e1; margin-bottom: 1rem; }
.prose-xlabs ol { list-style: decimal; padding-left: 1.5rem; color: #cbd5e1; margin-bottom: 1rem; }
.prose-xlabs li { margin-bottom: 0.25rem; }
.prose-xlabs strong { color: #fff; font-weight: 600; }
.prose-xlabs a { color: #5CE06B; text-decoration: underline; }
.prose-xlabs blockquote { border-left: 3px solid #3CD64C; padding-left: 1rem; color: #94a3b8; font-style: italic; margin: 1rem 0; }
.prose-xlabs code { background: #1E293B; color: #5CE06B; padding: 0.1rem 0.4rem; border-radius: 0.25rem; font-size: 0.875em; }
.prose-xlabs table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose-xlabs th, .prose-xlabs td { border: 1px solid #334155; padding: 0.5rem 0.75rem; color: #cbd5e1; text-align: left; }
.prose-xlabs th { background: #1E293B; color: #fff; font-weight: 600; }

/* Inline SVG diagrams used as didactic figures inside module content. */
.prose-xlabs figure {
  margin: 1.75rem 0;
  background: linear-gradient(160deg, rgba(11,17,32,0.85) 0%, rgba(7,11,20,0.95) 100%);
  border: 1px solid var(--xlabs-slate-800);
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 0.75rem;
  overflow: hidden;
}
.prose-xlabs figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
}
.prose-xlabs figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
  line-height: 1.45;
}
.prose-xlabs figcaption strong { color: #cbd5e1; font-style: normal; }

/* Hide built-in scrollbar from a contained element */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
