/* ========================================
   Help Center Styles
   ======================================== */

/* Layout */
.help-layout {
  display: flex;
  min-height: calc(100vh - 56px - 100px); /* minus navbar + footer */
}

.help-sidebar {
  width: 260px;
  flex-shrink: 0;
  background-color: #fff;
  border-right: 1px solid var(--rmi-border);
  padding: 1.5rem 0;
}

.help-sidebar .nav-link {
  color: var(--rmi-text);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 0;
}

.help-sidebar .nav-link:hover {
  background-color: var(--rmi-primary-pale);
  color: var(--rmi-primary);
}

.help-sidebar .nav-link.active {
  background-color: var(--rmi-primary-medium);
  color: #fff;
}

.help-sidebar .nav-link i {
  width: 1.25rem;
  text-align: center;
}

.help-content {
  flex: 1;
  padding: 2rem;
  max-width: 800px;
}

/* Step blocks */
.help-step {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--rmi-primary-medium);
  background-color: #fff;
  border-radius: 0 4px 4px 0;
}

.help-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.help-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--rmi-primary-medium);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.help-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--rmi-text);
}

.help-step p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Screenshots */
.help-screenshot {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rmi-border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 0.75rem 0 0.5rem;
}

.help-caption {
  font-size: 0.8rem;
  color: var(--rmi-text-muted);
  font-style: italic;
  margin-top: 0.25rem;
}

/* Callout / tip boxes */
.help-callout {
  background-color: #fef9c3;
  border-left: 3px solid var(--rmi-yellow);
  padding: 0.75rem 1rem;
  border-radius: 0 4px 4px 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.help-callout i {
  color: var(--rmi-secondary);
}

/* Guide cards on index */
.help-card {
  border: 1px solid var(--rmi-border);
  border-radius: 4px;
  padding: 1.25rem;
  height: 100%;
  background: #fff;
  transition: box-shadow 0.15s ease;
}

.help-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.help-card .help-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-color: var(--rmi-primary-pale);
  color: var(--rmi-primary-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.help-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.help-card p {
  font-size: 0.875rem;
  color: var(--rmi-text-muted);
  margin-bottom: 0.75rem;
}

/* Guide navigation at bottom */
.help-nav-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rmi-border);
}

.help-nav-bottom a {
  font-size: 0.9rem;
}

/* Section headers on index */
.help-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rmi-text-muted);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.help-section-title:first-of-type {
  margin-top: 0;
}

/* Mobile: sidebar becomes horizontal nav */
@media (max-width: 991px) {
  .help-layout {
    flex-direction: column;
  }

  .help-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--rmi-border);
    padding: 0.75rem;
    overflow-x: auto;
  }

  .help-sidebar .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .help-sidebar .nav-link {
    white-space: nowrap;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
  }

  .help-content {
    padding: 1.5rem 1rem;
  }
}
