/* Docs Container */
.docs-container {
  display: flex;
  min-height: calc(100vh - 200px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
}

/* Sidebar */
.docs-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.docs-sidebar h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

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

.nav-category {
  margin-bottom: 1.5rem;
}

.nav-category h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

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

.nav-category li {
  margin-bottom: 0.5rem;
}

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

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

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

/* Content Area */
.docs-content {
  flex: 1;
  min-width: 0;
}

.docs-header {
  margin-bottom: 2rem;
}

.docs-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.docs-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Docs Grid */
.docs-grid {
  display: grid;
  gap: 2rem;
}

.docs-category-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.docs-category-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

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

.docs-list li {
  margin-bottom: 1rem;
}

.doc-link {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.doc-link:hover {
  background: var(--bg-primary);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.doc-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.doc-info {
  flex: 1;
}

.doc-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.doc-preview {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Doc Article */
.doc-article {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span:last-child {
  color: var(--text-primary);
}

.doc-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.doc-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.doc-category {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.doc-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.doc-meta i {
  width: 16px;
  height: 16px;
}

.doc-body {
  margin-bottom: 2rem;
}

.markdown-content {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1rem;
}

.markdown-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.markdown-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.markdown-content p {
  margin-bottom: 1rem;
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content code {
  background: var(--bg-tertiary);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  color: var(--primary-color);
}

.markdown-content pre {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.markdown-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.markdown-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.doc-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.doc-footer h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.related-docs li {
  margin-bottom: 0.75rem;
}

.related-docs a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.related-docs a:hover {
  background: var(--bg-primary);
  transform: translateX(4px);
}

.related-docs i {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
}

/* Empty State */
.docs-empty,
.changelogs-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--text-tertiary);
}

.docs-empty h2,
.changelogs-empty h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Changelogs */
.changelogs-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.changelogs-header {
  margin-bottom: 3rem;
  text-align: center;
}

.changelogs-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.changelogs-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.changelogs-timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.version-group {
  position: relative;
}

.version-header {
  margin-bottom: 1.5rem;
}

.version-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.changelogs-list {
  display: grid;
  gap: 1.5rem;
}

.changelog-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.changelog-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.changelog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.changelog-badge i {
  width: 16px;
  height: 16px;
}

.changelog-badge-added {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.changelog-badge-fixed {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.changelog-badge-changed {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.changelog-badge-removed {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.changelog-badge-security {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.changelog-badge-deprecated {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.changelog-version {
  font-weight: 600;
  color: var(--text-primary);
}

.changelog-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.changelog-title a {
  color: inherit;
  text-decoration: none;
}

.changelog-title a:hover {
  color: var(--primary-color);
}

.changelog-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.changelog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.changelog-link:hover {
  gap: 0.75rem;
}

.changelog-link i {
  width: 16px;
  height: 16px;
}

.changelog-meta-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.changelog-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.changelog-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.changelog-info i {
  width: 16px;
  height: 16px;
}

.changelog-article {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.changelog-body {
  margin-bottom: 2rem;
}

.changelog-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.changelog-footer h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.related-changelogs li {
  margin-bottom: 0.75rem;
}

.related-changelogs a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.related-changelogs a:hover {
  background: var(--bg-primary);
  transform: translateX(4px);
}

.related-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 80px;
  text-align: center;
}

.related-badge-added {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.related-badge-fixed {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.related-badge-changed {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.related-badge-removed {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.related-badge-security {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.related-badge-deprecated {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.related-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.related-info strong {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.related-info span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.related-changelogs i {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .docs-container {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    position: static;
  }

  .docs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .docs-container,
  .changelogs-container {
    padding: 1rem;
  }

  .docs-header h1,
  .changelogs-header h1 {
    font-size: 2rem;
  }

  .doc-article,
  .changelog-article {
    padding: 1.5rem;
  }

  .doc-header h1 {
    font-size: 1.75rem;
  }

  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

