/* Cloud Health Office — Documentation Styles
   Extends sentinel.css with docs-specific layout.
   Toned-down glow for long-form readability. */

/* === DOCS LAYOUT === */
.docs-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  max-width: 1440px;
  margin: 0 auto;
}

/* === SIDEBAR === */
.docs-sidebar {
  background: #050505;
  border-right: 1px solid rgba(0,255,255,0.12);
  padding: 32px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,255,0.2) transparent;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.2); border-radius: 2px; }
.docs-sidebar-inner { padding: 0 24px; }
.docs-sidebar-section { margin-bottom: 28px; }
.docs-sidebar-section-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(0,255,255,0.5);
  margin-bottom: 12px; padding-left: 12px;
}
.docs-sidebar ul { list-style: none; margin: 0; padding: 0; }
.docs-sidebar li { margin: 0; }
.docs-sidebar a {
  display: block; padding: 7px 12px; font-size: 0.88rem;
  color: rgba(176,176,176,0.85); border-radius: 4px;
  transition: all 0.2s ease; text-shadow: none;
  border-left: 2px solid transparent;
}
.docs-sidebar a:hover {
  color: var(--neon-cyan); background: rgba(0,255,255,0.06); text-shadow: none;
}
.docs-sidebar a.active {
  color: #fff; background: rgba(0,255,255,0.1);
  border-left-color: var(--neon-cyan); font-weight: 600;
}
.docs-sidebar .toc-sub { padding-left: 14px; }
.docs-sidebar .toc-sub a { font-size: 0.82rem; padding: 5px 12px; color: rgba(176,176,176,0.6); }

/* === MAIN CONTENT === */
.docs-content { padding: 40px 56px 80px; max-width: 900px; min-width: 0; }

/* Breadcrumbs */
.docs-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px; font-size: 0.82rem;
}
.docs-breadcrumb a { color: rgba(176,176,176,0.6); text-shadow: none; }
.docs-breadcrumb a:hover { color: var(--neon-cyan); }
.docs-breadcrumb .sep { color: rgba(176,176,176,0.3); font-size: 0.7rem; }
.docs-breadcrumb .current { color: rgba(176,176,176,0.9); }

/* Headings */
.docs-content h1 {
  font-size: 2.4rem; letter-spacing: 0.5px; margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(0,255,255,0.4);
}
.docs-subtitle {
  font-size: 1.1rem; color: rgba(176,176,176,0.7);
  margin-bottom: 40px; line-height: 1.6;
}
.docs-content h2 {
  font-size: 1.65rem; margin-top: 56px; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(0,255,255,0.12);
  text-shadow: 0 0 10px rgba(0,255,255,0.25);
}
.docs-content h3 {
  font-size: 1.25rem; margin-top: 36px; margin-bottom: 12px;
  text-shadow: none; color: #fff;
}
.docs-content h4 {
  font-size: 1.05rem; margin-top: 24px; margin-bottom: 8px;
  text-shadow: none; color: var(--neon-green);
}
.docs-content p {
  font-size: 0.97rem; line-height: 1.75;
  color: rgba(190,190,190,0.92); margin-bottom: 20px;
}

/* === CODE BLOCKS === */
.docs-content pre {
  background: #0a0a0a; border: 1px solid rgba(0,255,255,0.15);
  border-radius: 8px; padding: 20px 24px; overflow-x: auto;
  margin: 20px 0 28px; font-size: 0.88rem; line-height: 1.6;
}
.docs-content pre code {
  background: none; padding: 0;
  font-family: 'Cascadia Code','Fira Code','Courier New',monospace;
  color: rgba(0,255,136,0.9);
}
.docs-content code {
  background: rgba(0,255,255,0.06); border: 1px solid rgba(0,255,255,0.1);
  color: var(--neon-cyan); padding: 2px 7px; border-radius: 4px;
  font-size: 0.88em; font-family: 'Cascadia Code','Fira Code','Courier New',monospace;
}
.code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,255,255,0.06); border: 1px solid rgba(0,255,255,0.15);
  border-bottom: none; border-radius: 8px 8px 0 0;
  padding: 8px 16px; font-size: 0.78rem; color: rgba(176,176,176,0.7);
  font-family: 'Cascadia Code','Fira Code',monospace;
}
.code-block-header + pre { margin-top: 0; border-radius: 0 0 8px 8px; }

/* Comment lines in code */
.code-comment { color: rgba(128,128,128,0.7); }

/* === STEP INDICATORS === */
.step { display: flex; gap: 20px; margin: 28px 0; align-items: flex-start; }
.step-number {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--neon-cyan); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; margin-top: 2px;
  box-shadow: 0 0 12px rgba(0,255,255,0.3);
}
.step-number.green { background: var(--neon-green); box-shadow: 0 0 12px rgba(0,255,136,0.3); }
.step-body { flex: 1; min-width: 0; }
.step-body h3 { margin-top: 0; }

