/* Aturjadwal Help Center — extra styles layered on top of the existing landing theme. */

.aj-help-search {
  position: relative;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.aj-help-search input[type='search'] {
  width: 100%;
  border: 1px solid rgba(39, 53, 74, 0.12);
  border-radius: 999px;
  padding: 14px 20px 14px 48px;
  font-size: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(39, 53, 74, 0.06);
}
.aj-help-search input[type='search']:focus {
  outline: none;
  border-color: rgb(var(--bs-primary-rgb));
}
.aj-help-search .aj-help-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}
.aj-help-search-empty {
  display: none;
  text-align: center;
  padding: 24px 0;
  opacity: 0.6;
}

/* Category grid on the help home page */
.aj-cat-card,
.aj-cat-card:hover,
.aj-cat-card:focus,
.aj-cat-card * {
  text-decoration: none !important;
}
.aj-cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background: #fafafa;
  border: 1px solid rgba(39, 53, 74, 0.06);
  height: 100%;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.aj-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(39, 53, 74, 0.08);
  border-color: rgba(1, 104, 250, 0.25);
}
.aj-cat-card .aj-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 104, 250, 0.1);
  color: rgb(var(--bs-primary-rgb));
  font-size: 22px;
  flex-shrink: 0;
}
.aj-cat-card h5 {
  margin: 0;
}
.aj-cat-card p {
  margin: 0;
  opacity: 0.65;
  font-size: 14px;
}
.aj-cat-card .aj-cat-count {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--bs-primary-rgb));
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Popular article pill list */
.aj-article-link,
.aj-article-link:hover,
.aj-article-link:focus,
.aj-article-link * {
  text-decoration: none !important;
}
.aj-article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(39, 53, 74, 0.08);
  background: #fff;
  font-weight: 500;
  color: inherit;
}
.aj-article-link:hover {
  border-color: rgba(1, 104, 250, 0.3);
  background: rgba(1, 104, 250, 0.04);
}

/* Breadcrumb */
.aj-help-crumb {
  font-size: 14px;
  color: rgba(39, 53, 74, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.aj-help-crumb a {
  text-decoration: none;
  color: inherit;
}
.aj-help-crumb a:hover {
  text-decoration: underline;
}
.aj-help-crumb .unicon-chevron-right {
  font-size: 10px;
  opacity: 0.7;
}
.aj-help-crumb-current {
  font-weight: 500;
  color: #27354a;
}

/* Category hero icon (sits inline to the left of the H1 on category pages) */
.aj-hero-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 104, 250, 0.1);
  color: rgb(var(--bs-primary-rgb));
  font-size: 20px;
  flex-shrink: 0;
}

/* Screenshot placeholder component: 2 slots per instance — Desktop / Mobile */
.aj-shot {
  border: 1px solid rgba(39, 53, 74, 0.1);
  border-radius: 14px;
  background: #fbfbfd;
  padding: 16px;
  margin: 18px 0;
}
.aj-shot-caption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  opacity: 0.75;
}
.aj-shot-caption .unicon {
  flex-shrink: 0;
  margin-top: 2px;
}
.aj-shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .aj-shot-grid {
    grid-template-columns: 1fr;
  }
  .aj-shot-slot.is-desktop {
    display: none;
  }
}
.aj-shot-slot {
  border: 1.5px dashed rgba(39, 53, 74, 0.25);
  border-radius: 12px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 18px 14px;
  background: #fff;
}
.aj-shot-slot.is-desktop {
  aspect-ratio: 16 / 10;
  min-height: 180px;
}
.aj-shot-slot.is-mobile {
  aspect-ratio: 9 / 16;
  max-width: 220px;
  margin: 0 auto;
  min-height: 260px;
}
.aj-shot-slot .aj-shot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(39, 53, 74, 0.06);
  opacity: 0.8;
}
.aj-shot-slot .aj-shot-dim {
  font-size: 11px;
  opacity: 0.45;
}
.aj-shot-slot .aj-shot-file {
  font-size: 10px;
  opacity: 0.4;
  font-family: monospace;
  word-break: break-all;
}
.aj-shot-slot svg {
  opacity: 0.35;
}

