/* tangble — docs.css
   Pottr developer documentation specific styles.
   Sidebar navigation, code block presentation, API method badges, and callouts. */

/* ── Typography & Prose ── */
.docs-prose h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  color: #171717;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .docs-prose h1 {
    font-size: 36px;
  }
}

.docs-prose .docs-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #525252;
  margin-bottom: 32px;
}

.docs-prose h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #171717;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.docs-prose h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #171717;
  margin-top: 28px;
  margin-bottom: 12px;
}

.docs-prose p {
  font-size: 15px;
  line-height: 1.7;
  color: #404040;
  margin-bottom: 16px;
}

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

.docs-prose ul {
  list-style-type: disc;
}

.docs-prose ol {
  list-style-type: decimal;
}

.docs-prose li {
  font-size: 15px;
  line-height: 1.7;
  color: #404040;
  margin-bottom: 6px;
}

.docs-prose strong {
  font-weight: 600;
  color: #171717;
}

.docs-prose code:not(pre code) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background-color: #f5f5f5;
  color: #171717;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
}

/* ── Callout Blocks ── */
.docs-callout {
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  border: 1px solid transparent;
}

.docs-callout-note {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

.docs-callout-note .callout-title {
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-callout-tip {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.docs-callout-tip .callout-title {
  color: #14532d;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-callout-warning {
  background-color: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.docs-callout-warning .callout-title {
  color: #78350f;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-callout p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  color: inherit;
}

/* ── Code Blocks ── */
.docs-code-block {
  margin: 20px 0;
  border-radius: 8px;
  background-color: #171717;
  color: #f5f5f5;
  overflow: hidden;
  border: 1px solid #262626;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.docs-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background-color: #262626;
  border-bottom: 1px solid #333333;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #a3a3a3;
}

.docs-code-copy-btn {
  background: transparent;
  border: none;
  color: #a3a3a3;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.docs-code-copy-btn:hover {
  color: #ffffff;
  background-color: #404040;
}

.docs-code-copy-btn.copied {
  color: #86efac;
}

.docs-code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: #e5e5e5;
  tab-size: 2;
}

.docs-code-block pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* Simple Syntax Coloring for Code Blocks */
.code-kw  { color: #93c5fd; } /* keywords */
.code-str { color: #86efac; } /* strings */
.code-num { color: #fca5a5; } /* numbers */
.code-prop{ color: #e2e8f0; } /* property names */
.code-cmt { color: #737373; font-style: italic; } /* comments */
.code-fn  { color: #fde047; } /* functions */
.code-punct{ color: #a3a3a3; } /* punctuation */

/* ── HTTP Method Badges ── */
.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
  text-transform: uppercase;
}

.method-badge-get {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.method-badge-post {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.method-badge-put {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.method-badge-patch {
  background-color: #fef9c3;
  color: #a16207;
  border: 1px solid #fef08a;
}

.method-badge-delete {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ── Endpoint Headers ── */
.docs-endpoint-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 14px 18px;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.docs-endpoint-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #171717;
}

.docs-endpoint-scope {
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  background-color: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  margin-left: auto;
}

/* ── Tables ── */
.docs-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.docs-table th {
  background-color: #f9fafb;
  padding: 10px 14px;
  font-weight: 600;
  color: #171717;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.docs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #404040;
  vertical-align: top;
  line-height: 1.5;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table tr:hover td {
  background-color: #fafafa;
}

/* ── Sidebar Navigation Link States ── */
.docs-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #525252;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.12s ease;
  line-height: 1.4;
}

.docs-nav-link:hover {
  color: #171717;
  background-color: #f5f5f5;
}

.docs-nav-link.active {
  color: #075985; /* sky-800 */
  background-color: #e0f2fe; /* sky-100 */
  font-weight: 600;
}

/* ── Prev / Next Navigation ── */
.docs-pagination {
  display: flex;
  flex-direction: column;
  sm:flex-direction: row;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e5e5;
}

.docs-pagination-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  background-color: #ffffff;
  transition: all 0.15s ease;
}

.docs-pagination-card:hover {
  border-color: #a3a3a3;
  background-color: #fafafa;
  transform: translateY(-1px);
}

.docs-pagination-card .pagination-label {
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.docs-pagination-card .pagination-title {
  font-size: 16px;
  font-weight: 600;
  color: #171717;
}

/* Custom Scrollbar for sidebar and code */
.docs-sidebar::-webkit-scrollbar,
.docs-code-block pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.docs-sidebar::-webkit-scrollbar-thumb,
.docs-code-block pre::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 3px;
}
.docs-code-block pre::-webkit-scrollbar-thumb {
  background: #404040;
}
