/* API Page - Figma Design */
:root {
  --api-bg: #f5f5f8;
  --api-text: #2c2d2e;
  --api-muted: #737373;
  --api-border: #e6e6e6;
  --api-blue: #005ff9;
  --api-card-bg: #ffffff;
  --api-code-bg: #f4f5f7;
}

.api-page {
  min-height: calc(100vh - 160px);
  padding: 0 0 100px;
  background:
    url("/images/homepage/bg-pattern.png") center 0 / 100% auto no-repeat,
    var(--api-bg);
}

.api-container {
  max-width: 1340px;
  padding: 0 50px;
  margin: 0 auto;
}

/* Header section */
.api-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-bottom: 40px;
}

.api-header__nav {
  width: 100%;
}

.api-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--api-muted);
  max-width: 1240px;
}

.api-breadcrumbs__link {
  color: var(--api-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.api-breadcrumbs__link:hover {
  color: var(--api-blue);
}

.api-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1240px;
  width: 100%;
}

.api-title {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--api-text);
  margin: 0;
}

.api-lead {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--api-text);
  margin: 0;
  max-width: 800px;
}

/* API Cards */
.api-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.api-card {
  background: var(--api-card-bg);
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.api-card__title {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--api-text);
  margin: 0;
}

/* Method & URL row */
.api-card__meta {
  display: flex;
  align-items: center;
  gap: 32px;
}

.api-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-card__meta-label {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--api-muted);
}

.api-card__meta-value {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--api-text);
}

/* Parameters */
.api-params-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.api-param {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.api-param__header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.api-param__name {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--api-text);
}

.api-param__required {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--api-blue);
}

.api-param__desc {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--api-muted);
}

/* Response block */
.api-response {
  background: var(--api-code-bg);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-response__title {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--api-text);
  margin: 0;
}

.api-response__code {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--api-muted);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Terms section */
.api-terms-section {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 60px;
}

.api-terms-title {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--api-text);
  margin: 0 0 40px;
}

.api-terms-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.api-terms-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.api-terms-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--api-blue);
}

.api-terms-icon svg {
  width: 100%;
  height: 100%;
}

.api-terms-text {
  font-family: 'Inter Display', Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.21;
  color: var(--api-text);
}

/* Responsive */
@media (max-width: 991px) {
  .api-container {
    padding: 0 20px;
  }

  .api-title {
    font-size: 40px;
  }

  .api-card__title {
    font-size: 24px;
  }

  .api-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .api-params-row {
    flex-direction: column;
    gap: 16px;
  }

  .api-terms-title {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .api-title {
    font-size: 32px;
  }

  .api-card {
    padding: 20px;
    border-radius: 24px;
  }

  .api-response {
    padding: 16px;
    border-radius: 16px;
  }

  .api-response__code {
    font-size: 14px;
  }
}
