/* ====================================================================
   HELP & GUIDE SYSTEM STYLES — v3
   3-tier navigation: Hub -> Category -> Article
   Card-based hierarchy for the hub & category lists,
   focused reading view for articles.
   Matches theme.css variables, light + dark mode.
   ==================================================================== */

/* ── CONTAINER ── */
#helpContentContainer.setup-section {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--app-bg) !important;
    border-top: none !important;
    border-bottom: none !important;
}

.help-main-screen,
.help-category-view,
.help-article-view {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-bottom: 24px;
}

/* ── SECTION LABELS ── */
.help-section-label {
    color: var(--text-3) !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0 16px;
    margin: 22px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-section-label i {
    color: var(--brand-green) !important;
    font-size: 0.8rem;
}

/* ── TOP HEADER BAR (hub) ── */
.help-header {
    margin: 0 0 0 0;
    text-align: left;
    width: 100%;
    padding: 18px 16px;
    box-sizing: border-box;
    background: var(--header-bg) !important;
}

.help-title h2 {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 3px 0;
}

.help-title p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.8rem;
    opacity: 1;
    margin: 0;
    line-height: 1.4;
}

/* ── HEADER BAR WITH BACK ARROW (category / article) ── */
.help-header-with-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    margin: 0;
    box-sizing: border-box;
    background: var(--header-bg) !important;
}

.help-back-arrow {
    background: rgba(255, 255, 255, 0.16) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    color: #ffffff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.help-back-arrow:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

/* ── HERO CARD (hub intro) ── */
.help-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 16px 0 16px;
    padding: 16px;
    background: var(--icon-circle-bg) !important;
    border: 0.5px solid var(--border) !important;
    border-radius: 14px;
    box-sizing: border-box;
}

