/* ==========================================================================
   Pterodactyl Installer — Documentation Layout Stylesheet
   File: docs.css (Extends index.css)
   ========================================================================== */

/* Docs Layout Structure */
.docs-layout {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: calc(100vh - 56px);
}

/* Sidebar Navigation */
.docs-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-color);
  padding: 2rem 1rem 2rem 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.sidebar-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-link {
  color: var(--text-muted);
  font-size: 0.825rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;

}

.sidebar-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface);
  text-decoration: none;
}

.sidebar-link.active {
  color: var(--accent-color);
  background-color: var(--bg-surface);
  font-weight: 600;
}

/* Main Documentation Content */
.docs-content {
  flex-grow: 1;
  padding: 2.5rem 0 4rem 2.5rem;
  max-width: 780px;
}

.docs-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.docs-main-heading {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.docs-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Doc Sections */
.doc-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 70px;
}

.doc-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.01em;
}

.doc-section p {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.doc-section ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.doc-section li {
  margin-bottom: 0.35rem;
}

/* Mobile Sidebar Trigger */
.mobile-sidebar-btn {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  background-color: var(--text-primary);
  color: var(--bg-body);
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.top-button {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

.top-button:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

/* Responsive Docs Adjustment */
@media (max-width: 868px) {
  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    z-index: 200;
    background-color: var(--bg-body);
    padding: 1rem;
    display: none;
  }

  .docs-sidebar.open {
    display: block;
  }

  .sidebar-header {
    display: flex;
  }

  .mobile-sidebar-btn {
    display: block;
  }

  .docs-content {
    padding: 1.5rem 0;
  }
}