/* ===========================================
   Help Center — Bilgi Havuzu (Knowledge Base)
   =========================================== */

.help-wrap { max-width: 1100px; margin: 0 auto; }

/* Search bar */
.help-search {
    position: relative;
    margin-bottom: 1.5rem;
}
.help-search__input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow .15s ease, border-color .15s ease;
}
.help-search__input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.dark .help-search__input { background: #1f2937; color: #f9fafb; border-color: #374151; }

.help-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: #9ca3af;
}

/* Category grid */
.help-cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .help-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .help-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

.help-cat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    cursor: pointer;
}
.help-cat-card:hover {
    transform: translateY(-2px);
    border-color: #10b981;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
}
.dark .help-cat-card { background: #1f2937; border-color: #374151; }
.dark .help-cat-card:hover { border-color: #10b981; }

.help-cat-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: #ecfdf5;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.help-cat-card__icon svg { width: 1.5rem; height: 1.5rem; }
.dark .help-cat-card__icon { background: rgba(16,185,129,0.18); }

.help-cat-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}
.dark .help-cat-card__title { color: #f9fafb; }

.help-cat-card__summary {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    flex: 1;
}
.dark .help-cat-card__summary { color: #9ca3af; }

.help-cat-card__meta {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

/* Article list */
.help-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 1.5rem 0 0.75rem;
}
.dark .help-section-title { color: #f9fafb; }

.help-article-list {
    background: #fff;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}
.dark .help-article-list { background: #1f2937; }

.help-article-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background-color .12s ease;
    cursor: pointer;
}
.help-article-row:hover { background: #f9fafb; }

.help-article-row__icon {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 0.5rem;
    padding: 0.5rem;
}
.help-article-row__icon svg { width: 1.25rem; height: 1.25rem; }
.dark .help-article-row__icon { background: rgba(16,185,129,0.18); }

.help-article-row__body { flex: 1; min-width: 0; }
.dark .help-article-row { border-color: #374151; }
.dark .help-article-row:hover { background: #374151; }
.help-article-row:last-child { border-bottom: none; }

.help-article-row__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.125rem;
}
.dark .help-article-row__title { color: #f9fafb; }

.help-article-row__summary {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.help-article-row__meta {
    flex-shrink: 0;
    margin-left: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: right;
}

/* Breadcrumb */
.help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 1rem;
}
.help-breadcrumb a {
    color: #10b981;
    text-decoration: none;
}
.help-breadcrumb a:hover { text-decoration: underline; }

/* Article detail */
.help-article {
    background: #fff;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 2rem;
}
.dark .help-article { background: #1f2937; color: #e5e7eb; }

.help-article__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dark .help-article__title { color: #f9fafb; border-color: #374151; }

.help-article__title-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    color: #10b981;
}

.help-article__body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #1f2937;
}
.dark .help-article__body { color: #e5e7eb; }

.help-article__body h1,
.help-article__body h2,
.help-article__body h3 {
    font-weight: 700;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.dark .help-article__body h1,
.dark .help-article__body h2,
.dark .help-article__body h3 { color: #f9fafb; }

.help-article__body h1 { font-size: 1.5rem; }
.help-article__body h2 { font-size: 1.25rem; }
.help-article__body h3 { font-size: 1.0625rem; }

.help-article__body p { margin-bottom: 0.875rem; }

.help-article__body ul,
.help-article__body ol {
    margin-bottom: 0.875rem;
    padding-left: 1.5rem;
}
.help-article__body li { margin-bottom: 0.25rem; }
.help-article__body ul li { list-style: disc; }
.help-article__body ol li { list-style: decimal; }

.help-article__body a {
    color: #10b981;
    text-decoration: underline;
}

.help-article__body code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: ui-monospace, monospace;
}
.dark .help-article__body code { background: #374151; }

.help-article__body pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    margin: 0.875rem 0;
}
.help-article__body pre code { background: none; padding: 0; color: inherit; }

.help-article__body blockquote {
    border-left: 4px solid #10b981;
    background: #ecfdf5;
    color: #065f46;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}
.dark .help-article__body blockquote {
    background: rgba(16,185,129,0.1);
    color: #6ee7b7;
}

.help-article__body img { max-width: 100%; border-radius: 0.5rem; margin: 0.875rem 0; }

/* Feedback */
.help-feedback {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.dark .help-feedback { border-color: #374151; }

.help-feedback__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}
.dark .help-feedback__label { color: #f9fafb; }

.help-feedback__btns {
    display: inline-flex;
    gap: 0.5rem;
}

.help-feedback__btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all .12s ease;
}
.help-feedback__btn:hover {
    border-color: #10b981;
    background: #ecfdf5;
    color: #047857;
}
.dark .help-feedback__btn { background: #1f2937; color: #e5e7eb; border-color: #374151; }
.dark .help-feedback__btn:hover { background: rgba(16,185,129,0.1); color: #6ee7b7; }

.help-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #9ca3af;
    background: #fff;
    border-radius: 0.875rem;
    border: 1px dashed #e5e7eb;
}
.dark .help-empty { background: #1f2937; border-color: #374151; }

/* Sidebar help button (panel-wide) */
.help-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    width: 100%;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
}
.help-sidebar-btn:hover { color: #10b981; background: #f9fafb; }
.dark .help-sidebar-btn { color: #9ca3af; border-color: #374151; }
.dark .help-sidebar-btn:hover { color: #6ee7b7; background: #374151; }
.help-sidebar-btn svg { width: 1rem; height: 1rem; }
