/* ==========================================================================
   XSUS Tutorial & Documentation Stylesheet (docs.css)
   ========================================================================== */

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
  z-index: 2000;
  width: 0%;
  transition: width 0.1s ease-out;
}

.doc-layout {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}

.doc-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
  height: calc(100vh - var(--nav-height) - 80px);
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  padding-right: 24px;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.toc-list { list-style: none; }
.toc-item { margin-bottom: 10px; }
.toc-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: block;
}

.toc-link:hover, .toc-link.active {
  color: var(--primary-cyan);
  transform: translateX(4px);
}

.doc-content {
  max-width: 880px;
  background: rgba(10, 16, 30, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.doc-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 32px;
  margin-bottom: 40px;
}

.doc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.doc-breadcrumb a {
  color: var(--primary-cyan);
  text-decoration: none;
}

.doc-main-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.doc-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--text-main);
}

.doc-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 28px;
  margin-bottom: 14px;
  color: var(--text-main);
}

.doc-body p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.doc-body ul, .doc-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-muted);
}

.doc-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.doc-body blockquote {
  background: rgba(0, 242, 254, 0.06);
  border-left: 4px solid var(--primary-cyan);
  padding: 18px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  color: var(--text-main);
  font-style: italic;
}

.doc-body code {
  background: rgba(0, 242, 254, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
  color: var(--primary-cyan);
}

.doc-body pre {
  background: #040812;
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 24px 0;
}

.doc-body pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.2), rgba(121, 40, 202, 0.2));
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin: 48px 0;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
}

.cta-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { display: none; }
  .doc-content { padding: 24px; }
}
