/* Docs Layout */
.docs-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: 72px;
  width: 260px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.docs-sidebar-inner {
  padding: 2rem 1.5rem;
}

.docs-sidebar h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
}

.docs-sidebar h4:first-child {
  margin-top: 0;
}

.docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-sidebar li {
  margin: 0;
}

.docs-sidebar a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.15s;
}

.docs-sidebar a:hover {
  color: var(--text-primary);
  background: rgba(124, 77, 255, 0.08);
}

.docs-sidebar a.active {
  color: var(--purple-400);
  background: rgba(124, 77, 255, 0.12);
  font-weight: 500;
}

/* Content */
.docs-content {
  flex: 1;
  max-width: 800px;
  padding: 3rem 3rem 6rem;
}

.docs-content section {
  margin-bottom: 3rem;
  padding-top: 1rem;
}

.docs-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--purple-400), var(--purple-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.docs-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.docs-content ul,
.docs-content ol {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-content li {
  margin-bottom: 0.4rem;
}

.docs-content a {
  color: var(--purple-400);
  text-decoration: none;
}

.docs-content a:hover {
  text-decoration: underline;
}

.docs-content code {
  background: rgba(124, 77, 255, 0.12);
  color: var(--purple-300);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.docs-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Callout */
.docs-callout {
  background: rgba(124, 77, 255, 0.08);
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.docs-callout strong {
  display: block;
  color: var(--purple-400);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.docs-callout p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Steps */
.docs-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.docs-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.docs-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.docs-steps li strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.docs-steps li p {
  margin: 0;
  font-size: 0.95rem;
}

/* Table */
.docs-table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.docs-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-table td {
  color: var(--text-secondary);
}

.docs-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* FAQ / Accordion */
.docs-faq {
  margin: 1rem 0;
}

.docs-faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.docs-faq summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.docs-faq summary::before {
  content: '▸';
  transition: transform 0.2s;
  color: var(--purple-400);
}

.docs-faq details[open] summary::before {
  transform: rotate(90deg);
}

.docs-faq summary::-webkit-details-marker {
  display: none;
}

.docs-faq details p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 960px) {
  .docs-sidebar {
    display: none;
  }

  .docs-content {
    padding: 2rem 1.5rem 4rem;
  }
}

@media (max-width: 480px) {
  .docs-content {
    padding: 1.5rem 1rem 3rem;
  }

  .docs-content h1 {
    font-size: 1.75rem;
  }

  .docs-content h2 {
    font-size: 1.25rem;
  }
}
