/* ==========================================================================
   MonoFina Help & Knowledge Base Center Styles (Uluslararası Normlarda)
   ========================================================================== */

:root {
    --mf-help-primary: #2563eb;
    --mf-help-primary-hover: #1d4ed8;
    --mf-help-primary-subtle: #eff6ff;
    --mf-help-text-dark: #0f172a;
    --mf-help-text-muted: #64748b;
    --mf-help-border: #e2e8f0;
    --mf-help-bg-light: #f8fafc;
    --mf-help-radius: 12px;
    --mf-help-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Hero & Search Section --- */
.help-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 0 50px 0;
    position: relative;
    overflow: hidden;
}

.help-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.help-search-container {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.help-search-input-group {
    background: #ffffff;
    border-radius: 16px;
    padding: 6px 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: var(--mf-help-transition);
    border: 2px solid transparent;
}

.help-search-input-group:focus-within {
    border-color: var(--mf-help-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.help-search-input-group input {
    border: none;
    outline: none;
    font-size: 1.05rem;
    padding: 10px 14px;
    width: 100%;
    color: var(--mf-help-text-dark);
}

.help-search-input-group input::placeholder {
    color: #94a3b8;
}

.help-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--mf-help-border);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.help-search-item {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: block;
    text-decoration: none;
    color: var(--mf-help-text-dark);
    transition: var(--mf-help-transition);
}

.help-search-item:last-child {
    border-bottom: none;
}

.help-search-item:hover {
    background-color: var(--mf-help-primary-subtle);
    color: var(--mf-help-primary);
}

.help-search-item .badge {
    font-size: 0.72rem;
    font-weight: 500;
}

/* --- Category Cards Grid --- */
.help-category-card {
    background: #ffffff;
    border: 1px solid var(--mf-help-border);
    border-radius: var(--mf-help-radius);
    padding: 24px;
    transition: var(--mf-help-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.help-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    color: inherit;
}

.help-cat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--mf-help-primary-subtle);
    color: var(--mf-help-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: var(--mf-help-transition);
}

.help-category-card:hover .help-cat-icon-wrapper {
    background: var(--mf-help-primary);
    color: #ffffff;
}

.help-category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--mf-help-text-dark);
}

.help-category-card p {
    font-size: 0.9rem;
    color: var(--mf-help-text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.help-category-card .article-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mf-help-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- 3-Column Docs Layout --- */
.help-docs-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr 240px;
    gap: 32px;
    min-height: calc(100vh - 200px);
    align-items: start;
}

@media (max-width: 1200px) {
    .help-docs-wrapper {
        grid-template-columns: 260px 1fr;
    }
    .help-docs-toc-col {
        display: none;
    }
}

@media (max-width: 992px) {
    .help-docs-wrapper {
        grid-template-columns: 1fr;
    }
    .help-docs-sidebar-col {
        display: none;
    }
}

/* --- Left Nav Sidebar --- */
.help-docs-sidebar {
    position: sticky;
    top: 24px;
    background: #ffffff;
    border: 1px solid var(--mf-help-border);
    border-radius: var(--mf-help-radius);
    padding: 16px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.help-nav-category-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 16px 0 8px 12px;
}

.help-nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: var(--mf-help-transition);
}

.help-nav-link:hover {
    background-color: var(--mf-help-bg-light);
    color: var(--mf-help-text-dark);
}

.help-nav-link.active {
    background-color: var(--mf-help-primary-subtle);
    color: var(--mf-help-primary);
    font-weight: 600;
}

.help-nav-link i {
    font-size: 1.1rem;
    margin-right: 8px;
}

/* --- Main Article Content --- */
.help-article-content {
    background: #ffffff;
    border: 1px solid var(--mf-help-border);
    border-radius: var(--mf-help-radius);
    padding: 40px;
    line-height: 1.75;
    color: #334155;
}

.help-article-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--mf-help-text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.help-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--mf-help-text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mf-help-border);
    margin-bottom: 24px;
}

.help-lead {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 400;
    margin-bottom: 28px;
    line-height: 1.7;
}

.help-article-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mf-help-text-dark);
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.help-article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mf-help-text-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.help-article-content ol, 
.help-article-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

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

/* --- Callouts & Alerts --- */
.help-callout {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 12px;
    margin: 24px 0;
    font-size: 0.92rem;
}

.help-callout-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.help-callout-body {
    flex-grow: 1;
}

.help-callout-info {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}
.help-callout-info .help-callout-icon { color: #3b82f6; }

.help-callout-warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}
.help-callout-warning .help-callout-icon { color: #f59e0b; }

.help-callout-tip {
    background-color: #f0fdf4;
    border-left: 4px solid #10b981;
    color: #065f46;
}
.help-callout-tip .help-callout-icon { color: #10b981; }

.help-callout-danger {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}
.help-callout-danger .help-callout-icon { color: #ef4444; }

/* --- Right In-Page TOC --- */
.help-docs-toc {
    position: sticky;
    top: 24px;
    background: #ffffff;
    border: 1px solid var(--mf-help-border);
    border-radius: var(--mf-help-radius);
    padding: 20px;
}

.help-toc-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 12px;
}

.help-toc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.help-toc-item {
    margin-bottom: 6px;
}

.help-toc-link {
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--mf-help-transition);
}

.help-toc-link:hover, .help-toc-link.active {
    color: var(--mf-help-primary);
    background-color: var(--mf-help-primary-subtle);
    font-weight: 600;
}

/* --- Feedback Section --- */
.help-feedback-box {
    margin-top: 40px;
    padding: 24px;
    background-color: var(--mf-help-bg-light);
    border-radius: var(--mf-help-radius);
    text-align: center;
    border: 1px solid var(--mf-help-border);
}

.help-feedback-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0 6px;
    transition: var(--mf-help-transition);
}

/* --- Keyboard Badges (Kbd) --- */
.mf-kbd {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom: 2px solid #94a3b8;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.78rem;
    font-family: monospace;
    font-weight: 600;
    color: #334155;
}

/* --- Context Slide-Over Drawer --- */
.mf-help-drawer-offcanvas {
    width: 440px !important;
    border-left: 1px solid var(--mf-help-border);
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
}

.mf-help-drawer-card {
    border: 1px solid var(--mf-help-border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--mf-help-text-dark);
    display: block;
    transition: var(--mf-help-transition);
    background: #ffffff;
}

.mf-help-drawer-card:hover {
    border-color: var(--mf-help-primary);
    background-color: var(--mf-help-primary-subtle);
    color: var(--mf-help-primary);
}

/* --- Print Styles --- */
@media print {
    #sidebar, .tenant-navbar, .help-docs-sidebar-col, .help-docs-toc-col, .help-feedback-box, .no-print {
        display: none !important;
    }
    .help-docs-wrapper {
        display: block !important;
    }
    .help-article-content {
        border: none !important;
        padding: 0 !important;
    }
}
