/* Documentation Page Styles */
:root {
  --bg-dark: #0a0b0f;
  --bg-darker: #05060a;
  --bg-card: #12141a;
  --bg-card-hover: #1a1d25;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-muted: #8b8fa3;
  --text-dim: #5c5f70;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --green: #22c55e;
  --blue: #3b82f6;
  --red: #ef4444;
  --yellow: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 11, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.btn-nav {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.btn-nav:hover {
  background: var(--accent-light) !important;
}

/* Docs Layout */
.docs-wrapper {
  display: flex;
  padding-top: 64px;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  width: 280px;
  height: calc(100vh - 64px);
  background: var(--bg-darker);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}

.sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
  margin-bottom: 2px;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.1);
}

/* Main Content */
.content {
  flex: 1;
  margin-left: 280px;
  padding: 3rem 4rem;
  max-width: 900px;
}

section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-light);
  background: rgba(139, 92, 246, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-top: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.75rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Info Card */
.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-icon {
  font-size: 1.5rem;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-content strong {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.base-url {
  font-size: 1rem;
  background: none;
  padding: 0;
  color: var(--accent-light);
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Auth Cards */
.auth-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.auth-icon {
  font-size: 1.25rem;
}

.auth-card h3 {
  font-size: 1rem;
  margin: 0;
}

.auth-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-usage {
  background: var(--bg-darker);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

.auth-usage .label {
  color: var(--text-dim);
  margin-right: 0.5rem;
}

.auth-usage code {
  color: var(--green);
  background: none;
  padding: 0;
}

/* Steps */
.steps {
  margin: 2rem 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 1rem;
}

/* Code Blocks */
.code-block {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.code-block pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 0;
}

.code-block code {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
}

/* Method badges */
.method {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.method.get {
  background: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.method.post {
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue);
}

.method.delete {
  background: rgba(239, 68, 68, 0.2);
  color: var(--red);
}

.auth-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--yellow);
  background: rgba(245, 158, 11, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Endpoint */
.endpoint {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Tables */
.params-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
}

.params-table th,
.params-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.params-table th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.params-table td code {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-light);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.required {
  color: var(--red);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Warning Box */
.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--yellow);
}

/* Schema */
.schema-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.endpoint-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-light);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.count {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.schema-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-collapse: collapse;
  overflow: hidden;
}

.schema-table th,
.schema-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.schema-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schema-table tr:last-child td {
  border-bottom: none;
}

.schema-table td:first-child code {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-light);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.schema-table td:nth-child(2) {
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

/* CTA */
.docs-cta {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  margin-top: 4rem;
}

.docs-cta h2 {
  padding-top: 0;
  margin-bottom: 0.5rem;
}

.docs-cta p {
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }
  
  .content {
    margin-left: 240px;
    padding: 2rem;
  }
  
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .auth-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  
  .content {
    margin-left: 0;
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .step {
    flex-direction: column;
    gap: 1rem;
  }
}
