/* ==========================================================================
   RESTOVUE — HELP CENTER STYLESHEET
   Sticky sidebar, search box, documentation layout, code/tip callouts
   ========================================================================== */

.help-hero-banner {
  background: var(--bg-navy);
  padding: 50px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.help-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.help-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.help-hero-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* Help Search Box */
.help-search-wrapper {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.help-search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  outline: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.help-search-input::placeholder {
  color: var(--text-dim);
}

.help-search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--bright-pink);
  box-shadow: 0 0 0 4px rgba(240, 24, 174, 0.25);
}

.help-search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--bright-pink);
  pointer-events: none;
}

.help-search-count {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--bright-pink);
  font-weight: 600;
  display: none;
}

/* Help Main Layout: 2 Columns */
.help-layout-section {
  background: #FAFAFC;
  padding: 50px 0 90px;
  min-height: 80vh;
}

.help-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Sticky Sidebar */
.help-sidebar {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(8, 14, 41, 0.04);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.help-sidebar-title {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-magenta);
  margin-bottom: 16px;
}

.help-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.help-sidebar-link:hover {
  color: var(--text-dark);
  background: rgba(139, 50, 232, 0.06);
}

.help-sidebar-link.active {
  color: var(--primary-magenta);
  background: rgba(240, 24, 174, 0.1);
  font-weight: 700;
}

.help-sidebar-link i {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Sub-links in sidebar */
.help-sidebar-subgroup {
  margin-left: 20px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid rgba(139, 50, 232, 0.15);
  padding-left: 8px;
}

.help-sidebar-sublink {
  font-size: 0.80rem;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.help-sidebar-sublink:hover {
  color: var(--primary-magenta);
}

/* Documentation Content (Right Column) */
.help-content-area {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: 0 4px 25px rgba(8, 14, 41, 0.04);
}

.help-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.help-breadcrumb a {
  color: var(--primary-magenta);
  font-weight: 600;
}

/* Individual Help Article Section */
.help-article-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scroll-margin-top: 96px;
}

.help-article-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.help-article-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.help-article-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(240, 24, 174, 0.08);
  border: 1.5px solid rgba(240, 24, 174, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-magenta);
  flex-shrink: 0;
}

.help-article-h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
}

.help-article-h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 12px;
}

.help-p {
  font-size: 0.96rem;
  color: #332d4a;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Numbered Instruction Steps */
.help-steps-list {
  list-style: none;
  counter-reset: help-counter;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 24px;
}

.help-step-item {
  counter-increment: help-counter;
  position: relative;
  padding-left: 44px;
  font-size: 0.95rem;
  color: #332d4a;
  line-height: 1.6;
}

.help-step-item::before {
  content: counter(help-counter);
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(240, 24, 174, 0.35);
}

/* Callout Boxes (Tip, Warning, Example) */
.help-callout {
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.help-callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
}

.help-callout-tip strong {
  color: #047857;
}

.help-callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #92400e;
}

.help-callout-warning strong {
  color: #b45309;
}

.help-callout-example {
  background: rgba(139, 50, 232, 0.06);
  border: 1px solid rgba(139, 50, 232, 0.2);
  color: #4c1d95;
}

.help-callout-example strong {
  color: #6d28d9;
}

/* Controls Grid */
.help-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.help-control-box {
  background: #F8F7FC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px 16px;
}

.help-control-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-magenta);
  margin-bottom: 4px;
}

.help-control-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Cross Links */
.help-crosslink-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.help-crosslink-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.help-crosslink-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(240, 24, 174, 0.08);
  color: var(--primary-magenta);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.help-crosslink-pill:hover {
  background: var(--brand-gradient);
  color: var(--white);
  transform: translateY(-1px);
}

/* Mobile Toggle for Sidebar */
.help-sidebar-toggle-btn {
  display: none;
  width: 100%;
  padding: 12px 18px;
  background: var(--bg-navy-secondary);
  color: var(--white);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

@media (max-width: 991px) {
  .help-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .help-sidebar-toggle-btn {
    display: block;
  }

  .help-sidebar {
    position: static;
    max-height: none;
    display: none;
  }

  .help-sidebar.open {
    display: block;
    margin-bottom: 24px;
  }

  .help-content-area {
    padding: 30px 24px;
  }

  .help-controls-grid {
    grid-template-columns: 1fr;
  }
}
