/* ========================================================
   AEITRON DEVELOPER PORTAL STYLESHEET
   Dark Glassmorphism, Industrial Cyberpunk & Modern Docs
   ======================================================== */

:root {
  --bg-primary: #080811;
  --bg-secondary: #0f101d;
  --bg-tertiary: #16182a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(103, 61, 230, 0.5);
  --accent-purple: #673de6;
  --accent-glow: #a78bfa;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.dev-body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.dev-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 2rem;
}
.dev-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dev-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.dev-brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}
.dev-badge {
  background: rgba(103, 61, 230, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(103, 61, 230, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.dev-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.dev-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.dev-nav-link:hover, .dev-nav-link.active {
  color: #ffffff;
}
.dev-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-apanel {
  background: var(--accent-purple);
  color: #ffffff;
  padding: 0.45rem 1.15rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn-apanel:hover {
  background: #5325db;
}

/* Layout */
.dev-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}
.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sidebar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.sidebar-nav a:hover {
  color: var(--accent-glow);
}
.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}
.sc-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}
.sc-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  font-family: var(--font-mono);
}
.sc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0.8rem;
  line-height: 1.4;
}
.sc-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-glow);
  text-decoration: none;
}
.sc-link:hover {
  text-decoration: underline;
}

/* Breadcrumbs */
.dev-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}
.dev-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.dev-breadcrumbs a:hover {
  color: #ffffff;
}
.dev-breadcrumbs span.active {
  color: var(--accent-glow);
  font-weight: 600;
}

/* Article Typography */
.article-heading {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.article-subheading {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 850px;
  margin-bottom: 1.5rem;
}

/* Meta Bar */
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
}
.meta-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.meta-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

/* Sections */
.article-section {
  margin-bottom: 3.5rem;
}
.article-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 1rem;
}
.article-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1.5rem 0 0.75rem;
}
.article-section p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

/* Callout */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
}
.callout-info {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #cffafe;
}
.callout-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* Tables */
.tools-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin: 1.5rem 0;
  background: var(--bg-secondary);
}
.tools-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.tools-table th {
  background: var(--bg-tertiary);
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}
.tools-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  color: #cbd5e1;
  vertical-align: top;
}
.tools-table tr:last-child td {
  border-bottom: none;
}
.tools-table code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #f1f5f9;
}
.badge-read {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.badge-write {
  background: rgba(103, 61, 230, 0.2);
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.badge-risk {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Code Blocks */
.code-block-wrap {
  background: #06060c;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin: 1.5rem 0;
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.btn-copy {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.code-block {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.55;
  color: #f1f5f9;
}

/* Lists */
.bullet-list, .numbered-list {
  padding-left: 1.5rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}
.bullet-list li, .numbered-list li {
  margin-bottom: 0.5rem;
}
.bullet-list code, .numbered-list code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
kbd {
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #f8fafc;
}
.article-tip {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-purple);
  padding: 0.85rem 1.15rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
}
.article-tip a {
  color: var(--accent-glow);
  text-decoration: underline;
}

/* Endpoint Cards */
.endpoint-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
}
.endpoint-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
}
.ep-method {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
}
.ep-method.post {
  background: rgba(103, 61, 230, 0.25);
  color: #a78bfa;
}
.ep-method.get {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.ep-url {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}
.ep-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Step Boxes */
.step-box {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
  margin-bottom: 0.85rem;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(103, 61, 230, 0.2);
  color: var(--accent-glow);
  border: 1px solid rgba(103, 61, 230, 0.35);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  height: fit-content;
  white-space: nowrap;
}
.step-body {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}
.step-body code {
  display: block;
  background: #06060c;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a78bfa;
  margin-top: 0.5rem;
}

/* Repo Card */
.repo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(103, 61, 230, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(103, 61, 230, 0.3);
  border-radius: 14px;
  padding: 1.5rem 1.85rem;
  margin-top: 1.5rem;
}
.repo-meta {
  display: flex;
  flex-direction: column;
}
.repo-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}
.repo-url {
  font-size: 0.86rem;
  color: var(--accent-glow);
  margin-top: 0.25rem;
}
.btn-primary {
  background: var(--accent-purple);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-primary:hover {
  background: #5325db;
  transform: translateY(-1px);
}

/* Footer */
.dev-footer {
  border-top: 1px solid var(--border-color);
  background: #05050a;
  padding: 3rem 2rem;
}
.dev-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.dev-f-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}
.dev-f-sub {
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}
.dev-f-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.dev-f-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.dev-f-links a:hover {
  color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .article-sidebar {
    display: none;
  }
}

