/* ====================== HELP MODE STYLES ====================== */
/* Стили для режима "Справка по Storix" */

/* ---------- Help Header (специальный бар) ---------- */
.help-header {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid #7dd3fc;
    border-radius: 12px;
    margin: 12px 16px 8px 16px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.help-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.help-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-header-icon {
    font-size: 1.4em;
}

.help-header-text {
    font-size: 1.05em;
    color: #0369a1;
    font-weight: 500;
}

.help-header-close-btn {
    background: #e11d48;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-header-close-btn:hover {
    background: #be123c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* ---------- Help View Modal ---------- */
.help-view-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.help-view-modal {
    background: var(--bg-surface, #ffffff);
    border-radius: 16px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid var(--border-color, #e2e8f0);
}

.help-view-header {
    background: linear-gradient(to right, #0ea5e9, #0284c8);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.help-view-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.help-view-icon {
    font-size: 1.3em;
}

.help-view-id {
    font-size: 0.85em;
    opacity: 0.85;
    font-weight: 400;
    margin-left: 8px;
}

.help-view-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.help-view-close-btn:hover {
    background: rgba(255,255,255,0.35);
}

.help-view-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    background: var(--bg-card, #f8fafc);
}

.help-view-description {
    font-size: 1.02em;
    line-height: 1.65;
    color: var(--text-primary, #1e293b);
}

.help-view-description p {
    margin: 0 0 14px 0;
}

.help-view-empty {
    color: #64748b;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}

/* Скриншоты внутри текста */
.help-view-image-wrapper {
    margin: 18px 0;
    text-align: center;
}

.help-screenshot {
    max-width: 100%;
    max-height: 520px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    display: block;
    margin: 0 auto;
}

.help-view-image-caption {
    margin-top: 8px;
    font-size: 0.85em;
    color: #64748b;
    font-style: italic;
}

/* Сообщение о не найденном изображении */
.help-view-missing-img {
    display: inline-block;
    background: #fef2f2;
    color: #b91c1c;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid #fecaca;
}

/* Футер модалки */
.help-view-footer {
    padding: 16px 24px;
    background: var(--bg-surface, #ffffff);
    border-top: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    justify-content: flex-end;
}

.help-view-btn-secondary {
    background: #64748b;
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.help-view-btn-secondary:hover {
    background: #475569;
}

/* Адаптивность */
@media (max-width: 600px) {
    .help-view-modal {
        max-height: 95vh;
        margin: 10px;
    }

    .help-view-content {
        padding: 18px 20px;
    }

    .help-screenshot {
        max-height: 420px;
    }
}