/* ==========================================================================
   Nexus API Portal CSS (Developer Aesthetic)
   ========================================================================== */

:root {
  --bg-main: #FFFFFF;
  --bg-offset: #F8FAFC;
  --bg-dark: #0F172A;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --border: #E2E8F0;
  --border-dark: #334155;
  --font-sans: system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-sans); color: var(--text-main); background: var(--bg-main); line-height: 1.6; }
a { text-decoration: none; color: var(--accent); transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* Layout */
.navbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; color: var(--bg-dark); }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 1.5rem; font-size: 0.9rem; font-weight: 500; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--bg-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* Typography */
h1 { font-size: 3rem; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; letter-spacing: -0.02em; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-offset); padding: 0.2em 0.4em; border-radius: 4px; color: #DB2777; }

/* Code Blocks */
.code-window {
  background: var(--bg-dark); border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.code-header { background: #1E293B; padding: 0.75rem 1rem; display: flex; gap: 8px; border-bottom: 1px solid var(--border-dark); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #EF4444; } .dot.yellow { background: #F59E0B; } .dot.green { background: #10B981; }
pre { padding: 1.5rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.9rem; color: #E2E8F0; line-height: 1.5; margin: 0; }
.token-method { color: #60A5FA; } .token-url { color: #A7F3D0; } .token-string { color: #FBBF24; }

/* Cards & Widgets */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.sdk-card { border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; transition: border-color 0.2s, box-shadow 0.2s; }
.sdk-card:hover { border-color: var(--accent); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.sdk-title { font-weight: 600; font-size: 1.1rem; color: var(--bg-dark); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }

.status-widget {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: #ECFDF5; border: 1px solid #A7F3D0; border-radius: 20px; font-size: 0.85rem; font-weight: 500; color: #065F46;
}
.status-indicator { width: 8px; height: 8px; background: #10B981; border-radius: 50%; box-shadow: 0 0 8px #10B981; }

.endpoint-block { margin-bottom: 2rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.endpoint-header { background: var(--bg-offset); padding: 1rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 1rem; }
.method-badge { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.method-get { background: #DBEAFE; color: #1D4ED8; }
.method-post { background: #D1FAE5; color: #047857; }
.endpoint-url { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 6px; font-weight: 500; transition: background 0.2s; }
.btn-primary { background: var(--bg-dark); color: white; }
.btn-primary:hover { background: #1E293B; color: white; }