.help-hero-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background: var(--brand-green) !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.help-hero-text h3 {
    color: var(--text-1) !important;
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.help-hero-text p {
    color: var(--text-2) !important;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}

/* ── HELP CATEGORIES (hub) — elevated cards ── */
.help-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.help-category-card {
    background: var(--surface) !important;
    border: 0.5px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    margin: 0 !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.help-category-card:hover {
    background: var(--surface-2) !important;
    transform: translateY(-1px);
    box-shadow: none;
}

.help-category-card .category-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    flex-shrink: 0;
    border: none !important;
}

.help-category-card .category-content {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    padding: 0 !important;
}

.help-category-card .category-content h3 {
    color: var(--text-1) !important;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 3px 0;
}

.help-category-card .category-content p {
    color: var(--text-2) !important;
    line-height: 1.4;
    margin: 0 0 6px 0;
    font-size: 0.8rem;
    opacity: 1 !important;
}

.section-count {
    display: inline-flex;
    color: var(--brand-green) !important;
    background: var(--icon-circle-bg) !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 99px;
}

.category-arrow {
    color: var(--text-3) !important;
    opacity: 1;
    transition: transform 0.2s ease;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.help-category-card:hover .category-arrow {
    transform: translateX(3px);
    color: var(--brand-green) !important;
}

/* ── QUICK START / POPULAR TOPICS (hub) — flat rows ── */
.help-quick-access {
    width: 100%;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: var(--surface) !important;
    border-top: 0.5px solid var(--border) !important;
    border-bottom: 0.5px solid var(--border) !important;
}

.quick-link {
    background: transparent !important;
    border: none !important;
    border-bottom: 0.5px solid var(--divider) !important;
    border-radius: 0 !important;
    padding: 12px 16px !important;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 13px;
    box-sizing: border-box;
}

.quick-link:last-child {
    border-bottom: none !important;
}

.quick-link:hover {
    background: var(--surface-2) !important;
    transform: none !important;
}

.quick-link-icon {
    color: var(--icon-circle-color) !important;
    background: var(--icon-circle-bg) !important;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.quick-link span {
    color: var(--text-1) !important;
    font-weight: 500;
    font-size: 0.88rem;
    flex: 1;
}

.quick-link-arrow {
    color: var(--text-3) !important;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ── CATEGORY DETAIL HEADER ── */
.category-title-section {
    display: flex;
    align-items: center;
    gap: 13px;
    flex: 1;
    min-width: 0;
}

.category-icon-large {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    flex-shrink: 0;
    border: none !important;
    box-shadow: none !important;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h2 {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.category-info p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0;
}

/* ── ARTICLE LIST (category view) — numbered cards ── */
.help-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 16px;
    margin: 0;
    box-sizing: border-box;
}

.help-article-card {
    background: var(--surface) !important;
    border: 0.5px solid var(--border) !important;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.help-article-card:hover {
    background: var(--surface-2) !important;
    transform: translateY(-1px);
    box-shadow: none;
}

.article-index {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--icon-circle-bg) !important;
    color: var(--brand-green) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-content h3 {
    color: var(--text-1) !important;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 3px 0;
}

.article-content p {
    color: var(--text-2) !important;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* ── ARTICLE VIEW — header ── */
.article-header-text {
    flex: 1;
    min-width: 0;
}

.article-breadcrumb {
    display: block;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.article-header-text h2 {
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* ── ARTICLE BODY ── */
.help-article-body {
    padding: 16px;
    box-sizing: border-box;
}

.article-progress {
    display: inline-flex;
    color: var(--brand-green) !important;
    background: var(--icon-circle-bg) !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 99px;
    margin-bottom: 14px;
}

.article-content-body {
    background: var(--surface) !important;
    border: 0.5px solid var(--border) !important;
    border-radius: 14px;
    padding: 4px 16px 16px;
    box-sizing: border-box;
}

/* ── CONTENT TYPOGRAPHY (inside article-content-body) ── */
.article-content-body h4 {
    color: var(--text-1) !important;
    font-size: 1rem;
    font-weight: 700;
    margin: 20px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid var(--border) !important;
    padding-bottom: 10px;
}

.article-content-body h4:first-child {
    margin-top: 16px;
}

.article-content-body h4 i {
    color: var(--brand-green) !important;
    font-size: 0.9rem;
}

.article-content-body h5 {
    color: var(--brand-green) !important;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 16px 0 8px 0;
}

.article-content-body p {
    color: var(--text-2) !important;
    margin-bottom: 11px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.article-content-body ul {
    margin: 6px 0 14px 18px;
    color: var(--text-2) !important;
    padding: 0;
}

.article-content-body li {
    margin-bottom: 6px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-2) !important;
}

.article-content-body strong {
    color: var(--text-1) !important;
    font-weight: 600;
}

/* ── WELCOME BANNER (inside Getting Started > Overview) ── */
.welcome-banner {
    background: var(--icon-circle-bg) !important;
    border: 0.5px solid var(--border) !important;
    border-radius: 12px;
    padding: 16px;
    margin: 4px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.banner-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--brand-green) !important;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ffffff !important;
    flex-shrink: 0;
    box-shadow: none;
}

.banner-content {
    flex: 1;
}

.banner-content h3 {
    color: var(--brand-green) !important;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.banner-content p {
    margin: 0;
    color: var(--text-2) !important;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ── PROCESS FLOW (numbered steps) ── */
.process-flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    background: var(--surface-2) !important;
    border: 0.5px solid var(--border) !important;
    border-radius: 10px;
    border-left: 3px solid var(--brand-green) !important;
}

.step-number {
    background: var(--brand-green) !important;
    color: #ffffff !important;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: var(--text-1) !important;
    display: block;
    margin-bottom: 2px;
    font-size: 0.88rem;
}

.step-content p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-2) !important;
}

/* ── TIP BOXES ── */
.tip-box {
    background: var(--icon-circle-bg) !important;
    border-left: 3px solid var(--brand-green) !important;
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.tip-box i {
    color: var(--brand-green) !important;
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.tip-box span {
    color: var(--text-2) !important;
    line-height: 1.5;
    font-size: 0.85rem;
}

.tip-box span strong {
    color: var(--text-1) !important;
}

/* ── ARTICLE PREV/NEXT FOOTER NAV ── */
.article-nav-footer {
    display: flex;
    gap: 10px;
    padding: 16px 16px 0;
    box-sizing: border-box;
}

.article-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface) !important;
    border: 0.5px solid var(--border) !important;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 0;
}

.article-nav-btn:hover {
    background: var(--surface-2) !important;
}

.article-nav-prev {
    justify-content: flex-start;
}

.article-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.article-nav-btn > i {
    color: var(--brand-green) !important;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.article-nav-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.article-nav-label {
    color: var(--text-3) !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.article-nav-title {
    color: var(--text-1) !important;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-nav-spacer {
    flex: 1;
}

/* ── BACK TO TOP BUTTON ── */
.back-to-top-container {
    display: flex;
    justify-content: center;
    margin: 18px 0 0 0;
    padding: 0 16px;
}

.back-to-top-btn {
    background: transparent !important;
    border: none;
    border-radius: 22px;
    padding: 10px 22px;
    color: var(--brand-green) !important;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
    box-shadow: none;
}

.back-to-top-btn:hover {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.back-to-top-btn i {
    font-size: 0.78rem;
}