/* /css/developer.css
 *
 * Shared styles for the /developer/* portal pages. Keeps each page's
 * inline <style> block focused on layout that's truly page-specific.
 * Pairs with /css/styles.css; this file is loaded AFTER it.
 */

/* ── Code blocks ─────────────────────────────────────────────── */
.dev-code {
  background: #0e1116;
  color: #d4d4d8;
  padding: 18px 20px;
  border-radius: 10px;
  font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
  margin: 16px 0;
  border: 1px solid #1a1f29;
}
.dev-code .c-comment  { color: #6b7280; }
.dev-code .c-method   { color: #4cad49; font-weight: 700; }
.dev-code .c-string   { color: #f6c177; }
.dev-code .c-key      { color: #93c5fd; }
.dev-code .c-num      { color: #f87171; }
.dev-code .c-url      { color: #a78bfa; }

/* ── HTTP-method badges ──────────────────────────────────────── */
.dev-method {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  margin-right: 10px;
  vertical-align: middle;
}
.dev-method.post   { background: #dcfce7; color: #166534; }
.dev-method.get    { background: #dbeafe; color: #1e40af; }
.dev-method.patch  { background: #fef3c7; color: #92400e; }
.dev-method.put    { background: #fef3c7; color: #92400e; }
.dev-method.delete { background: #fee2e2; color: #991b1b; }

/* ── Path next to method badge ──────────────────────────────── */
.dev-path {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  vertical-align: middle;
}

/* ── Endpoint row container ─────────────────────────────────── */
.dev-endpoint {
  border: 1px solid var(--border, #e8eaed);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 16px 0;
  background: #fff;
}
.dev-endpoint > h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--fh, 'Plus Jakarta Sans', sans-serif);
}
.dev-endpoint > p {
  margin: 0 0 12px;
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
}

/* ── Parameter / field reference tables ─────────────────────── */
.dev-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13.5px;
}
.dev-table th {
  text-align: left;
  font-weight: 700;
  padding: 10px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-family: var(--fh, 'Plus Jakarta Sans', sans-serif);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}
.dev-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f3f5;
  vertical-align: top;
}
.dev-table td:first-child {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}
.dev-table .req {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
}
.dev-table .opt {
  display: inline-block;
  background: #f3f4f6;
  color: #6b7280;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 6px;
}
.dev-table .type {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: #7c3aed;
  font-weight: 600;
}

/* ── Two-column layout: side nav + content ──────────────────── */
.dev-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.dev-side {
  position: sticky;
  top: 96px;
  font-size: 13.5px;
}
.dev-side h4 {
  font-family: var(--fh, 'Plus Jakarta Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 16px 0 8px;
}
.dev-side a {
  display: block;
  color: #4b5563;
  text-decoration: none;
  padding: 5px 0;
  font-weight: 500;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
}
.dev-side a:hover { color: #111827; }
.dev-side a.active {
  color: #4cad49;
  border-left-color: #4cad49;
  font-weight: 600;
}

/* ── Inline code (mid-paragraph) ─────────────────────────────── */
code.dev-inline {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: #be123c;
}

/* ── Notice boxes ─────────────────────────────────────────── */
.dev-notice {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.55;
}
.dev-notice.info    { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.dev-notice.warn    { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.dev-notice.success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.dev-notice.danger  { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }

/* ── Key-pill (for big copyable credential strings) ─────────── */
.dev-key-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0e1116;
  color: #d4d4d8;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 13px;
  border: 1px solid #1f2937;
  max-width: 100%;
  overflow-x: auto;
}
.dev-key-pill .copy-btn {
  background: #4cad49;
  color: #fff;
  border: 0;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fh, 'Plus Jakarta Sans', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dev-key-pill .copy-btn:hover { background: #3e8c3b; }

/* ── Card grid for landing ─────────────────────────────────── */
.dev-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.dev-feature-card {
  background: #fff;
  border: 1px solid var(--border, #e8eaed);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dev-feature-card:hover {
  border-color: #4cad49;
  box-shadow: 0 4px 12px rgba(76, 173, 73, 0.08);
}
.dev-feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--fh, 'Plus Jakarta Sans', sans-serif);
}
.dev-feature-card p {
  margin: 0;
  color: #475467;
  font-size: 13.5px;
  line-height: 1.55;
}

@media (max-width: 780px) {
  .dev-layout { grid-template-columns: 1fr; }
  .dev-side { position: static; }
  .dev-feature-grid { grid-template-columns: 1fr; }
}
