/* ==========================================================================
   BROKAR HELP CENTER - CONFLUENCE-INSPIRED LIGHT THEME
   Clean, professional documentation style with excellent readability
   ========================================================================== */

/* CSS Variables - Light Theme */
:root {
    --help-bg-page: #FAFBFC;
    --help-bg-white: #FFFFFF;
    --help-bg-sidebar: #F4F5F7;
    --help-bg-hover: #EBECF0;
    --help-bg-active: #E3F2FD;
    
    --help-text-primary: #172B4D;
    --help-text-secondary: #5E6C84;
    --help-text-muted: #97A0AF;
    --help-text-link: #0052CC;
    --help-text-link-hover: #0065FF;
    
    --help-border-light: #DFE1E6;
    --help-border-focus: #4C9AFF;
    
    --help-accent-blue: #0052CC;
    --help-accent-cyan: #00B8D9;
    --help-accent-green: #36B37E;
    --help-accent-purple: #6554C0;
    --help-accent-orange: #FF991F;
    
    --help-shadow-sm: 0 1px 2px rgba(9,30,66,0.08);
    --help-shadow-md: 0 4px 8px rgba(9,30,66,0.08), 0 0 1px rgba(9,30,66,0.12);
    --help-shadow-lg: 0 8px 16px rgba(9,30,66,0.12), 0 0 1px rgba(9,30,66,0.08);
    
    --help-radius-sm: 4px;
    --help-radius-md: 8px;
    --help-radius-lg: 12px;
}

/* Reset & Base */
.help-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--help-bg-page);
    color: var(--help-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px; /* Space for fixed header */
}

/* Layout Container */
.help-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* ==========================================================================
   SIDEBAR NAVIGATION - Confluence Style
   ========================================================================== */
.help-sidebar {
    width: 280px;
    background: var(--help-bg-white);
    border-right: 1px solid var(--help-border-light);
    padding: 24px 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-shrink: 0;
}

.help-sidebar-header {
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--help-border-light);
    margin-bottom: 16px;
}

.help-sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--help-text-muted);
    margin-bottom: 8px;
}

.help-sidebar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--help-text-primary);
}

.help-nav-group {
    margin-bottom: 20px;
}

.help-nav-group-title {
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--help-text-muted);
}

.help-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--help-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.help-nav-item:hover {
    background: var(--help-bg-hover);
    color: var(--help-text-primary);
}

.help-nav-item.active {
    background: var(--help-bg-active);
    color: var(--help-accent-blue);
    border-left-color: var(--help-accent-blue);
    font-weight: 600;
}

.help-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.help-nav-item.active i {
    opacity: 1;
}

.help-nav-count {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--help-bg-hover);
    border-radius: 12px;
    color: var(--help-text-muted);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.help-main {
    flex: 1;
    padding: 32px 48px;
    max-width: 900px;
}

/* Breadcrumb */
.help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--help-text-muted);
    margin-bottom: 24px;
}

.help-breadcrumb a {
    color: var(--help-text-link);
    text-decoration: none;
}

.help-breadcrumb a:hover {
    text-decoration: underline;
}

.help-breadcrumb i {
    font-size: 0.65rem;
}

/* Page Header */
.help-page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--help-border-light);
}

.help-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--help-bg-active);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--help-accent-blue);
    margin-bottom: 12px;
}

.help-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--help-text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.help-page-description {
    font-size: 1.1rem;
    color: var(--help-text-secondary);
    line-height: 1.6;
}

.help-article-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 12px;
    background: var(--help-bg-page);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--help-text-muted);
}

.help-article-count i {
    color: var(--help-accent-blue);
}

/* ==========================================================================
   SEARCH BOX
   ========================================================================== */
.help-search-box {
    position: relative;
    margin-bottom: 32px;
}

.help-search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--help-border-light);
    border-radius: var(--help-radius-md);
    font-size: 1rem;
    color: var(--help-text-primary);
    background: var(--help-bg-white);
    transition: all 0.2s ease;
}

.help-search-input:hover {
    border-color: #C1C7D0;
}

.help-search-input:focus {
    outline: none;
    border-color: var(--help-border-focus);
    box-shadow: 0 0 0 2px rgba(76, 154, 255, 0.2);
}

.help-search-input::placeholder {
    color: var(--help-text-muted);
}

.help-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--help-text-muted);
    font-size: 0.95rem;
}

.help-search-shortcut {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    background: var(--help-bg-page);
    border: 1px solid var(--help-border-light);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--help-text-muted);
    font-family: monospace;
}

/* ==========================================================================
   ARTICLES LIST - Card Style
   ========================================================================== */
.help-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-article-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--help-bg-white);
    border: 1px solid var(--help-border-light);
    border-radius: var(--help-radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-article-card:hover {
    border-color: var(--help-border-focus);
    box-shadow: var(--help-shadow-md);
    transform: translateY(-1px);
}

.help-article-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--help-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--help-bg-page);
    color: var(--help-accent-blue);
    font-size: 1rem;
}

.help-article-card:hover .help-article-icon {
    background: var(--help-bg-active);
}

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

.help-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--help-text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.help-article-card:hover .help-article-title {
    color: var(--help-accent-blue);
}

.help-article-excerpt {
    font-size: 0.9rem;
    color: var(--help-text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.help-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.help-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--help-bg-page);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--help-text-muted);
}

.help-tag-featured {
    background: #E3FCEF;
    color: #006644;
}

.help-tag-plan {
    background: #DEEBFF;
    color: #0747A6;
}

.help-article-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--help-text-muted);
    transition: all 0.2s ease;
}

.help-article-card:hover .help-article-arrow {
    color: var(--help-accent-blue);
    transform: translateX(4px);
}

/* ==========================================================================
   CATEGORIES GRID - Index Page
   ========================================================================== */
