/* Documentation Page Styles */

/* Override body styles for docs layout */
body {
  display: block;
  padding: 0;
  overflow-x: hidden;
}

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

/* Sidebar */
.docs-sidebar {
  width: 280px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.logo-video-container.small {
  width: 36px;
  height: 36px;
}

.get-api-key-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.get-api-key-btn:hover {
  background: var(--accent-hover);
}

.get-api-key-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-nav {
  padding: 1rem 0;
}

.nav-section {
  padding: 0.5rem 1.5rem 1rem;
}

.nav-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
}

/* Main content area */
.docs-main {
  flex: 1;
  margin-left: 280px;
  padding: 3rem;
  max-width: 900px;
}

.docs-content {
  max-width: 720px;
  margin: 0 auto;
}

/* Hero section */
.docs-hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.docs-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sections */
.docs-section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

.docs-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.docs-section p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Code blocks */
.code-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-primary);
  display: block;
  white-space: pre;
}

/* Method cards */
.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.method-name {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.method-signature {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.method-signature code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  white-space: pre;
}

.method-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.method-card h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}

.method-card h4:first-of-type {
  margin-top: 0;
}

/* Parameter tables */
.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.params-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-input);
}

.params-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.params-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.params-table td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.params-table code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-input);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

/* Lists */
.file-types-list,
.source-fields-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.file-types-list li,
.source-fields-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.file-types-list li::before,
.source-fields-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.file-types-list li strong,
.source-fields-list li strong {
  color: var(--text-primary);
}

.source-fields-list li code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-input);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}

/* Footer */
.docs-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.docs-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .docs-sidebar {
    width: 240px;
  }
  
  .docs-main {
    margin-left: 240px;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .docs-sidebar {
    display: none;
  }
  
  .docs-main {
    margin-left: 0;
    padding: 1.5rem;
  }
  
  .docs-hero h1 {
    font-size: 1.75rem;
  }
  
  .method-card {
    padding: 1rem;
  }
  
  .params-table {
    font-size: 0.8125rem;
  }
  
  .params-table th,
  .params-table td {
    padding: 0.5rem;
  }
}

