/* Docs container styles */
.docs-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 160px);
}

.docs-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #059669, #047857);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Domain toggle for docs */
.docs-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.docs-domain-toggle {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 4px;
}

.docs-domain-toggle .toggle-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  background: #f8fafc;
  border-radius: 8px;
  padding: 4px;
}

.docs-domain-slider {
  width: calc(25% - 4px);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* Content wrapper */
.docs-content-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.docs-header {
  background: linear-gradient(135deg, #059669, #047857);
  color: white;
  padding: 2rem;
  text-align: center;
}

.docs-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 700;
}

.docs-description {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Body content */
.docs-body {
  padding: 3rem;
  line-height: 1.7;
}

.policy-content {
  max-width: none;
  color: #374151;
}

.policy-content h1 {
  color: #065f46;
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #10b981;
}

.policy-content h2 {
  color: #047857;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #34d399;
}

.policy-content h3 {
  color: #059669;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.policy-content strong {
  color: #065f46;
  font-weight: 600;
}

.policy-content ul,
.policy-content ol {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

.policy-content li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.policy-content ul li:before {
  content: "•";
  color: #10b981;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.policy-content ol {
  counter-reset: custom-counter;
}

.policy-content ol li {
  counter-increment: custom-counter;
}

.policy-content ol li:before {
  content: counter(custom-counter) ".";
  color: #10b981;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.policy-content p {
  margin: 1rem 0;
  line-height: 1.6;
}

.policy-content br {
  margin: 0.5rem 0;
}

/* Tools Section */
.tools-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid #e5e7eb;
}

.tools-section h2 {
  color: #065f46;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #10b981;
}

.tools-description {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tool-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tool-card:hover {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

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

.tool-name {
  color: #065f46;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.tool-type {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-type-read {
  background: #dbeafe;
  color: #1e40af;
}

.tool-type-write {
  background: #fee2e2;
  color: #dc2626;
}

.tool-type-generic {
  background: #e5e7eb;
  color: #374151;
}

.tool-description {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.tool-parameters {
  margin-bottom: 1.5rem;
}

.tool-parameters h4,
.tool-returns h4 {
  color: #047857;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.parameters-list {
  space-y: 0.75rem;
}

.parameter-item {
  margin-bottom: 0.75rem;
}

.parameter-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.parameter-name {
  color: #065f46;
  font-weight: 600;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
}

.parameter-type {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.parameter-required {
  background: #fef3c7;
  color: #d97706;
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.parameter-description {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  margin-left: 0.5rem;
}

.tool-returns {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1rem;
}

.tool-returns p {
  color: #065f46;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Footer */
.docs-footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  padding: 2rem;
}

.docs-note {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.docs-note h3 {
  color: #065f46;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.docs-note p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.docs-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.docs-links a {
  background: #059669;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.docs-links a:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Loading and error states */
.docs-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  color: #6b7280;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-left: 4px solid #059669;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.docs-error {
  padding: 2rem;
  text-align: center;
  color: #dc2626;
}

.docs-error h3 {
  margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .docs-container {
    padding: 20px 10px;
  }
  
  .docs-title {
    font-size: 2rem;
  }
  
  .docs-body {
    padding: 2rem 1.5rem;
  }
  
  .docs-header {
    padding: 1.5rem;
  }
  
  .docs-header h1 {
    font-size: 1.5rem;
  }
  
  .docs-links {
    flex-direction: column;
    align-items: center;
  }
  
  .docs-links a {
    width: 200px;
  }
  
  .policy-content h1 {
    font-size: 1.5rem;
  }
  
  .policy-content h2 {
    font-size: 1.25rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tool-card {
    padding: 1rem;
  }
  
  .tool-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .tools-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .docs-domain-toggle .toggle-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  
  .docs-domain-toggle .toggle-option {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  
  .docs-domain-slider {
    width: calc(50% - 2px);
  }
  
  .docs-domain-slider {
    transform: translateX(0%) !important;
  }
  
  .docs-domain-toggle .toggle-container .toggle-option:nth-child(1).active ~ .docs-domain-slider {
    transform: translateX(0%) !important;
  }
  
  .docs-domain-toggle .toggle-container .toggle-option:nth-child(2).active ~ .docs-domain-slider {
    transform: translateX(100%) !important;
  }
  
  .docs-domain-toggle .toggle-container .toggle-option:nth-child(3).active ~ .docs-domain-slider {
    transform: translateX(0%) !important;
  }
  
  .docs-domain-toggle .toggle-container .toggle-option:nth-child(4).active ~ .docs-domain-slider {
    transform: translateX(100%) !important;
  }
} 