/* Bidyear API Documentation — shared styles */
:root {
  --api-primary: #2563eb;
  --api-primary-dark: #1d4ed8;
  --api-bg: #0f172a;
  --api-sidebar: #1e293b;
  --api-surface: #ffffff;
  --api-border: #e2e8f0;
  --api-text: #334155;
  --api-muted: #64748b;
  --api-get: #059669;
  --api-post: #2563eb;
  --api-delete: #dc2626;
  --api-code-bg: #1e293b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--api-text);
  background: #f8fafc;
  line-height: 1.6;
}

.api-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.api-sidebar {
  background: var(--api-sidebar);
  color: #e2e8f0;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.api-sidebar-brand {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1rem;
}

.api-sidebar-brand h1 {
  font-size: 1.15rem;
  margin: 0 0 .25rem;
  color: #fff;
}

.api-sidebar-brand small {
  color: #94a3b8;
  font-size: .8rem;
}

.api-nav-section {
  padding: .5rem 1.25rem .25rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  font-weight: 600;
}

.api-nav a {
  display: block;
  padding: .45rem 1.25rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: .9rem;
  border-left: 3px solid transparent;
}

.api-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.api-nav a.active {
  background: rgba(37,99,235,.15);
  color: #93c5fd;
  border-left-color: var(--api-primary);
}

.api-main {
  padding: 2rem 2.5rem 4rem;
  max-width: 960px;
}

.api-hero {
  background: linear-gradient(135deg, var(--api-primary) 0%, #7c3aed 100%);
  color: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.api-hero h2 { margin: 0 0 .5rem; font-size: 1.75rem; }
.api-hero p { margin: 0; opacity: .9; }

.api-card {
  background: var(--api-surface);
  border: 1px solid var(--api-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.api-endpoint {
  border: 1px solid var(--api-border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--api-border);
  cursor: pointer;
}

.api-method {
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 6px;
  color: #fff;
  min-width: 52px;
  text-align: center;
}

.api-method.get { background: var(--api-get); }
.api-method.post { background: var(--api-post); }
.api-method.delete { background: var(--api-delete); }

.api-path {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: .9rem;
  font-weight: 600;
}

.api-endpoint-body {
  padding: 1.25rem;
}

.api-endpoint-body h4 {
  margin: 1rem 0 .5rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--api-muted);
}

.api-endpoint-body h4:first-child { margin-top: 0; }

pre.api-code {
  background: var(--api-code-bg);
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.5;
  margin: 0;
}

.api-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.api-param-table th,
.api-param-table td {
  border: 1px solid var(--api-border);
  padding: .5rem .75rem;
  text-align: left;
}

.api-param-table th { background: #f1f5f9; font-weight: 600; }

.api-badge {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
}

.api-badge.public { background: #dcfce7; color: #166534; }
.api-badge.auth { background: #fef3c7; color: #92400e; }

.api-alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: .9rem;
}

.api-alert.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.api-alert.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

@media (max-width: 768px) {
  .api-layout { grid-template-columns: 1fr; }
  .api-sidebar { position: relative; height: auto; }
}
