/* Documentation Pages Styles */

.docs-container {
  padding: 40px 0 60px;
  min-height: calc(100vh - 300px);
}

/* Sidebar */
.docs-sidebar {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.docs-sidebar-header {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #fff;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid #fd5f1c;
}

.docs-sidebar-header h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
}

.docs-sidebar-header .octicon {
  margin-right: 8px;
  color: #fd5f1c;
}

html[dir="rtl"] .docs-sidebar-header .octicon {
  margin-right: 0;
  margin-left: 8px;
}

.docs-sidebar-content {
  padding: 20px;
}

.docs-section {
  margin-bottom: 24px;
}

.docs-section h4 {
  font-size: 0.9em;
  font-weight: 600;
  color: #586069;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e1e4e8;
}

.docs-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-section li {
  margin-bottom: 4px;
}

.docs-section li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #24292e;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
}

/* html[dir="rtl"] .docs-section li a {
  flex-direction: row-reverse;
} */

.docs-section li a:hover {
  background: #f6f8fa;
  color: #fd5f1c;
}

.docs-section li.active a {
  background: rgba(253, 95, 28, 0.1);
  color: #fd5f1c;
  font-weight: 600;
}

.docs-section li a .octicon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Main Content */
.docs-content {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.docs-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #fd5f1c;
}

.docs-header h1 {
  font-size: 2.5em;
  font-weight: 700;
  color: #24292e;
  margin: 0 0 12px 0;
}

.docs-subtitle {
  font-size: 1.2em;
  color: #586069;
  margin: 0;
  line-height: 1.6;
}

/* Cards */
.docs-cards {
  margin-bottom: 40px;
}

.docs-cards .card {
  border-radius: 8px;
  border: 1px solid #e1e4e8;
  transition: all 0.3s ease;
}

.docs-cards .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(253, 95, 28, 0.15);
  border-color: #fd5f1c;
}

.docs-cards .card .header {
  font-size: 1.3em;
  font-weight: 600;
  color: #24292e;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

html[dir="rtl"] .docs-cards .card .header {
  flex-direction: row-reverse;
}

.docs-cards .card .header .octicon {
  font-size: 24px;
}

.docs-cards .card .description {
  color: #586069;
  line-height: 1.6;
  margin-bottom: 16px;
}

.docs-cards .card .extra.content {
  border-top: 1px solid #e1e4e8;
  padding-top: 16px;
}

/* Help Section */
.docs-help {
  background: linear-gradient(135deg, #f6f8fa 0%, #fff 100%);
  border: 2px dashed #fd5f1c;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.docs-help h3 {
  font-size: 1.8em;
  font-weight: 700;
  color: #24292e;
  margin: 0 0 12px 0;
}

.docs-help p {
  color: #586069;
  font-size: 1.1em;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.docs-help-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Markdown Content */
.docs-content.markdown-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #24292e;
}

.docs-content.markdown-body h1,
.docs-content.markdown-body h2,
.docs-content.markdown-body h3 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.docs-content.markdown-body h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.docs-content.markdown-body h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.docs-content.markdown-body h3 {
  font-size: 1.25em;
}

.docs-content.markdown-body p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.docs-content.markdown-body a {
  color: #fd5f1c;
  text-decoration: none;
}

.docs-content.markdown-body a:hover {
  text-decoration: underline;
}

.docs-content.markdown-body code {
  background: #f6f8fa;
  border-radius: 6px;
  padding: 0.2em 0.4em;
  font-size: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.docs-content.markdown-body pre {
  background: #f6f8fa;
  border-radius: 6px;
  padding: 16px;
  overflow: auto;
  margin-bottom: 16px;
}

.docs-content.markdown-body pre code {
  background: transparent;
  padding: 0;
}

.docs-content.markdown-body img {
  max-width: 100%;
  box-sizing: content-box;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.docs-content.markdown-body blockquote {
  border-left: 4px solid #fd5f1c;
  padding: 16px;
  margin: 16px 0;
  background: #f6f8fa;
  border-radius: 0 6px 6px 0;
  color: #586069;
}

html[dir="rtl"] .docs-content.markdown-body blockquote {
  border-left: none;
  border-right: 4px solid #fd5f1c;
  border-radius: 6px 0 0 6px;
}

.docs-content.markdown-body table {
  border-collapse: collapse;
  border-spacing: 0;
  margin: 16px 0;
  width: 100%;
}

.docs-content.markdown-body table th,
.docs-content.markdown-body table td {
  padding: 8px 12px;
  border: 1px solid #e1e4e8;
}

.docs-content.markdown-body table th {
  background: #f6f8fa;
  font-weight: 600;
}

.docs-content.markdown-body table tr:nth-child(2n) {
  background: #f6f8fa;
}

.docs-content.markdown-body ul,
.docs-content.markdown-body ol {
  padding-left: 2em;
  margin-bottom: 16px;
}

html[dir="rtl"] .docs-content.markdown-body ul,
html[dir="rtl"] .docs-content.markdown-body ol {
  padding-left: 0;
  padding-right: 2em;
}

.docs-content.markdown-body li {
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-container .ui.grid {
    flex-direction: column;
  }
  
  .docs-container .four.wide.column {
    width: 100%;
  }
  
  .docs-container .twelve.wide.column {
    width: 100%;
  }
  
  .docs-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 20px;
  }
  
  .docs-content {
    padding: 24px;
  }
  
  .docs-header h1 {
    font-size: 2em;
  }
  
  .docs-help {
    padding: 24px;
  }
  
  .docs-help-actions {
    flex-direction: column;
  }
  
  .docs-help-actions .ui.button {
    width: 100%;
  }
}
