/* Docs layout */
.docs-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem 0;
}

/* Sidebar */
.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 5rem;
  align-self: flex-start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.docs-sidebar h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.docs-sidebar h3:first-child {
  margin-top: 0;
}

.docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.docs-sidebar ul li {
  margin-bottom: 0.3rem;
}

.docs-sidebar ul li a {
  display: block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.15s;
}

.docs-sidebar ul li a:hover {
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
}

.docs-sidebar ul li a.active {
  color: var(--cyan);
  background: rgba(0,212,255,0.12);
  font-weight: 600;
}

/* Main content */
.docs-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 0;
}

.docs-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.docs-content h1:first-child {
  margin-top: 0;
}

.docs-content .subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

.docs-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,212,255,0.1);
}

.docs-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.docs-content p {
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.docs-content ul, .docs-content ol {
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.docs-content li {
  margin-bottom: 0.3rem;
}

.docs-content code {
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.docs-content pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 10px;
  padding: 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.docs-content pre code {
  background: none;
  color: rgba(255,255,255,0.9);
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.docs-content .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.docs-content .card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.docs-content .card:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.docs-content .card h4 {
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.docs-content .card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.docs-content .card a {
  color: var(--cyan);
  text-decoration: none;
}

.docs-content .card a:hover {
  text-decoration: underline;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.docs-content th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  background: rgba(0,212,255,0.08);
  color: var(--cyan);
  font-weight: 600;
  border-bottom: 1px solid rgba(0,212,255,0.15);
}

.docs-content td {
  padding: 0.6rem 0.8rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.docs-content .tag {
  display: inline-block;
  background: rgba(0,212,255,0.15);
  color: var(--cyan);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  margin-right: 0.3rem;
}

.docs-content .alert {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.docs-content .alert p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .docs-wrapper {
    flex-direction: column;
  }
  .docs-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }
}