/* ==================================================================
   HELP CENTER — Complete Styles
   Matches the designed Help Center look
   ================================================================== */

/* ─── OVERLAY ─── */
.help-center-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 20, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.help-center-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* ─── CONTAINER ─── */
.help-center-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: 9999;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: rgba(13, 22, 37, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 36px 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.help-center-container.show {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.help-center-container::-webkit-scrollbar {
    width: 4px;
}

.help-center-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
}

/* ─── HEADER ─── */
.help-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.help-back-btn,
.help-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    font-size: 16px;
    flex-shrink: 0;
}

.help-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    transform: scale(1.05);
}

.help-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.help-title-group {
    flex: 1;
    min-width: 0;
}

.help-title-group h1 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.3px;
    margin: 0;
}

.help-sub {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

/* ─── SEARCH BAR ─── */
.help-search-wrapper {
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.help-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.help-search-box:focus-within {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.help-search-icon {
    color: #475569;
    font-size: 18px;
    flex-shrink: 0;
}

.help-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 0;
    font-size: 15px;
    color: #f1f5f9;
    outline: none;
    font-family: 'DM Sans', sans-serif;
}

.help-search-input::placeholder {
    color: #475569;
}

.help-search-shortcut {
    display: flex;
    gap: 4px;
    align-items: center;
    color: #334155;
    font-size: 11px;
    flex-shrink: 0;
}

.help-search-shortcut kbd {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.help-search-results {
    margin-top: 12px;
    min-height: 20px;
}

.help-search-status {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.help-search-status strong {
    color: #f1f5f9;
}

/* ─── STATS BAR ─── */
.help-stats-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 20px;
}

.help-stat {
    font-size: 12px;
    color: #64748b;
}

.help-stat strong {
    color: #f1f5f9;
}

.help-stat-num {
    font-weight: 700;
    font-size: 15px;
    color: #f1f5f9;
}

/* ─── SECTION LABEL ─── */
.help-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.help-section-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
}

/* ─── QUICK GRID ─── */
.help-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.help-quick-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px 12px 12px;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    overflow: hidden;
}

.help-quick-card:hover {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.08);
}

.help-qc-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.help-qc-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
}

.help-qc-desc {
    font-size: 10.5px;
    color: #475569;
    line-height: 1.3;
}

.help-qc-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    padding: 2px 8px;
    border-radius: 20px;
}

/* ─── STEPS GRID ─── */
.help-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.help-step-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.help-step-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.help-step-num {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-step-content {
    flex: 1;
    min-width: 0;
}

.help-step-title {
    font-size: 12.5px;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.3;
}

.help-step-desc {
    font-size: 10.5px;
    color: #475569;
    margin-top: 1px;
}

.help-step-icon {
    color: #475569;
    font-size: 12px;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.help-step-card:hover .help-step-icon {
    opacity: 0.8;
    transform: translateX(4px);
}

/* ─── ARTICLES GRID ─── */
.help-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.help-article-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.help-article-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.help-article-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.help-article-content {
    flex: 1;
    min-width: 0;
}

.help-article-title {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
}

.help-article-summary {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}

.help-article-category {
    margin-top: 6px;
}

.help-article-tag {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 10px;
    border-radius: 20px;
}

/* ─── FOOTER ─── */
.help-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 11px;
    color: #475569;
}

.help-footer kbd {
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.help-wa-link {
    color: #25d366;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.help-wa-link:hover {
    opacity: 0.8;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 820px) {
    .help-center-container {
        padding: 20px 16px 24px;
        border-radius: 24px;
        max-height: 95vh;
        max-width: 96vw;
    }

    .help-title-group h1 {
        font-size: 18px;
    }

    .help-sub {
        font-size: 12px;
    }

    .help-quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .help-steps-grid {
        grid-template-columns: 1fr;
    }

    .help-articles-grid {
        grid-template-columns: 1fr;
    }

    .help-search-box {
        padding: 0 12px;
    }

    .help-search-input {
        font-size: 14px;
        padding: 12px 0;
    }

    .help-search-shortcut {
        display: none;
    }

    .help-stats-bar {
        gap: 12px;
        padding: 8px 12px;
        font-size: 11px;
        flex-wrap: wrap;
    }

    .help-back-btn,
    .help-close-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .help-center-container {
        padding: 14px 10px 18px;
        border-radius: 20px;
    }

    .help-quick-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .help-quick-card {
        padding: 10px 10px 10px;
    }

    .help-qc-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .help-qc-title {
        font-size: 11px;
    }

    .help-qc-desc {
        font-size: 9px;
    }

    .help-step-card {
        padding: 10px 12px;
    }

    .help-article-item {
        padding: 10px 12px;
    }

    .help-title-group h1 {
        font-size: 16px;
    }

    .help-footer {
        font-size: 10px;
        gap: 8px;
    }
}