/* ==========================================================================
   Documentation Specific Styles (docs.css)
   ========================================================================== */

.docs-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 48px;
  padding: 40px 0 80px;
  min-height: calc(100vh - 72px - 200px);
}

/* Docs Sidebar */
.docs-sidebar {
  position: sticky;
  top: 96px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.docs-nav-group {
  margin-bottom: 28px;
}

.docs-nav-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-green);
  margin-bottom: 12px;
  padding-left: 12px;
  display: block;
}

.docs-nav-list {
  list-style: none;
}

.docs-nav-item a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  border-left: 2px solid transparent;
}

.docs-nav-item a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.docs-nav-item.active a {
  color: var(--neon-green);
  background: rgba(0, 255, 136, 0.08);
  border-left-color: var(--neon-green);
  font-weight: 600;
}

/* Docs Content Area */
.docs-content {
  max-width: 860px;
  line-height: 1.7;
}

.docs-content h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.docs-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}

.docs-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-content h2 .anchor {
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.docs-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--cyber-cyan);
}

.docs-content p, .docs-content ul, .docs-content ol {
  margin-bottom: 18px;
  color: #cbd5e1;
}

.docs-content ul, .docs-content ol {
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 8px;
}

/* Code in Docs */
.docs-content code {
  font-family: var(--font-mono);
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--neon-green);
  font-size: 0.88em;
}

.docs-content pre {
  background: #070b14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  overflow-x: auto;
  margin: 20px 0 28px;
  position: relative;
}

.docs-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.88rem;
}

/* Callout Alert Boxes */
.callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 4px solid;
  background: rgba(16, 24, 40, 0.6);
  backdrop-filter: blur(8px);
}

.callout.tip {
  border-color: var(--neon-green);
  background: rgba(0, 255, 136, 0.05);
}

.callout.tip .callout-title {
  color: var(--neon-green);
}

.callout.info {
  border-color: var(--cyber-cyan);
  background: rgba(0, 229, 255, 0.05);
}

.callout.info .callout-title {
  color: var(--cyber-cyan);
}

.callout.warning {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}

.callout.warning .callout-title {
  color: #f59e0b;
}

.callout-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.callout p {
  margin: 0;
  font-size: 0.92rem;
  color: #94a3b8;
}

/* Open Source Card Grid */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0 40px;
}

.oss-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.oss-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.oss-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.oss-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.oss-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.oss-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
  flex-grow: 1;
}

.oss-link {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--cyber-cyan);
  text-decoration: none;
}

.oss-link:hover {
  text-decoration: underline;
  color: var(--neon-green);
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    height: auto;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 24px;
    margin-bottom: 32px;
  }
}
