/* Docs layout */
.docs-layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 64px;
  min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
}

.docs-sidebar::-webkit-scrollbar { width: 3px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }

.sidebar-group { margin-bottom: 20px; }

.sidebar-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--dim);
  margin-bottom: 8px;
  padding-left: 10px;
}

.sidebar-link {
  display: block;
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.12s;
  margin-bottom: 1px;
}

.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.sidebar-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  font-weight: 600;
}

.nav-links .active { color: var(--text) !important; }

/* Content */
.docs-content {
  flex: 1;
  padding: 32px 40px 80px;
  max-width: 780px;
}

.docs-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  margin-top: 48px;
  letter-spacing: -0.5px;
}

.docs-content h1:first-child { margin-top: 0; }

.docs-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.docs-content h1 + h2 { border-top: none; margin-top: 8px; padding-top: 0; }

.docs-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}

.docs-content p {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 14px;
}

.docs-content ul, .docs-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.docs-content li {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 4px;
}

.docs-content code {
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  font-size: 13px;
  color: var(--neon, #7c6ef0);
}

.docs-content a { color: #7c6ef0; }
.docs-content a:hover { text-decoration: underline; }

/* Kbd */
kbd {
  display: inline-block;
  background: #1f1f23;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Consolas', monospace;
  font-size: 12px;
  color: #ececef;
  min-width: 20px;
  text-align: center;
}

/* Steps */
.steps { margin: 16px 0 20px; }

.step {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1f1f23;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #7c6ef0;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}

.step-body p { margin-bottom: 0; }

/* Info box */
.info-box {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
}

.info-box.accent { border-left: 3px solid #7c6ef0; }

.info-icon { font-size: 16px; flex-shrink: 0; }

/* Mockup */
.mockup {
  background: #111113;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
  max-width: 340px;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.m-logo { background: #7c6ef0; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 4px; }
.m-title { font-size: 12px; font-weight: 700; color: #ececef; }
.m-version { font-size: 8px; color: #52525a; }
.m-badge { font-size: 8px; background: #1f1f23; color: #52525a; padding: 1px 4px; border-radius: 3px; margin-left: auto; }

.mockup-search {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.m-search-icon { font-size: 12px; opacity: 0.3; }
.m-placeholder { font-size: 11px; color: #52525a; flex: 1; }
.m-ai { background: #7c6ef0; color: #fff; font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 3px; }

.mockup-filters {
  display: flex; gap: 3px; padding: 5px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.m-filter { font-size: 9px; color: #52525a; padding: 2px 6px; border-radius: 3px; }
.m-filter.active { background: #1f1f23; color: #ececef; }

.mockup-body { padding: 24px; text-align: center; }
.m-empty { font-size: 12px; color: #52525a; }

/* Key shortcuts table */
.key-shortcuts { margin: 16px 0; }

.ks-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ks-row span { font-size: 13px; color: var(--dim); }

/* Compare table */
.compare-table { margin: 16px 0; overflow-x: auto; }

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
}

.compare-table td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--dim);
}

.compare-table .check { color: #3ecf71; font-size: 16px; text-align: center; }
.compare-table .cross { color: #ef4444; font-size: 16px; text-align: center; }

/* Feature highlights */
.feature-highlights { margin: 14px 0; }

.fh {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
}

.fh-icon { font-size: 18px; flex-shrink: 0; }

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 14px 0;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dim);
  padding: 6px 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
}

.cat-badge {
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Lens examples */
.lens-examples { margin: 14px 0; }

.lens-ex {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.lens-trigger { font-weight: 600; color: var(--text); min-width: 140px; }
.lens-arrow { color: #52525a; }
.lens-result { color: var(--dim); }

/* AI examples */
.ai-examples { margin: 14px 0; }

.ai-ex {
  padding: 12px 14px;
  background: rgba(124,110,240,0.04);
  border: 1px solid rgba(124,110,240,0.1);
  border-radius: 8px;
  margin-bottom: 6px;
}

.ai-query {
  font-size: 14px;
  font-weight: 600;
  color: #7c6ef0;
  font-style: italic;
  margin-bottom: 4px;
}

.ai-desc { font-size: 12px; color: var(--dim); }

/* Pro tag */
.pro-tag {
  display: inline-block;
  background: rgba(124,110,240,0.12);
  color: #7c6ef0;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}

/* Clean options doc */
.clean-options-doc {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.clean-opt {
  background: #1f1f23;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #8b8b92;
}

.clean-opt.active { color: #7c6ef0; border-color: rgba(124,110,240,0.3); }

/* Security grid */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.sec-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.sec-icon { font-size: 20px; margin-bottom: 6px; }
.sec-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.sec-card p { font-size: 12px; margin-bottom: 0; }

/* FAQ */
.faq-list { margin: 14px 0; }

.faq {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 4px;
  overflow: hidden;
}

.faq summary {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.12s;
}

.faq summary:hover { background: rgba(255,255,255,0.03); }

.faq summary::after {
  content: '+';
  font-size: 18px;
  color: #52525a;
  font-weight: 400;
}

.faq[open] summary::after { content: '-'; }

.faq p {
  padding: 0 14px 12px;
  font-size: 13px;
  margin: 0;
}

/* Video placeholder */
.video-placeholder {
  background: #111113;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 60px 24px;
  text-align: center;
  margin: 16px 0;
}

.video-play {
  font-size: 40px;
  color: #52525a;
  margin-bottom: 8px;
}

.video-placeholder p { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.video-placeholder span { font-size: 12px; color: #52525a; }

/* Responsive */
@media (max-width: 768px) {
  .docs-layout { flex-direction: column; }
  .docs-sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 12px;
  }
  .sidebar-group { display: flex; gap: 4px; margin-bottom: 0; }
  .sidebar-title { display: none; }
  .sidebar-link { white-space: nowrap; font-size: 12px; padding: 4px 8px; }
  .docs-content { padding: 20px 16px 60px; }
  .docs-content h1 { font-size: 22px; }
  .security-grid, .cat-grid { grid-template-columns: 1fr; }
  .lens-ex { flex-direction: column; gap: 4px; }
  .lens-trigger { min-width: auto; }
  .lens-arrow { display: none; }
}
