/* Documentation Page Styles */

/* Button styles to match orange theme */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-info {
  background-color: #ea580c;
  color: white;
}

.btn-info:hover {
  background-color: #c2410c;
  color: white;
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
  color: #1f2937;
}

.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.docs-sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  overflow-y: auto;
  background: #FEEBD3;
  color: #9a3412;
  border-radius: 12px;
  padding: 16px;
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ea580c, #fb923c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.brand-title { font-weight: 700; color: #9a3412; }
.brand-sub { font-size: 12px; color: #c2410c; }

.docs-nav .nav-section {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c2410c;
  padding: 8px 8px 4px 8px;
}

.nav-link {
  display: block;
  color: #9a3412;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  margin: 2px 0;
}
.nav-link:hover { background: rgba(234, 88, 12, 0.1); color: #7c2d12; }

.docs-content { min-height: 70vh; overflow: hidden; }

.docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.docs-section { margin: 18px 0 28px; }
.docs-section h2 { margin: 0 0 8px 0; color: #0f172a; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
}

.card-title { font-weight: 600; color: #0f172a; margin-bottom: 8px; }

.code {
  background: #FEEBD3;
  color: #9a3412;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #ea580c;
  overflow-x: auto;
  max-width: 100%;
}
.small { font-size: 12px; }

.endpoint {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  max-width: 100%;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.method {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  color: white;
}
.get { background: #10b981; }
.post { background: #ea580c; }
.put { background: #f59e0b; }
.delete { background: #ef4444; }

.path { font-family: monospace; color: #0f172a; }

.endpoint-body { padding: 12px 14px; overflow-x: auto; }
.sub { font-size: 12px; color: #475569; margin: 8px 0 6px; font-weight: 600; }

.docs-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  color: #475569;
}

/* Enhanced Table Styles */
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.result-table thead {
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
  border-bottom: 2px solid #fb923c;
}

.result-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #9a3412;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 14px;
  vertical-align: top;
}

.result-table tbody tr:hover {
  background: #f9fafb;
}

.result-table tbody tr:last-child td {
  border-bottom: none;
}

.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Model Card Enhancements */
.model-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.model-card .card-title {
  font-size: 16px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fb923c;
}

@media (max-width: 960px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .result-table { font-size: 12px; }
  .result-table th, .result-table td { padding: 8px 12px; }
}