.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.help-category-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--help-bg-white);
    border: 1px solid var(--help-border-light);
    border-radius: var(--help-radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-category-card:hover {
    border-color: var(--help-border-focus);
    box-shadow: var(--help-shadow-md);
    transform: translateY(-2px);
}

.help-category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--help-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    background: var(--help-bg-active);
    color: var(--help-accent-blue);
}

.help-category-card:hover .help-category-icon {
    background: var(--help-accent-blue);
    color: white;
}

.help-category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--help-text-primary);
    margin-bottom: 8px;
}

.help-category-card:hover .help-category-name {
    color: var(--help-accent-blue);
}

.help-category-desc {
    font-size: 0.875rem;
    color: var(--help-text-secondary);
    line-height: 1.5;
    flex: 1;
}

.help-category-count {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--help-border-light);
    font-size: 0.8rem;
    color: var(--help-text-muted);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.help-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--help-bg-white);
    border: 1px dashed var(--help-border-light);
    border-radius: var(--help-radius-md);
}

.help-empty-state i {
    font-size: 3rem;
    color: var(--help-text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.help-empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--help-text-primary);
    margin-bottom: 8px;
}

.help-empty-state p {
    color: var(--help-text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   ARTICLE CONTENT - Prose Styles
   ========================================================================== */
.help-prose {
    color: var(--help-text-primary);
    line-height: 1.75;
}

.help-prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--help-border-light);
}

.help-prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 12px;
}

.help-prose p {
    margin-bottom: 16px;
    color: var(--help-text-secondary);
}

.help-prose ul,
.help-prose ol {
    margin: 16px 0 16px 24px;
    color: var(--help-text-secondary);
}

.help-prose li {
    margin-bottom: 8px;
}

.help-prose strong {
    color: var(--help-text-primary);
    font-weight: 600;
}

.help-prose code {
    background: var(--help-bg-page);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.9em;
    color: #EB5757;
}

.help-prose pre {
    background: #1E2433;
    color: #E5E9F0;
    padding: 16px 20px;
    border-radius: var(--help-radius-md);
    overflow-x: auto;
    margin: 20px 0;
}

.help-prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.help-prose img {
    max-width: 100%;
    border-radius: var(--help-radius-md);
    border: 1px solid var(--help-border-light);
    margin: 20px 0;
}

/* Alerts/Callouts */
.help-callout {
    padding: 16px 20px;
    border-radius: var(--help-radius-md);
    margin: 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.help-callout i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.help-callout-info {
    background: #DEEBFF;
    border-left: 4px solid #0052CC;
    color: #0747A6;
}

.help-callout-warning {
    background: #FFFAE6;
    border-left: 4px solid #FF991F;
    color: #664D03;
}

.help-callout-success {
    background: #E3FCEF;
    border-left: 4px solid #36B37E;
    color: #006644;
}

.help-callout-danger {
    background: #FFEBE6;
    border-left: 4px solid #DE350B;
    color: #AE2A19;
}

/* ==========================================================================
   TABLE OF CONTENTS - Sidebar
   ========================================================================== */
.help-toc {
    width: 220px;
    padding: 24px;
    position: sticky;
    top: 112px;
    height: fit-content;
}

.help-toc-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--help-text-muted);
    margin-bottom: 12px;
}

.help-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-toc-link {
    display: block;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--help-text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -2px;
    transition: all 0.15s ease;
}

.help-toc-link:hover {
    color: var(--help-text-primary);
}

.help-toc-link.active {
    color: var(--help-accent-blue);
    border-left-color: var(--help-accent-blue);
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1200px) {
    .help-toc {
        display: none;
    }
}

@media (max-width: 992px) {
    .help-sidebar {
        display: none;
    }
    
    .help-main {
        padding: 24px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .help-page-title {
        font-size: 1.5rem;
    }
    
    .help-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .help-article-card {
        flex-direction: column;
    }
    
    .help-article-arrow {
        display: none;
    }
}

/* ==========================================================================
   MOBILE SIDEBAR DRAWER
   ========================================================================== */
.help-mobile-nav-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--help-accent-blue);
    color: white;
    border: none;
    font-size: 1.25rem;
    box-shadow: var(--help-shadow-lg);
    cursor: pointer;
    z-index: 100;
}

@media (max-width: 992px) {
    .help-mobile-nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   QUICK ACTIONS / FEEDBACK
   ========================================================================== */
.help-feedback {
    margin-top: 48px;
    padding: 24px;
    background: var(--help-bg-page);
    border-radius: var(--help-radius-md);
    text-align: center;
}

.help-feedback-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--help-text-primary);
    margin-bottom: 16px;
}

.help-feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.help-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--help-border-light);
    border-radius: var(--help-radius-sm);
    background: var(--help-bg-white);
    color: var(--help-text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-feedback-btn:hover {
    border-color: var(--help-accent-blue);
    color: var(--help-accent-blue);
}

.help-feedback-btn.positive:hover {
    background: #E3FCEF;
    border-color: var(--help-accent-green);
    color: var(--help-accent-green);
}

.help-feedback-btn.negative:hover {
    background: #FFEBE6;
    border-color: #DE350B;
    color: #DE350B;
}

/* ==========================================================================
   RELATED ARTICLES
   ========================================================================== */
.help-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--help-border-light);
}

.help-related-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--help-text-primary);
    margin-bottom: 16px;
}

.help-related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-related-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--help-bg-white);
    border: 1px solid var(--help-border-light);
    border-radius: var(--help-radius-sm);
    text-decoration: none;
    color: var(--help-text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.help-related-link:hover {
    border-color: var(--help-border-focus);
    color: var(--help-accent-blue);
}

.help-related-link i {
    color: var(--help-text-muted);
}
