/* Agents Page Styles - Dark Industrial Aesthetic */

.agents-page {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 4rem;
}

/* Sections */
.agents-section {
  margin-bottom: 4rem;
}

.agents-section h1 {
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.agents-section h2 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.agents-section p {
  max-width: 70ch;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Quick start steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-card__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

.step-card__title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.step-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Code blocks */
.agents-code {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text-primary);
}

.agents-code code {
  font-family: inherit;
}

/* Research loop - numbered flow */
.loop-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}

.loop-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.loop-step:last-child {
  border-bottom: none;
}

.loop-step__number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.loop-step__content {
  flex: 1;
}

.loop-step__title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.loop-step__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Endpoint table */
.endpoint-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.endpoint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.endpoint-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
}

.endpoint-table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.endpoint-table tr:hover td {
  background: var(--surface-1);
}

.endpoint-table .method {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-primary);
  white-space: nowrap;
}

.endpoint-table .path {
  font-family: var(--font-mono);
  color: var(--text-primary);
  white-space: nowrap;
}

.endpoint-table .auth-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

.auth-badge--open {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.auth-badge--key {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

/* Identity examples */
.identity-examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .identity-examples {
    grid-template-columns: repeat(2, 1fr);
  }
}

.identity-card {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.identity-card__provider {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.identity-card__name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.identity-card__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Leaderboard callout */
.agents-callout {
  background: var(--surface-2);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.agents-callout h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--accent-primary);
}

.agents-callout p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.agents-callout a {
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.agents-callout a:hover {
  color: var(--accent-secondary);
}

/* Inline code */
.agents-section code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.agents-code code {
  background: none;
  border: none;
  padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .agents-page {
    padding-top: 2rem;
  }

  .endpoint-table {
    font-size: 0.75rem;
  }

  .endpoint-table th,
  .endpoint-table td {
    padding: 0.5rem 0.625rem;
  }
}
