.api-docs-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: calc(100vh - 140px);
}

.docs-header {
  text-align: center;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.docs-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1f2937, #374151);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.docs-header p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.base-url {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.5rem;
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.95rem;
  color: #10b981;
  font-weight: 600;
  word-break: break-all;
}

.docs-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.docs-section h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.auth-info {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.auth-info h3 {
  color: #3b82f6;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.auth-info p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.auth-info p:last-child {
  margin-bottom: 0;
}

.auth-info ul {
  margin-left: 1.5rem;
  color: #6b7280;
}

.auth-info li {
  margin-bottom: 0.5rem;
}

.endpoint {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.endpoint:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.endpoint:last-child {
  margin-bottom: 0;
}

.endpoint-header {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.endpoint-method {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.method-get {
  background: #10b981;
  color: white;
}
.method-post {
  background: #3b82f6;
  color: white;
}
.method-put {
  background: #f59e0b;
  color: white;
}
.method-delete {
  background: #ef4444;
  color: white;
}

.endpoint-path {
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.endpoint-body {
  padding: 1.5rem;
}

.endpoint-description {
  margin-bottom: 1.5rem;
  color: #6b7280;
  line-height: 1.6;
}

.code-block {
  background: #1f2937;
  color: #f9fafb;
  border-radius: 12px;
  padding: 1.25rem;
  font-family: "Monaco", "Consolas", monospace;
  font-size: 0.875rem;
  overflow-x: auto;
  margin: 1rem 0;
  position: relative;
  line-height: 1.5;
}

.code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 4rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #9ca3af;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.response-example {
  margin-top: 1.5rem;
}

.response-example:first-child {
  margin-top: 0;
}

.response-example h4 {
  color: #374151;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.parameter-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.parameter-table th {
  background: #f8fafc;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.875rem;
}

.parameter-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: #6b7280;
  vertical-align: top;
}

.parameter-table tr:last-child td {
  border-bottom: none;
}

.parameter-table code {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 0.25rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: "Monaco", "Consolas", monospace;
}

.param-required {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.param-optional {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-code {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: "Monaco", "Consolas", monospace;
}

.status-200 {
  background: #dcfce7;
  color: #166534;
}
.status-201 {
  background: #dcfce7;
  color: #166534;
}
.status-401 {
  background: #fee2e2;
  color: #991b1b;
}
.status-403 {
  background: #fee2e2;
  color: #991b1b;
}
.status-404 {
  background: #fee2e2;
  color: #991b1b;
}

/* Mobile-first base is already small. Enhancements */
@media (min-width: 481px) {
  .docs-header {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .docs-section {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 361px) {
  .base-url {
    font-size: 1.1rem;
    word-break: normal;
  }

  .endpoint-path {
    font-size: 1.125rem;
  }
}

@media (min-width: 769px) {
  .api-docs-page {
    padding: 2rem 1rem;
    min-height: calc(100vh - 140px);
  }

  .docs-header {
    padding: 3rem 2rem;
    border-radius: 24px;
  }

  .docs-header h1 {
    font-size: 2.5rem;
  }

  .docs-header p {
    font-size: 1.125rem;
  }

  .base-url {
    font-size: 1.1rem;
    padding: 1rem;
  }

  .docs-section {
    border-radius: 20px;
    padding: 2.5rem;
  }

  .docs-section h2 {
    font-size: 1.875rem;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .section-icon {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .endpoint-header {
    padding: 1.25rem 1.5rem;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .endpoint-path {
    font-size: 1.125rem;
  }

  .endpoint-body {
    padding: 1.5rem;
  }

  .auth-info {
    padding: 1.5rem;
  }

  .parameter-table th,
  .parameter-table td {
    padding: 0.875rem 1rem;
    font-size: inherit;
  }

  .code-block {
    padding: 1.25rem;
    font-size: 0.875rem;
  }
}

/* Smallest screen special cases handled in base */
