/* ── API Docs ───────────────────────────────────────────── */

.api-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.api-tab {
  font-size: var(--text-sm);
}

.api-info {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9em;
}
.api-info p { margin: 4px 0; }
.api-info code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.api-info a { color: var(--accent); text-decoration: none; }
.api-info a:hover { text-decoration: underline; }

.api-section {
  margin-bottom: 28px;
}
.api-section-title {
  font-size: 1.1em;
  color: #fff;
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.api-section-desc {
  font-size: 0.88em;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.api-endpoint {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}
.api-endpoint:hover { border-color: rgba(255,255,255,0.15); }

.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.api-method {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.api-method-get { background: #1a6b3c; color: #a0f0c0; }
.api-method-post { background: #1a4c7a; color: #8ec5ff; }
.api-method-patch { background: #6b5a1a; color: #f0d080; }
.api-method-delete { background: #7a1a1a; color: #ffa0a0; }
.api-method-header { background: #4a3060; color: #d0b0f0; }

.api-path {
  font-size: 0.92em;
  color: var(--text);
  font-weight: 600;
}

.api-desc {
  font-size: 0.85em;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}

.api-detail {
  font-size: 0.82em;
  color: var(--text-muted);
  margin: 3px 0;
  line-height: 1.5;
}
.api-detail code {
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.95em;
  color: var(--text);
  word-break: break-all;
}
.api-label {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 640px) {
  .api-endpoint-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .api-tabs { flex-wrap: wrap; }
}
