/* ==========================================================================
   AXIOM — Panduan / Help Center (guide.css)
   ========================================================================== */

.guide-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.08) 0%, var(--bg-card) 65%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--border-radius-md);
}

.guide-hero h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.guide-hero p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 520px;
}

.guide-search-wrap {
  margin-bottom: 14px;
  position: relative;
}

.guide-search-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
}

.guide-search-wrap .guide-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  display: flex;
}

.guide-chips {
  margin-bottom: 18px;
}

.guide-chips-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.guide-chips-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.guide-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.guide-chip:hover,
.guide-chip.active {
  background: rgba(0, 229, 160, 0.1);
  color: var(--accent-green);
  border-color: rgba(0, 229, 160, 0.35);
}

.guide-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-topic {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}

.guide-topic.guide-hidden {
  display: none;
}

.guide-topic-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.guide-topic-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.guide-topic-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 229, 160, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 229, 160, 0.25);
}

.guide-topic-body {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.guide-topic-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.guide-topic-body li {
  margin-bottom: 6px;
}

.guide-topic-body strong {
  color: var(--text-primary);
}

.guide-device-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.guide-device-tab {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.04));
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.guide-device-tab.active {
  border-color: rgba(0, 229, 160, 0.45);
  color: var(--accent-green);
  background: rgba(0, 229, 160, 0.1);
}

.guide-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0A0A0F;
}

.guide-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #0A0A0F;
}

.guide-figure.guide-hidden {
  display: none;
}

.guide-figure figcaption {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

.guide-faq {
  margin-top: 8px;
}

.guide-faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.03));
}

.guide-faq-item.guide-hidden {
  display: none;
}

.guide-faq-q {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.guide-faq-q::after {
  content: '+';
  color: var(--accent-green);
  font-weight: 800;
  flex-shrink: 0;
}

.guide-faq-item.open .guide-faq-q::after {
  content: '−';
}

.guide-faq-a {
  display: none;
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guide-faq-item.open .guide-faq-a {
  display: block;
}

.guide-empty {
  padding: 28px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-md);
}

.guide-empty.guide-hidden {
  display: none;
}

body.light-mode .guide-hero {
  background: linear-gradient(135deg, rgba(0, 163, 255, 0.08) 0%, var(--bg-card) 70%);
}

body.light-mode .guide-figure {
  background: #f4f6f8;
}
