/* Docs Page Styles */

:root {
  --deep-space: #221534;
  --dark-pink: #bb5277;
  --light-pink: #ddc7dd;
  --text-light: #e8e8e8;
  --link-color: #dda0c5;
  --link-hover: #f0c0dd;
}

.docs-page {
  background-color: var(--deep-space);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Ovo', serif;
}

/* Typography */
.docs-page h1,
.docs-page h2,
.docs-page h3,
.docs-page h4,
.docs-page h5,
.docs-page h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

/* Container Layout */
.docs-container {
  display: flex;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Sidebar Navigation */
.docs-sidebar {
  width: 250px;
  position: sticky;
  top: 2rem;
  height: fit-content;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  flex-shrink: 0;
  padding-top: 32px;
  /* match main */
  font-family: 'Orbitron', sans-serif;
}

.docs-sidebar h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light-pink);
  padding-left: 18px;
}

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

.docs-sidebar>ul {
  border-left: 2px solid var(--dark-pink);
}

.docs-sidebar li {
  margin: 0;
}

.docs-sidebar>ul>li {
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
}

.docs-sidebar>ul>li>ul>li {
  font-family: 'Ovo', serif;
}

.docs-sidebar a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.docs-sidebar>ul>li>a {
  font-weight: 600;
  font-size: 1rem;
}

.docs-sidebar a:hover {
  color: var(--link-hover);
  background-color: rgba(187, 82, 119, 0.1);
}

.docs-sidebar a.active {
  color: var(--link-hover);
  border-left: 3px solid var(--dark-pink);
  margin-left: -2px;
}

/* Nested navigation */
.docs-sidebar ul ul {
  margin-left: 0;
  padding-left: 0;
}

.docs-sidebar ul ul a {
  padding-left: 2rem;
  font-size: 0.9rem;
  color: var(--light-pink);
}

.docs-sidebar ul ul a:hover {
  color: var(--link-hover);
}

/* Main Content Area */
.docs-content {
  flex: 1;
  width: 100%;
  background-color: white;
  color: #333;
  padding: 2rem;
}

.docs-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #6b2e4a;
}

.docs-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #8b3d5f;
  border-bottom: 2px solid var(--dark-pink);
  padding-bottom: 0.5rem;
}

.docs-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #9d4d70;
}

.docs-section {
  margin-bottom: 3rem;
}

.docs-subsection {
  margin-bottom: 2rem;
}

.docs-content p {
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.docs-content ul,
.docs-content ol {
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-left: 2rem;
}

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

.docs-content a {
  color: #a05580;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.docs-content a:hover {
  color: #bb5277;
}

.docs-content strong {
  color: #7d3a5a;
  font-weight: 600;
}

/* Header adjustments for docs page */
.docs-page .main-header {
  position: static;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 900px) {
  .docs-container {
    flex-direction: column;
    gap: 1rem;
  }

  .docs-sidebar {
    width: 100%;
    position: static;
    border-left: none;
    border-top: 2px solid var(--dark-pink);
    padding-top: 1rem;
  }

  .docs-sidebar>ul {
    border-left: none;
    border-top: 2px solid var(--dark-pink);
    padding-top: 1rem;
  }

  .docs-content {
    max-width: 100%;
  }

  .docs-content h1 {
    font-size: 2rem;
  }

  .docs-content h2 {
    font-size: 1.5rem;
  }

  .docs-content h3 {
    font-size: 1.25rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll margin for anchor targets (accounts for sticky header) */
.docs-section,
.docs-subsection {
  scroll-margin-top: 2rem;
}