.docs-container {
  max-width: 860px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--accent);
}

/* Navegação rápida entre seções */
.docs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  position: sticky;
  top: 0.75rem;
  z-index: 5;
}

.docs-nav a {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
}

.docs-nav a:hover,
.docs-nav a.active {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.docs-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.docs-section {
  scroll-margin-top: 4.5rem;
}

.docs-section + .docs-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2.5rem;
}

.section-title {
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.subsection-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.endpoint-heading {
  margin-bottom: 1rem;
}

.endpoint-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.endpoint-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Badges de método HTTP */
.method-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.method-post {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.method-get {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Trechos de código inline */
.code-inline {
  font-family: "Courier New", Courier, monospace;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.85rem;
  word-break: break-word;
}

.code-inline-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.copy-inline-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-inline-btn:hover {
  color: var(--accent-hover);
}

/* Grid de especificações gerais */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Pills de status */
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.pill-success {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pill-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.pill-required {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.pill-optional {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.status-tag,
.lang-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Tabela de parâmetros */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 480px;
}

.param-table th {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.param-table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-primary);
  vertical-align: top;
  line-height: 1.5;
}

/* Blocos de código */
.code-block {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--input-bg);
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--card-border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

.code-block code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #e4e4e7;
  white-space: pre;
}

.hint-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: 0.85rem;
}

/* Guia de automação */
.automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.automation-card {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-list li {
  padding-left: 1.1rem;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 580px) {
  .docs-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}
