/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-surface-hover: #141414;
  --color-border: #1d1d1f;
  --color-text: #f5f5f7;
  --color-text-muted: #86868b;
  --color-primary: #f5f5f7;
  --color-primary-hover: #ffffff;
  --color-accent: #86868b;
  --sidebar-width: 260px;
  --header-height: 56px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  letter-spacing: 0;
  font-weight: 400;
}

a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-text);
}

/* App Container */
.app {
  min-height: 100vh;
}

/* Docs Layout */
.docs-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
  width: var(--sidebar-width);
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-menu {
  list-style: none;
  padding: 1rem 0;
  flex: 1;
}

.sidebar-menu li {
  margin: 0;
}

.sidebar-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: color 0.15s ease;
}

.sidebar-menu a:hover {
  color: var(--color-text);
}

.sidebar-menu li.active a {
  color: var(--color-text);
  font-weight: 500;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.api-reference-link {
  display: block;
  padding: 0.625rem 1rem;
  background-color: var(--color-surface-hover);
  color: var(--color-text) !important;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.15s ease;
}

.api-reference-link:hover {
  background-color: var(--color-border);
}

/* Main Content */
.docs-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 5rem 6rem;
  max-width: 760px;
}

.docs-content article {
  max-width: 100%;
}

/* Typography */
.docs-content h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  color: var(--color-text);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.docs-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  color: var(--color-text);
  letter-spacing: -0.015em;
}

.docs-content p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.docs-content ul,
.docs-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.docs-content li {
  margin-bottom: 0.625rem;
}

/* Code Blocks */
.docs-content code {
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.875em;
  background-color: var(--color-surface-hover);
  padding: 0.2em 0.45em;
  border-radius: 5px;
  color: var(--color-text);
  font-weight: 400;
}

.docs-content pre {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.75rem;
}

.docs-content pre code {
  background: none;
  padding: 0;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0;
}

/* Tables */
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
}

.docs-content th,
.docs-content td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.docs-content th {
  background-color: transparent;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text-muted);
}

.docs-content td {
  color: var(--color-text-muted);
}

.docs-content tr:last-child td {
  border-bottom: none;
}

/* Blockquotes */
.docs-content blockquote {
  border-left: 2px solid var(--color-text-muted);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-sidebar {
    width: 100%;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .docs-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
  }

  .docs-container {
    flex-direction: column;
  }
}
