/* API Documentation Page Styles */

.code-block {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.endpoint-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.method-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.method-post {
  background-color: #28a745;
  color: white;
}

.method-get {
  background-color: #007bff;
  color: white;
}

.response-section {
  margin-top: 1.5rem;
}

.status-code {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.status-200 { 
  background-color: #d4edda; 
  color: #155724; 
}

.status-400 { 
  background-color: #f8d7da; 
  color: #721c24; 
}

.status-401 { 
  background-color: #f8d7da; 
  color: #721c24; 
}

.status-413 { 
  background-color: #fff3cd; 
  color: #856404; 
}

.toc {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc ul {
  list-style-type: none;
  padding-left: 0;
}

.toc ul ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.toc a {
  text-decoration: none;
  color: var(--primary-color);
  padding: 0.25rem 0;
  display: block;
}

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

/* Hero Section */
.api-hero {
  background-color: #eef5fc;
  min-height: 40vh;
}

.api-hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* SDK Notice */
.sdk-notice {
  background-color: #d1ecf1;
  border-left: 4px solid #17a2b8;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 4px;
}

/* Info Notice */
.info-notice {
  background-color: #e7f3ff;
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 4px;
}

/* Warning Notice */
.warning-notice {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.warning-notice ul {
  margin-bottom: 0;
}

/* Error Notice */
.error-notice {
  background-color: #f8d7da;
  border-left: 4px solid #dc3545;
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 4px;
}

/* Call to Action Section */
.api-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.api-cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.api-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.api-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Call to Action section */
.api-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-title {
  color: white;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-primary {
  background-color: white !important;
  color: var(--primary-color) !important;
  border: none !important;
}

.cta-btn-secondary {
  background-color: transparent !important;
  color: white !important;
  border: 2px solid white !important;
}
