/* Documentation Styles - GitHub Design System Quality */

.docs-container {
  min-height: 100vh;
  background-color: #f4f3ec;
  display: flex;
  flex-direction: column;
}

/* Header */
.docs-header {
  background: #ffffff;
  border-bottom: 1px solid #d0d7de;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.docs-header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #24292f;
}

.docs-logo {
  width: 32px;
  height: 32px;
}

.docs-logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #24292f;
}

.docs-top-nav {
  display: flex;
  gap: 16px;
}

.docs-nav-link {
  font-size: 14px;
  color: #57606a;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.docs-nav-link:hover {
  background-color: #f6f8fa;
  color: #24292f;
}

.docs-nav-link.active {
  color: #24292f;
  font-weight: 500;
}

/* Body Layout */
.docs-body {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

/* Sidebar */
.docs-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid #d0d7de;
  padding: 24px 0;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
}

.docs-sidebar-title {
  font-size: 12px;
  font-weight: 600;
  color: #656d76;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 24px;
  margin-bottom: 16px;
}

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

.docs-sidebar-list li {
  margin: 0;
}

.docs-sidebar-link {
  display: block;
  padding: 8px 24px;
  font-size: 14px;
  color: #57606a;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}

.docs-sidebar-link:hover {
  background-color: #f6f8fa;
  color: #24292f;
}

.docs-sidebar-link.active {
  color: #24292f;
  font-weight: 500;
  background-color: #f6f8fa;
  border-left-color: #0969da;
}

/* Content */
.docs-content {
  flex: 1;
  padding: 32px 48px;
  max-width: 800px;
  background: #ffffff;
  margin: 24px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
}

.docs-content h1 {
  font-size: 32px;
  font-weight: 600;
  color: #24292f;
  margin-bottom: 8px;
  line-height: 1.25;
}

.docs-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #24292f;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.25;
  padding-bottom: 8px;
  border-bottom: 1px solid #d0d7de;
}

.docs-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #24292f;
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.docs-content p {
  font-size: 16px;
  color: #24292f;
  line-height: 1.6;
  margin-bottom: 16px;
}

.docs-content ul,
.docs-content ol {
  font-size: 16px;
  color: #24292f;
  line-height: 1.6;
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 8px;
}

.docs-content code {
  background: #f6f8fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color: #24292f;
  border: 1px solid #d0d7de;
}

.docs-content pre {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.docs-content pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: 14px;
}

.docs-content blockquote {
  border-left: 4px solid #0969da;
  padding-left: 16px;
  margin: 16px 0;
  color: #57606a;
  font-style: italic;
}

.docs-content .note {
  background: #ddf4ff;
  border: 1px solid #54aeff;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
}

.docs-content .note strong {
  color: #0969da;
  display: block;
  margin-bottom: 4px;
}

.docs-content .tip {
  background: #dafbe1;
  border: 1px solid #2da44e;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
}

.docs-content .tip strong {
  color: #1a7f37;
  display: block;
  margin-bottom: 4px;
}

.docs-content .warning {
  background: #fff8c5;
  border: 1px solid #d4a72c;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
}

.docs-content .warning strong {
  color: #9a6700;
  display: block;
  margin-bottom: 4px;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.docs-content table th,
.docs-content table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #d0d7de;
}

.docs-content table th {
  font-weight: 600;
  background: #f6f8fa;
  color: #24292f;
}

.docs-content table td {
  color: #57606a;
}

.docs-content .step-list {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.docs-content .step-list li {
  counter-increment: step-counter;
  margin-bottom: 16px;
  padding-left: 40px;
  position: relative;
}

.docs-content .step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: #24292f;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-body {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #d0d7de;
  }

  .docs-content {
    margin: 16px;
    padding: 24px;
  }
}

