/* API Documentation Page Styles */
.api-docs-container {
  min-height: 100vh;
  background-color: #F7FAFC;
}

/* Header */
.docs-header {
  background: linear-gradient(135deg, #DC192C 0%, #B8152A 100%);
  color: white;
  padding: 3rem 0;
}

.docs-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-content {
  text-align: center;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
}

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

.docs-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.docs-header p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.docs-main {
  padding: 3rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: 1fr; /* single column layout, sidebar removed */
  gap: 3rem;
}

/* Documents Section */
.documents-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 1rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1A202C;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #718096;
  font-size: 1.1rem;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.document-card {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  background: white;
}

.document-card:hover {
  border-color: #DC192C;
  box-shadow: 0 4px 12px rgba(220, 25, 44, 0.1);
  transform: translateY(-2px);
}

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

.document-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1A202C;
  margin: 0;
  flex: 1;
}

.version-badge {
  background: #DC192C;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 1rem;
}

.document-description {
  color: #718096;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.document-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #A0AEC0;
  margin-bottom: 1.5rem;
}

.document-actions {
  display: flex;
  gap: 0.75rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 0.9rem;
}

.btn-primary {
  background: #DC192C;
  color: white;
}

.btn-primary:hover {
  background: #B8152A;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #DC192C;
  border: 2px solid #DC192C;
}

.btn-secondary:hover {
  background: #DC192C;
  color: white;
}

.btn-outline {
  background: transparent;
  color: #718096;
  border: 2px solid #E2E8F0;
}

.btn-outline:hover {
  border-color: #DC192C;
  color: #DC192C;
}

/* Sidebar */
.sidebar {
  display: none; /* removed */
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #E2E8F0;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1A202C;
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #718096;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  color: #DC192C;
}

.modal-body {
  padding: 1.5rem;
}

.document-info {
  margin-bottom: 2rem;
}

.info-row {
  display: flex;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #F7FAFC;
}

.info-row strong {
  min-width: 120px;
  color: #1A202C;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Footer */
.docs-footer {
  background: #2D3748;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: #A0AEC0;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #A0AEC0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #4A5568;
  padding-top: 1rem;
  text-align: center;
  color: #A0AEC0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
  }
  
  .document-actions {
    flex-direction: column;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .docs-header h1 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .document-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .version-badge {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .document-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}
