/* Documentation Page Styles */

.docs-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-top: 6rem;
  gap: 2rem;
  position: relative;
}

/* Sidebar Navigation */
.docs-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 6rem;
  height: fit-content;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.docs-sidebar-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.docs-sidebar-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.docs-sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #4a5568;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.docs-sidebar-close:hover {
  color: #1a1a1a;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.docs-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #4a5568;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.docs-nav-link:hover {
  background: #f7fafc;
  color: #2d3748;
  transform: translateX(4px);
}

.docs-nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}

/* Mobile Menu Toggle */
.docs-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  z-index: 1000;
  align-items: center;
  gap: 0.5rem;
}

.docs-mobile-toggle:hover {
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.toggle-icon {
  font-size: 1.25rem;
}

/* Main Content Area */
.docs-content {
  flex: 1;
  max-width: 900px;
  min-width: 0;
}

.docs-section {
  margin-bottom: 4rem;
  scroll-margin-top: 7rem;
}

.docs-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.docs-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #667eea;
}

.docs-intro {
  font-size: 1.2rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Documentation Cards */
.docs-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.docs-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.docs-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

.docs-card-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.docs-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 1rem;
}

.docs-text:last-child {
  margin-bottom: 0;
}

/* Lists */
.docs-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.docs-list li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: #4a5568;
}

.docs-list li strong {
  color: #2d3748;
  font-weight: 600;
}

/* Code Blocks */
.docs-code-block {
  background: #1a202c;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.docs-code-block code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  color: #68d391;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Links */
.docs-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.docs-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  .docs-container {
    padding: 1.5rem 1rem;
    padding-top: 6rem;
  }

  .docs-sidebar {
    width: 240px;
  }

  .docs-title {
    font-size: 2rem;
  }

  .docs-heading {
    font-size: 1.75rem;
  }

  .docs-card {
    padding: 1.5rem;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .docs-container {
    flex-direction: column;
    padding: 1rem;
    padding-top: 5rem;
  }

  .docs-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    z-index: 1001;
    border-radius: 0;
    padding: 1.5rem;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
    background: rgba(0, 0, 0, 0.5);
  }

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

  .docs-sidebar-header,
  .docs-nav {
    background: white;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .docs-sidebar-header {
    padding-top: 1.5rem;
    margin-top: -1.5rem;
  }

  .docs-nav {
    padding-bottom: 1.5rem;
    margin-bottom: -1.5rem;
  }

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

  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .docs-mobile-toggle {
    display: flex;
  }

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

  .docs-title {
    font-size: 1.75rem;
  }

  .docs-heading {
    font-size: 1.5rem;
  }

  .docs-intro {
    font-size: 1.1rem;
  }

  .docs-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  .docs-card-title {
    font-size: 1.25rem;
  }

  .docs-card-subtitle {
    font-size: 1rem;
  }

  .docs-code-block {
    padding: 1rem;
    margin: 1rem 0;
  }

  .docs-code-block code {
    font-size: 0.85rem;
  }

  .docs-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 6rem;
  }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
  .docs-container {
    padding: 0.75rem;
    padding-top: 5rem;
  }

  .docs-title {
    font-size: 1.5rem;
  }

  .docs-heading {
    font-size: 1.25rem;
  }

  .docs-card {
    padding: 1rem;
    border-left-width: 3px;
  }

  .docs-card-title {
    font-size: 1.1rem;
  }

  .docs-mobile-toggle {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .docs-nav-link {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }
}

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

/* Print Styles */
@media print {
  .docs-sidebar,
  .docs-mobile-toggle {
    display: none;
  }

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

  .docs-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #e0e0e0;
  }
}
