/* Documentation page styles */

.home-link {
  color: inherit;
  text-decoration: none;
}

.home-link:hover {
  text-decoration: none;
}

.docs-main {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  margin-top: 30px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 20px;
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.docs-nav h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.docs-nav h3:not(:first-child) {
  margin-top: 25px;
}

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

.docs-nav li {
  margin-bottom: 8px;
}

.docs-nav a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.docs-nav a:hover {
  color: #0070f3;
}

.docs-content {
  max-width: none;
}

.docs-content section {
  margin-bottom: 50px;
  scroll-margin-top: 20px;
}

.docs-content h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.docs-content h3 {
  color: #444;
  font-size: 1.3rem;
  margin: 20px 0 15px 0;
}

.docs-content h4 {
  color: #555;
  font-size: 1.1rem;
  margin: 15px 0 10px 0;
  font-weight: 600;
}

.docs-content p {
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
}

.api-endpoint {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
  font-family: 'Courier New', Consolas, monospace;
}

.example-block {
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin: 25px 0;
  overflow: hidden;
}

.example-json {
  position: relative;
}

.example-json h4 {
  background: #f8f9fa;
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.example-json pre {
  margin: 0;
  padding: 20px;
  background: #f8f9fa;
  overflow-x: auto;
  line-height: 1.5;
}

.example-json code {
  font-family: 'Courier New', Consolas, monospace;
  font-size: 13px;
  color: #333;
}

.copy-btn {
  background: #0070f3;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 0;
  height: fit-content;
}

.copy-btn:hover {
  background: #0051cc;
  transform: none;
  box-shadow: none;
}

.copy-btn.copied {
  background: #28a745;
}

.example-result {
  padding: 20px;
  border-top: 1px solid #e9ecef;
}

.example-result h4 {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.component-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.component-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.component-card h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.2rem;
}

.component-card p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.component-card pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 12px;
  margin: 0;
  overflow-x: auto;
}

.component-card code {
  font-family: 'Courier New', Consolas, monospace;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
}

.component-props {
  margin-top: 12px;
  font-size: 12px;
  color: #777;
}

.component-props code {
  background: #f0f0f0;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 11px;
}

.badge-new {
  background: #28a745;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 5px;
  font-weight: normal;
  vertical-align: middle;
}

.docs-footer {
  margin-top: 60px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.docs-footer p {
  margin: 0;
  color: #666;
}

.docs-footer a {
  color: #0070f3;
  text-decoration: none;
  font-weight: 500;
}

.docs-footer a:hover {
  text-decoration: underline;
}

/* AI Assistant Section */
.ai-help-card {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
}

.ai-help-card h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.ai-help-card p {
  color: #555;
  margin: 15px 0;
}

.ai-help-card ul {
  color: #555;
  margin: 15px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.ai-help-card li {
  margin: 8px 0;
  line-height: 1.5;
}

.ai-assistant-button {
  display: inline-block;
  background: #0070f3;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.ai-assistant-button:hover {
  background: #0051a2;
  text-decoration: none;
}

/* Responsive design */
@media (max-width: 1024px) {
  .docs-main {
    grid-template-columns: 200px 1fr;
    gap: 30px;
  }
  
  .docs-sidebar {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .docs-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .docs-sidebar {
    position: static;
    order: -1;
  }
  
  .component-grid {
    grid-template-columns: 1fr;
  }
  
  .example-json pre {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .docs-sidebar {
    padding: 15px;
  }
  
  .component-card {
    padding: 15px;
  }
  
  .example-json pre {
    padding: 15px;
  }
}