/* Filled variant: real screenshot in place of the dashed placeholder */
.aj-shot-slot.has-image {
  border-style: solid;
  border-color: rgba(39, 53, 74, 0.12);
  padding: 10px;
  position: relative;
}
.aj-shot-slot.has-image .aj-shot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(39, 53, 74, 0.12);
}

/* Clickable screenshot link — opens the full-size image in a lightbox */
.aj-shot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  position: relative;
  cursor: zoom-in;
}
.aj-shot-link img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(39, 53, 74, 0.12);
  display: block;
  transition: filter 0.2s ease;
}
.aj-shot-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-size: 18px !important;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.aj-shot-link:hover img,
.aj-shot-link:focus-visible img {
  filter: brightness(0.85);
}
.aj-shot-link:hover .aj-shot-zoom-icon,
.aj-shot-link:focus-visible .aj-shot-zoom-icon {
  opacity: 1;
  transform: scale(1);
}
.aj-shot-link:focus-visible {
  outline: 2px solid rgb(var(--bs-primary-rgb));
  outline-offset: 2px;
  border-radius: 8px;
}

/* FAQ / step numbering used inside category articles */
.aj-step-list {
  counter-reset: aj-step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aj-step-list li {
  counter-increment: aj-step;
  position: relative;
  padding-left: 40px;
}
.aj-step-list li::before {
  content: counter(aj-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgb(var(--bs-primary-rgb));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aj-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(1, 104, 250, 0.06);
  font-size: 14px;
}
.aj-note.aj-note-warn {
  background: rgba(225, 76, 76, 0.08);
}
.aj-note .unicon {
  flex-shrink: 0;
  margin-top: 1px;
  color: rgb(var(--bs-primary-rgb));
}
.aj-note-warn .unicon {
  color: #e14c4c;
}

/* Consistent vertical rhythm between paragraphs, lists, notes, and
   screenshot boxes inside an accordion item's content. */
.uc-accordion-content > * {
  margin-top: 0;
  margin-bottom: 0;
}
.uc-accordion-content > * + * {
  margin-top: 18px;
}

/* ---------------------------------------------------------------------------
   Dark mode (Help Center: home + category article pages)

   The landing theme toggles a ".uc-dark" class on <html> (assets/js/app-head-bs.js)
   and assets/css/aj-dark-theme.css remaps the shared Bootstrap utility classes
   onto the dashboard's dark palette. The Help Center components above are custom
   and hardcode light surfaces (#fff / #fafafa), so they stay light-on-dark unless
   overridden here. Palette variables are the ones declared on ".uc-dark" in
   aj-dark-theme.css — keep using those instead of new hex values.

   Two classes on every selector so these outrank the single-class rules above
   regardless of order.
   --------------------------------------------------------------------------- */

/* Search box sits on top of the hero, which in dark is the plain page canvas
   (see aj-dark-theme.css "#hero_header"), so a translucent glass pill is what
   lifts it off the background - a surface-colored box would just sit flat. */
.uc-dark .aj-help-search input[type='search'] {
  color-scheme: dark; /* keeps the native clear (x) button light */
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.uc-dark .aj-help-search input[type='search']::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.uc-dark .aj-help-search input[type='search']:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}
.uc-dark .aj-help-search .aj-help-search-icon {
  color: #fff;
  opacity: 0.65;
}
.uc-dark .aj-help-search-empty {
  color: rgb(var(--color-ink-soft));
  opacity: 0.85;
}

/* Category grid */
.uc-dark .aj-cat-card {
  background: rgb(var(--color-surface));
  border-color: rgb(var(--color-line));
}
.uc-dark .aj-cat-card:hover {
  background: rgb(var(--color-surface-muted));
  border-color: rgb(var(--color-brand) / 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.uc-dark .aj-cat-card h5 {
  color: rgb(var(--color-ink));
}
.uc-dark .aj-cat-card p {
  color: rgb(var(--color-ink-soft));
  opacity: 0.9;
}
.uc-dark .aj-cat-card .aj-cat-icon {
  background: rgb(var(--color-brand) / 0.16);
  color: rgb(var(--color-brand));
}
.uc-dark .aj-cat-card .aj-cat-count {
  color: rgb(var(--color-brand));
}

/* "Paling sering dicari" band: its "bg-secondary" resolves to the page canvas in
   dark, which would make the section blend into the page — lift it a touch so the
   block still reads as its own band like it does in light mode, and put the pills
   one step above it. */
.uc-dark #help-popular {
  background-color: rgb(var(--color-surface) / 0.5) !important;
}
.uc-dark .aj-article-link {
  background: rgb(var(--color-surface-muted));
  border-color: rgb(var(--color-line));
  color: rgb(var(--color-ink));
}
.uc-dark .aj-article-link:hover {
  background: rgb(var(--color-brand) / 0.12);
  border-color: rgb(var(--color-brand) / 0.45);
}

/* The theme's outline-dark button is near-black on near-black in dark mode
   ("Hubungi Kami" on the home CTA, and the category pill row on article pages). */
.uc-dark .btn-outline-dark {
  --bs-btn-color: rgb(var(--color-ink));
  --bs-btn-border-color: rgb(var(--color-line));
  --bs-btn-hover-color: rgb(var(--color-canvas));
  --bs-btn-hover-bg: rgb(var(--color-ink));
  --bs-btn-hover-border-color: rgb(var(--color-ink));
  --bs-btn-active-color: rgb(var(--color-canvas));
  --bs-btn-active-bg: rgb(var(--color-ink));
  --bs-btn-active-border-color: rgb(var(--color-ink));
}

/* Accordion item cards (article pages). These are plain ".panel.bg-secondary"
   like the "Paling sering dicari" band above, but used here as an actual card
   per FAQ item — aj-dark-theme.css maps "bg-secondary" to the page canvas
   color (by design, so section bands blend into the page), which makes every
   accordion box invisible/borderless here instead. Scoped to accordion list
   items only, so the legitimate blend-with-canvas bands (e.g. the closing CTA
   section, also ".bg-secondary") are untouched. ("!important" needed to beat
   aj-dark-theme.css's own "!important" on ".bg-secondary" — this selector is
   already more specific, but importance is checked before specificity.) */
.uc-dark .uc-accordion > li.bg-secondary {
  background-color: rgb(var(--color-surface)) !important;
  border: 1px solid rgb(var(--color-line));
}

/* Breadcrumb (article pages): both colors are dark navy, meant to sit on a
   light page — invisible on the dark canvas otherwise. */
.uc-dark .aj-help-crumb {
  color: rgb(var(--color-ink-soft));
}
.uc-dark .aj-help-crumb-current {
  color: rgb(var(--color-ink));
}

/* Category hero icon (article pages) — same brand-tint treatment as the
   home page's .aj-cat-icon. */
.uc-dark .aj-hero-icon {
  background: rgb(var(--color-brand) / 0.16);
  color: rgb(var(--color-brand));
}

/* Info/warning callouts inside accordion content. Text and icon already read
   fine (they inherit the page's ink color), just deepen the tint so the box
   still registers as a callout against the near-black canvas instead of
   nearly disappearing. */
.uc-dark .aj-note {
  background: rgb(var(--color-brand) / 0.14);
}
.uc-dark .aj-note .unicon {
  color: rgb(var(--color-brand));
}
.uc-dark .aj-note-warn {
  background: rgb(var(--color-danger) / 0.16);
}
.uc-dark .aj-note-warn .unicon {
  color: rgb(var(--color-danger));
}

/* Screenshot placeholder component: hardcoded light surfaces (#fbfbfd / #fff)
   stay bright white on the dark canvas otherwise — the most jarring leftover
   in dark mode since these boxes are large and sit right in the reading
   column. Text inside (.aj-shot-caption, .aj-shot-dim, .aj-shot-file) has no
   color of its own — it already inherits the dark-mode ink color set on
   body, so it needed the surface fixed, not the text. */
.uc-dark .aj-shot {
  background: rgb(var(--color-surface-muted));
  border-color: rgb(var(--color-line));
}
.uc-dark .aj-shot-slot {
  background: rgb(var(--color-surface));
  border-color: rgb(var(--color-line));
}
.uc-dark .aj-shot-slot .aj-shot-badge {
  background: rgb(var(--color-surface-muted));
}
.uc-dark .aj-shot-slot.has-image .aj-shot-badge {
  background: rgb(var(--color-canvas) / 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
