/*
 * FAQ Help Centre — UI Components
 * Requires: theme-variables.css
 *
 * Includes:
 *   1. Info callout box
 *   2. Warning callout box
 *   3. Tip callout box
 *   4. Numbered step list (orange circles)
 *   5. Pill buttons (primary + secondary)
 *   6. Breadcrumbs
 *   7. Previous / Next navigation
 *   8. Collapsible accordion (Browse everything)
 *   9. Most-used page grid (homepage)
 *  10. Quick-start checklist (homepage)
 */

/* ═══════════════════════════════════════════════════════════════════════════
   1. CALLOUT BOXES
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.55;
}

.faq-callout__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.faq-callout__body {
  flex: 1;
  min-width: 0;
}

.faq-callout__body p:last-child {
  margin-bottom: 0;
}

/* Info (blue) */
.faq-callout--info {
  background-color: var(--faq-bg-callout-info);
  color: var(--faq-text-callout-info);
  border-left: 3px solid #4a90e2;
}

.faq-callout--info .faq-callout__icon {
  color: #4a90e2;
}

/* Warning (orange) */
.faq-callout--warning {
  background-color: var(--faq-bg-callout-warn);
  color: var(--faq-text-callout-warn);
  border-left: 3px solid var(--faq-accent);
}

.faq-callout--warning .faq-callout__icon {
  color: var(--faq-accent);
}

/* Tip (green) */
.faq-callout--tip {
  background-color: rgba(40, 167, 69, 0.1);
  color: #1d6430;
  border-left: 3px solid #28a745;
}

[data-theme="dark"] .faq-callout--tip {
  background-color: rgba(40, 167, 69, 0.12);
  color: #7dcc94;
}

.faq-callout--tip .faq-callout__icon {
  color: #28a745;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. NUMBERED STEP LIST
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-steps__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.faq-steps__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--faq-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.faq-steps__body {
  flex: 1;
  min-width: 0;
}

.faq-steps__title {
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--faq-text-primary);
}

.faq-steps__desc {
  font-size: 15px;
  color: var(--faq-text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. PILL BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.faq-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 2px solid transparent;
}

/* Primary (filled orange) */
.faq-pill--primary {
  background-color: var(--faq-accent);
  color: #ffffff;
  border-color: var(--faq-accent);
}

.faq-pill--primary:hover {
  background-color: var(--faq-accent-hover);
  border-color: var(--faq-accent-hover);
  color: #ffffff;
  text-decoration: none;
}

/* Secondary (outlined) */
.faq-pill--secondary {
  background-color: transparent;
  color: var(--faq-text-secondary);
  border-color: var(--faq-border);
}

.faq-pill--secondary:hover {
  border-color: var(--faq-accent);
  color: var(--faq-accent);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. BREADCRUMBS
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faq-text-muted);
}

.faq-breadcrumb a {
  color: var(--faq-accent);
  text-decoration: none;
}

.faq-breadcrumb a:hover {
  text-decoration: underline;
}

.faq-breadcrumb__sep {
  color: var(--faq-text-muted);
  font-weight: 400;
}

.faq-breadcrumb__current {
  color: var(--faq-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. PREVIOUS / NEXT NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--faq-border);
}

.faq-prevnext__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--faq-border);
  text-decoration: none;
  background-color: var(--faq-bg-sidebar);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}

.faq-prevnext__card:hover {
  border-color: var(--faq-accent);
  box-shadow: var(--faq-shadow-card);
  text-decoration: none;
}

.faq-prevnext__card--next {
  align-items: flex-end;
  text-align: right;
}

.faq-prevnext__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faq-text-muted);
}

.faq-prevnext__card--next .faq-prevnext__label {
  flex-direction: row-reverse;
}

.faq-prevnext__label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.faq-prevnext__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--faq-text-primary);
}

/* Empty slot (when no prev or no next) */
.faq-prevnext__card--empty {
  visibility: hidden;
}

@media (max-width: 600px) {
  .faq-prevnext {
    grid-template-columns: 1fr;
  }

  .faq-prevnext__card--next {
    align-items: flex-start;
    text-align: left;
  }

  .faq-prevnext__card--next .faq-prevnext__label {
    flex-direction: row;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. COLLAPSIBLE ACCORDION ("Browse everything")
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-accordion {
  margin: 24px 0;
  border: 1px solid var(--faq-border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-accordion__section {
  border-bottom: 1px solid var(--faq-border);
}

.faq-accordion__section:last-child {
  border-bottom: none;
}

.faq-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--faq-text-primary);
  background-color: var(--faq-bg-sidebar);
  text-align: left;
  transition: background-color 0.15s ease;
}

.faq-accordion__trigger:hover {
  background-color: var(--faq-nav-active-bg);
}

.faq-accordion__chevron {
  width: 16px;
  height: 16px;
  color: var(--faq-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-accordion__trigger[aria-expanded="true"] .faq-accordion__chevron {
  transform: rotate(180deg);
}

.faq-accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.faq-accordion__panel.is-open {
  max-height: 2000px;
}

.faq-accordion__list {
  list-style: none;
  padding: 12px 20px 16px 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-accordion__list li a {
  font-size: 14px;
  color: var(--faq-text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.faq-accordion__list li a:hover {
  color: var(--faq-accent);
}

.faq-accordion__list li a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. HOMEPAGE — Most-used pages grid
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}

.faq-home-grid__col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faq-text-secondary);
  margin: 0 0 12px;
}

.faq-home-grid__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-home-grid__col ul li a {
  font-size: 15px;
  color: var(--faq-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-home-grid__col ul li a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .faq-home-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. HOMEPAGE — Section navigation
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-home-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

/* re-uses .faq-pill classes above */

/* ═══════════════════════════════════════════════════════════════════════════
   9. SAFETY LINKS LIST
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-safety-links {
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-safety-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--faq-accent);
  text-decoration: none;
}

.faq-safety-links li a:hover {
  text-decoration: underline;
}
