@import url('./css/variables.css');
@import url('./css/base.css');
@import url('./css/components.css');

.docs-layout {
  display: flex;
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  gap: 36px;
  align-items: flex-start;
}

.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  background: radial-gradient(circle 350px at 90% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(14, 15, 18, 0.98) 75%, #0c0d10 100%), #0c0d10;
  border: 1px solid #262626;
  border-radius: 20px;
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #71717a;
  padding-bottom: 8px;
  border-bottom: 1px solid #1c1c1f;
  margin-bottom: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa;
  text-decoration: none;
  transition: var(--transition-fast);
  margin-bottom: 2px;
}

.sidebar-link:hover {
  background: #141416;
  color: #ffffff;
}

.sidebar-link.active {
  background: #1f1f23;
  color: #ffffff;
  border: 1px solid #27272a;
}

.method-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-get { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-post { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-delete { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.docs-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.docs-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: #141416;
  border: 1px solid #262626;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.section-desc {
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.6;
  max-width: 720px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid #262626;
  border-radius: 14px;
  background: #0c0d10;
}

.code-card, .api-endpoint-card {
  padding: 24px;
  background: radial-gradient(circle 350px at 90% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(14, 15, 18, 0.98) 75%, #0c0d10 100%), #0c0d10;
  border: 1px solid #262626;
  border-radius: 20px;
}

.code-block {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
}

.code-block code,
.code-block pre {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  line-height: 1.6;
}

.docs-table, .params-table {
  width: 100%;
  border-collapse: collapse;
  background: #0c0d10;
  border: 1px solid #262626;
  border-radius: 14px;
  overflow: hidden;
}

.docs-table th, .params-table th {
  background: #141416;
  border-bottom: 1px solid #262626;
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #a1a1aa;
}

.docs-table td, .params-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #d4d4d8;
  border-top: 1px solid #1c1c1f;
}

.playground {
  background: #0c0d10;
  border: 1px solid #262626;
  border-radius: 20px;
  overflow: hidden;
}

.playground-header {
  padding: 14px 20px;
  border-bottom: 1px solid #1c1c1f;
  background: #141416;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.playground-body {
  padding: 20px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .docs-layout {
    flex-direction: column;
    padding-top: 80px;
  }
  .docs-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }
}
