/* ============================================================
   Help Center Styles
   Matches admin panel design language (cards, colors, typography)
   ============================================================ */

/* ---- Container ---- */
.help-center-container {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #f8f9fb;
    position: relative;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.help-center-container.visible {
    display: flex;
}

/* ---- Homepage Layout ---- */
.help-center-homepage {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 32px 64px;
}

.help-center-homepage-header {
    text-align: center;
    margin-bottom: 40px;
}

.help-center-homepage-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.help-center-homepage-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* ---- Search Bar ---- */
.help-center-search-wrapper {
    max-width: 600px;
    margin: 0 auto 44px;
    position: relative;
}

.help-center-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 15px;
}

.help-center-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-size: 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.help-center-search-input::placeholder {
    color: #94a3b8;
}

.help-center-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* ---- Section Titles ---- */
.help-center-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 18px;
    padding: 0;
}

.help-center-section + .help-center-section {
    margin-top: 40px;
}

/* ---- Getting Started (numbered steps) ---- */
.help-center-getting-started-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.help-center-step-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    border: 1px solid #e2e8f0;
}

.help-center-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.help-center-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.help-center-step-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.help-center-step-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ---- Feature Guides (card grid) ---- */
.help-center-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.help-center-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.help-center-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.help-center-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    color: #6366f1;
    font-size: 18px;
}

.help-center-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.help-center-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.help-center-card-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 4px;
}

/* ---- Admin Section ---- */
.help-center-admin-section {
    border-top: 2px solid #e2e8f0;
    padding-top: 32px;
}

.help-center-admin-section .help-center-section-title {
    color: #6366f1;
}

.help-center-admin-section .help-center-card {
    border-left: 3px solid #6366f1;
}

/* ---- Article View (sidebar + content layout) ---- */
.help-center-article-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left sidebar navigation */
.help-center-sidebar {
    width: 280px;
    min-width: 280px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    padding: 24px 0;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

.help-center-sidebar-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 8px;
}

.help-center-sidebar-home:hover {
    color: #4f46e5;
}

.help-center-sidebar-category {
    padding: 12px 20px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.help-center-sidebar-item {
    display: block;
    padding: 8px 20px 8px 28px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    border-left: 3px solid transparent;
}

.help-center-sidebar-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.help-center-sidebar-item.active {
    background: #eef2ff;
    color: #6366f1;
    font-weight: 600;
    border-left-color: #6366f1;
}

/* Article content area */
.help-center-article {
    flex: 1;
    max-width: 800px;
    padding: 40px 48px 64px;
    overflow-y: auto;
}

.help-center-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
}

.help-center-breadcrumb-link {
    color: #6366f1;
    cursor: pointer;
    text-decoration: none;
}

.help-center-breadcrumb-link:hover {
    text-decoration: underline;
}

.help-center-breadcrumb-sep {
    color: #cbd5e1;
}

.help-center-article-header {
    margin-bottom: 32px;
}

.help-center-article-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.help-center-article-header .help-center-article-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 8px;
}

.help-center-article-header .help-center-article-meta {
    font-size: 12px;
    color: #94a3b8;
}

/* ---- Article Sections ---- */
.help-center-article-section {
    margin-bottom: 32px;
}

.help-center-article-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* ---- Numbered Steps ---- */
.help-center-step {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.help-center-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

.help-center-step-content {
    flex: 1;
}

.help-center-step-content p {
    font-size: 14px;
    color: #334155;
    margin: 0;
    line-height: 1.6;
}

/* ---- Screenshot Placeholder ---- */
.help-center-screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    margin-top: 12px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    padding: 16px;
}

/* ---- Related Topics ---- */
.help-center-related {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.help-center-related h3 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 12px;
}

.help-center-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.help-center-related-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-size: 13px;
    color: #6366f1;
    background: #eef2ff;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
}

.help-center-related-chip:hover {
    background: #e0e7ff;
}

/* ---- Search Results State ---- */
.help-center-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.help-center-no-results h3 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 6px;
}

.help-center-no-results p {
    font-size: 14px;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .help-center-getting-started-grid {
        grid-template-columns: 1fr;
    }

    .help-center-homepage {
        padding: 32px 16px 48px;
    }

    .help-center-article-layout {
        flex-direction: column;
    }

    .help-center-sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 16px 0;
    }

    .help-center-article {
        padding: 28px 16px 48px;
    }
}
