/* ═══════════════════════════════════════════════════
   Admin Help Center — Styles v1.0
   Mobile-first, clean documentation layout
   ═══════════════════════════════════════════════════ */

/* Hero / Search */
.help-hero {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-radius: 16px;
    padding: 40px 24px;
    margin-bottom: 28px;
    text-align: center;
}
.help-hero-inner h2 { color: #fff; margin: 0 0 6px; font-size: 24px; }
.help-hero-inner .text-muted { color: rgba(255,255,255,.75); margin-bottom: 18px; }
.help-search-wrap {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}
.help-search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}
.help-search-input {
    width: 100%; padding: 12px 16px 12px 42px;
    border-radius: 12px; border: none;
    font-size: 15px; background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.help-search-input:focus { outline: none; box-shadow: 0 4px 24px rgba(0,0,0,.25); }

/* Search Results Dropdown */
.help-results {
    max-width: 500px; margin: 8px auto 0;
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    overflow: hidden; text-align: left;
}
.help-results:empty { display: none; }
.help-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; text-decoration: none;
    color: var(--text); border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.help-result-item:last-child { border-bottom: none; }
.help-result-item:hover { background: var(--bg-secondary); }

/* Section Titles */
.help-section-title {
    font-size: 16px; font-weight: 700;
    margin: 0 0 14px; color: var(--text);
}

/* Category Grid */
.help-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px; margin-bottom: 32px;
}
.help-cat-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all .2s;
}
.help-cat-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.help-cat-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.help-cat-info { flex: 1; min-width: 0; }
.help-cat-name { font-weight: 600; font-size: 15px; }
.help-cat-arrow { color: var(--text-muted); flex-shrink: 0; }

/* Popular Articles */
.help-popular-list { margin-bottom: 28px; }
.help-popular-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; text-decoration: none; color: var(--text);
    border-bottom: 1px solid var(--border); transition: background .15s;
}
.help-popular-item:hover { background: var(--bg-secondary); }
.help-pop-icon { font-size: 18px; flex-shrink: 0; }
.help-pop-title { flex: 1; font-weight: 500; }

/* Bubble Hint */
.help-bubble-hint {
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
}
.help-bubble-hint-inner {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
}

/* Back Link */
.help-back-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--text-muted); text-decoration: none;
    font-size: 14px; margin-bottom: 14px;
    transition: color .15s;
}
.help-back-link:hover { color: var(--primary); }

/* Category Header */
.help-cat-header {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; background: var(--bg-card);
    border-radius: 12px; margin-bottom: 20px;
}

/* Article List */
.help-article-list { margin-bottom: 28px; }
.help-article-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; text-decoration: none; color: var(--text);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 8px; transition: all .2s;
}
.help-article-card:hover { border-color: var(--primary); transform: translateX(4px); }
.help-art-icon { font-size: 20px; flex-shrink: 0; }
.help-art-info { flex: 1; min-width: 0; }
.help-art-arrow { color: var(--text-muted); flex-shrink: 0; }

/* Article Detail */
.help-article-detail { padding: 28px 24px; margin-bottom: 24px; }
.help-art-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.help-art-title { font-size: 22px; margin: 0 0 8px; line-height: 1.3; }
.help-art-summary { color: var(--text-muted); font-size: 15px; margin: 0 0 20px; }
.help-art-content {
    line-height: 1.8; font-size: 15px; color: var(--text);
}
.help-art-content h3 { font-size: 18px; margin: 24px 0 10px; }
.help-art-content h4 { font-size: 16px; margin: 20px 0 8px; color: var(--text-muted); }
.help-art-content code {
    background: var(--bg-secondary); padding: 2px 6px;
    border-radius: 4px; font-size: 13px;
}
.help-art-content ul, .help-art-content ol { padding-left: 20px; margin: 8px 0; }
.help-art-content li { margin-bottom: 6px; }
.help-art-content strong { color: var(--text); }
.help-art-meta { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ─── Mobile (≤768px) ──────────────────────────── */
@media (max-width: 768px) {
    .help-hero { padding: 28px 16px; border-radius: 12px; }
    .help-hero-inner h2 { font-size: 20px; }
    .help-cat-grid { grid-template-columns: 1fr; gap: 8px; }
    .help-cat-card { padding: 14px; }
    .help-cat-icon { width: 38px; height: 38px; font-size: 18px; }
    .help-article-detail { padding: 20px 16px; }
    .help-art-title { font-size: 19px; }
    .help-art-content { font-size: 14px; }
    .help-bubble-hint-inner { padding: 12px 14px; }
}

/* ─── Small Mobile (≤480px) ────────────────────── */
@media (max-width: 480px) {
    .help-hero { padding: 22px 12px; margin-bottom: 20px; }
    .help-hero-inner h2 { font-size: 18px; }
    .help-search-input { font-size: 14px; padding: 10px 14px 10px 38px; }
    .help-article-card { padding: 12px 14px; gap: 10px; }
    .help-cat-header { padding: 12px 14px; }
}