/* SPDX-FileCopyrightText: 2026 Dieter Bolz <dieter.bolz@t-online.de> */
/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* Help view, taken over from the agent app's styles.css (help.js renders it). */

.help-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.help-search-row input {
    margin-top: 0;
    padding-right: 42px;
}

.help-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    color: var(--text);
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.help-topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.help-topic-btn {
    margin: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-card);
    color: var(--text);
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}

@media (hover: hover) {
    .help-topic-btn:hover {
        background: var(--surface-subtle);
    }
}

.help-topic-btn.active {
    background: var(--action);
    border-color: var(--action);
    color: var(--text-inverse);
}

.help-btn-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.help-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.help-card-icon {
    font-size: 24px;
}

.help-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.help-card-body {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.help-card-body h3 {
    margin: 14px 0 6px;
    font-size: 16px;
    color: var(--text);
}

.help-card-body p {
    margin: 6px 0;
}

.help-card-body ul,
.help-card-body ol {
    margin: 6px 0;
    padding-left: 20px;
}

.help-card-body li {
    margin-bottom: 4px;
}

.help-card-body code {
    background: var(--surface-card);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.9em;
}

.help-card-body pre {
    background: var(--surface-card);
    border-radius: 8px;
    padding: var(--box-padding);
    overflow-x: auto;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 14px 0;
}

.help-nav-row {
    margin-top: 8px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.help-nav-row button {
    margin-top: 0;
    font-size: 14px;
    min-height: 40px;
}
