/* Help Documentation Styles */

.help-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 60px);
  background: var(--paper);
}

/* Sidebar */
.help-sidebar {
  background: var(--paper-warm);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.help-sidebar-inner {
  padding: 32px 24px;
}

.help-sidebar-header {
  margin-bottom: 24px;
}

.help-sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
  margin: 0;
}

.help-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.help-nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-nav-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
  padding: 8px 12px 4px;
  margin-bottom: 4px;
}

.help-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink-subtle);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}

.help-nav-link:hover {
  background: white;
  color: var(--ink);
  text-decoration: none;
}

.help-nav-link.active {
  background: var(--accent);
  color: white;
}

.help-nav-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Main Content */
.help-main {
  padding: 48px 64px 80px;
  max-width: 900px;
}

.help-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-dark);
  margin-bottom: 32px;
}

.help-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.help-breadcrumb a:hover {
  color: #6d28d9;
}

.help-breadcrumb span {
  color: var(--muted);
}

/* Article */
.help-article h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.help-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-subtle);
  margin-bottom: 48px;
}

.help-article h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.help-article h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}

.help-article p {
  line-height: 1.7;
  color: var(--ink-subtle);
  margin-bottom: 16px;
}

.help-article ul,
.help-article ol {
  margin: 16px 0;
  padding-left: 20px;
}

.help-article ul {
  list-style: disc;
  list-style-position: outside;
}

.help-article ol {
  list-style: decimal;
  list-style-position: outside;
}

.help-article li ul {
  margin-top: 8px;
  list-style: circle;
  padding-left: 20px;
}

.help-article li {
  line-height: 1.7;
  color: var(--ink-subtle);
  margin-bottom: 8px;
}

.help-article code {
  background: var(--paper-warm);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
  color: var(--accent);
}

.help-article a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.help-article a:hover {
  color: #6d28d9;
  text-decoration: none;
}

.help-article img {
  max-width: 650px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 32px 0;
  display: block;
  cursor: pointer;
  transition: all 0.2s;
}

.help-article img:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.help-card-icon img {
  border: none !important;
  margin: 0 !important;
  cursor: default !important;
  box-shadow: none !important;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-image {
  max-width: 95%;
  max-height: 95%;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Cards Grid */
.help-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 48px 0;
}

.help-card-link {
  text-decoration: none;
  color: inherit;
}

.help-card-link:hover {
  text-decoration: none;
}

.help-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s;
  height: 100%;
}

.help-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.help-card-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 36px;
}

.help-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.help-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-dark);
  margin: 0;
}

/* Support Section */
.help-support {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 64px;
}

.help-support h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.help-support p {
  font-size: 16px;
  color: var(--ink-subtle);
  margin-bottom: 24px;
}

.help-support .btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper) !important;
  text-decoration: none;
}

.help-support .btn-hero:hover {
  color: var(--paper) !important;
  text-decoration: none;
}

/* Navigation Arrows */
.help-nav-arrows {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.help-nav-arrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  flex: 1;
}

.help-nav-arrow:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
  text-decoration: none;
}

.help-nav-arrow.prev {
  align-items: flex-start;
}

.help-nav-arrow.next {
  align-items: flex-end;
  text-align: right;
}

.help-nav-arrow-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
}

.help-nav-arrow-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* Content Blocks */
.help-note {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 24px 0;
}

.help-note p {
  margin: 0;
  color: var(--ink);
}

.help-warning {
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 6px;
  margin: 24px 0;
}

.help-warning p {
  margin: 0;
  color: var(--ink);
}

/* Mobile Doc Navigation in Navbar */
.mobile-doc-nav {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-nav-link {
    display: none !important;
  }
  
  .mobile-doc-nav {
    display: block;
  }
  
  .mobile-doc-nav-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-dark);
    padding: 8px 0 12px;
    margin: 0;
  }
  
  .mobile-doc-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--ink-subtle);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s;
  }
  
  .mobile-doc-nav a:hover {
    color: var(--accent);
  }
  
  .mobile-doc-nav a.active {
    color: var(--accent);
    font-weight: 600;
  }
  
  .mobile-doc-nav-icon {
    font-size: 18px;
    flex-shrink: 0;
  }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .help-layout {
    grid-template-columns: 1fr;
  }
  
  .help-sidebar {
    display: none;
  }
  
  .help-main {
    padding: 32px 24px 64px;
  }
  
  .help-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .help-article h1 {
    font-size: 32px;
  }
  
  .help-article h2 {
    font-size: 24px;
  }
  
  .help-nav-arrows {
    flex-direction: column;
  }
  
  .help-nav-arrow.next {
    align-items: flex-start;
    text-align: left;
  }
}
