/* Developer portal — extends /styles.css */

:root {
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --code-border: #313244;
  --sidebar-w: 240px;
  --primary: #1a1a2e;
  --gold: #e8c547;
}

/* ── Dev nav override ─────────────────────────────────────────────── */
.dev-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 100; }
.dev-nav-brand { font-size: 18px; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: -0.5px; }
.dev-nav-brand span { color: var(--gold); }
.dev-nav-links { display: flex; align-items: center; gap: 20px; }
.dev-nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.dev-nav-links a:hover, .dev-nav-links a.active { color: var(--navy); }
.dev-nav-links a.btn { color: #fff; }

/* ── Dev hero ─────────────────────────────────────────────────────── */
.dev-hero { padding: 72px 0 56px; background: linear-gradient(135deg, var(--navy) 0%, #2a2a4e 100%); color: #fff; text-align: center; }
.dev-hero-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 16px; }
.dev-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 16px; }
.dev-hero p { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 32px; line-height: 1.6; }
.dev-hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Feature grid ─────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: box-shadow 0.15s; }
.feature-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.feature-card .icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.feature-card a { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; }
.feature-card a:hover { text-decoration: underline; }

/* ── Doc layout ───────────────────────────────────────────────────── */
.doc-layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; padding: 48px 24px; }
.doc-sidebar { position: sticky; top: 80px; align-self: start; }
.doc-sidebar nav a { display: block; padding: 6px 0; font-size: 14px; color: var(--text-muted); text-decoration: none; border-left: 2px solid transparent; padding-left: 12px; transition: all 0.1s; }
.doc-sidebar nav a:hover, .doc-sidebar nav a.active { color: var(--navy); border-left-color: var(--navy); font-weight: 600; }
.doc-sidebar .sidebar-section { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; margin: 20px 0 8px; }
.doc-content h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.doc-content .lead { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; }
.doc-content h2 { font-size: 24px; font-weight: 700; margin: 48px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.doc-content h3 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.doc-content p { margin-bottom: 16px; line-height: 1.7; }
.doc-content ul, .doc-content ol { padding-left: 24px; margin-bottom: 16px; }
.doc-content li { margin-bottom: 6px; line-height: 1.7; }

/* ── Code blocks ──────────────────────────────────────────────────── */
.code-block { position: relative; margin: 20px 0; }
.code-tabs { display: flex; gap: 0; border-bottom: none; }
.code-tab { padding: 8px 16px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); background: #2a2a3e; border: none; cursor: pointer; border-radius: 6px 6px 0 0; }
.code-tab.active { color: #fff; background: var(--code-bg); }
.code-panel { background: var(--code-bg); border-radius: 0 8px 8px 8px; overflow: auto; }
.code-panel pre { margin: 0; padding: 20px 24px; }
.code-panel code { font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace; font-size: 13px; color: var(--code-text); white-space: pre; line-height: 1.6; }
pre code { font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace; font-size: 13px; }
.inline-code, code:not(pre code) { background: #f0f0ec; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 13px; color: #c7254e; }
.copy-btn { position: absolute; top: 44px; right: 12px; padding: 4px 10px; font-size: 11px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; color: rgba(255,255,255,0.7); cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ── Steps ────────────────────────────────────────────────────────── */
.qs-step { display: flex; gap: 20px; margin-bottom: 40px; }
.qs-num { width: 36px; height: 36px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 4px; }
.qs-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.qs-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; }

/* ── Endpoint cards ───────────────────────────────────────────────── */
.endpoint { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.endpoint-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; }
.method { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; min-width: 52px; text-align: center; }
.method-get { background: #dbeafe; color: #1d4ed8; }
.method-post { background: #d1fae5; color: #065f46; }
.method-patch { background: #fef3c7; color: #92400e; }
.method-delete { background: #fee2e2; color: #991b1b; }
.endpoint-path { font-family: Consolas, monospace; font-size: 14px; }
.endpoint-desc { color: var(--text-muted); font-size: 14px; margin-left: auto; }

/* ── Use-case cards ───────────────────────────────────────────────── */
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.usecase-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.usecase-card .tag { display: inline-block; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; margin-bottom: 14px; letter-spacing: 0.5px; }
.usecase-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.usecase-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }

/* ── Pricing ──────────────────────────────────────────────────────── */
.api-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.api-price-card { background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 32px; }
.api-price-card.featured { border-color: var(--navy); }
.api-price-tier { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.api-price-amount { font-size: 40px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.api-price-amount span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.api-price-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.api-price-features { list-style: none; margin-bottom: 28px; }
.api-price-features li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.api-price-features li:last-child { border: none; }

/* ── Alert boxes ──────────────────────────────────────────────────── */
.callout { padding: 16px 20px; border-radius: 8px; margin: 20px 0; font-size: 14px; line-height: 1.6; }
.callout-info { background: #eff6ff; border-left: 4px solid #3b82f6; }
.callout-warning { background: #fffbeb; border-left: 4px solid #f59e0b; }
.callout-success { background: #f0fdf4; border-left: 4px solid #22c55e; }

/* ── Footer ───────────────────────────────────────────────────────── */
.dev-footer { border-top: 1px solid var(--border); padding: 40px 0; background: #fff; }
.dev-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.dev-footer-links { display: flex; gap: 20px; }
.dev-footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.dev-footer-copy { font-size: 13px; color: var(--text-muted); }

/* ── Changelog ────────────────────────────────────────────────────── */
.changelog-entry { border-left: 2px solid var(--border); padding-left: 20px; margin-bottom: 32px; position: relative; }
.changelog-entry::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); position: absolute; left: -6px; top: 5px; }
.changelog-date { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.changelog-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-right: 6px; }
.tag-feat { background: #dbeafe; color: #1d4ed8; }
.tag-fix { background: #d1fae5; color: #065f46; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { display: none; }
  .dev-hero { padding: 48px 0 40px; }
}