/* === CALLOUT BOXES === */
.callout {
  border-radius: 8px; padding: 16px 20px;
  margin: 24px 0; font-size: 0.92rem; line-height: 1.65;
}
.callout-info {
  background: rgba(0,255,255,0.04); border: 1px solid rgba(0,255,255,0.2);
  border-left: 3px solid var(--neon-cyan);
}
.callout-success {
  background: rgba(0,255,136,0.04); border: 1px solid rgba(0,255,136,0.2);
  border-left: 3px solid var(--neon-green);
}
.callout-warning {
  background: rgba(255,200,0,0.04); border: 1px solid rgba(255,200,0,0.2);
  border-left: 3px solid #ffc800;
}
.callout-title {
  font-weight: 700; margin-bottom: 6px; color: #fff;
  font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.callout p { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* === TABLES === */
.docs-content table {
  width: 100%; border-collapse: collapse;
  margin: 20px 0 28px; font-size: 0.9rem;
}
.docs-content th {
  background: rgba(0,255,255,0.06); color: var(--neon-cyan);
  font-weight: 600; text-align: left; padding: 10px 14px;
  border: 1px solid rgba(0,255,255,0.15);
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.docs-content td {
  padding: 10px 14px; border: 1px solid rgba(0,255,255,0.08);
  color: rgba(190,190,190,0.9);
}
.docs-content tr:hover { background: rgba(0,255,255,0.03); }

/* Status badges */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-complete { background: rgba(0,255,136,0.15); color: #00ff88; border: 1px solid rgba(0,255,136,0.3); }
.badge-production { background: rgba(0,255,255,0.12); color: #00ffff; border: 1px solid rgba(0,255,255,0.3); }
.badge-required { background: rgba(255,200,0,0.12); color: #ffc800; border: 1px solid rgba(255,200,0,0.3); }

/* === DIAGRAMS === */
.docs-diagram { margin: 32px 0; text-align: center; }
.docs-diagram img, .docs-diagram svg {
  max-width: 100%; height: auto; border-radius: 8px;
  border: 1px solid rgba(0,255,255,0.1);
}
.docs-diagram figcaption {
  font-size: 0.82rem; color: rgba(176,176,176,0.5);
  margin-top: 10px; font-style: normal;
}

/* === DOCS HUB CARDS === */
.docs-hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin: 40px 0;
}
.docs-hub-card {
  background: #0a0a0a; border: 1px solid rgba(0,255,255,0.15);
  border-radius: 10px; padding: 28px 24px;
  transition: all 0.3s ease; text-decoration: none; display: block;
}
.docs-hub-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 24px rgba(0,255,136,0.15);
  transform: translateY(-3px);
}
.docs-hub-card-icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.docs-hub-card h3 { color: #fff; font-size: 1.1rem; margin: 0 0 8px; text-shadow: none; }
.docs-hub-card p { color: rgba(176,176,176,0.7); font-size: 0.88rem; margin: 0; line-height: 1.55; }
.docs-hub-card .card-arrow {
  display: inline-block; margin-top: 14px;
  color: var(--neon-cyan); font-size: 0.85rem; font-weight: 600;
}

/* Time estimate pills */
.time-estimate {
  display: inline-block; background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2); color: #00ff88;
  padding: 3px 10px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 600; margin-left: 8px;
}

/* === PREV / NEXT === */
.docs-pager {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid rgba(0,255,255,0.1);
}
.docs-pager a {
  display: block; padding: 16px 20px;
  background: #0a0a0a; border: 1px solid rgba(0,255,255,0.12);
  border-radius: 8px; text-decoration: none;
  transition: all 0.2s ease; max-width: 48%;
}
.docs-pager a:hover { border-color: var(--neon-cyan); background: rgba(0,255,255,0.04); }
.docs-pager .pager-label {
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(176,176,176,0.5); margin-bottom: 4px;
}
.docs-pager .pager-title { color: var(--neon-cyan); font-weight: 600; font-size: 0.92rem; }
.docs-pager .next { text-align: right; margin-left: auto; }

/* === MOBILE TOGGLE === */
.docs-mobile-toggle {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 1100;
  background: var(--neon-cyan); color: #000; border: none; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 0 20px rgba(0,255,255,0.4);
}
.docs-sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 1040;
  background: rgba(0,0,0,0.7);
}
.docs-sidebar-overlay.open { display: block; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .docs-wrapper { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: fixed; left: -280px; top: 64px; width: 270px;
    height: calc(100vh - 64px); z-index: 1050; transition: left 0.3s ease;
  }
  .docs-sidebar.open { left: 0; box-shadow: 4px 0 30px rgba(0,0,0,0.8); }
  .docs-mobile-toggle { display: block; }
  .docs-content { padding: 28px 20px 80px; }
  .docs-hub-grid { grid-template-columns: 1fr; }
  .docs-pager { flex-direction: column; }
  .docs-pager a { max-width: 100%; }
}
@media (max-width: 600px) {
  .docs-content h1 { font-size: 1.7rem; }
  .docs-content h2 { font-size: 1.3rem; }
  .step { flex-direction: column; gap: 10px; }
  .docs-content pre { padding: 14px 16px; font-size: 0.82rem; }
}
