/* help_contextual.css - עיצוב עזרה הקשרית (tooltip + modal) */

/* עזרה גלובלית למסך – אייקון בכותרת העליונה */
.help-global-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.help-global-title-row h1 {
    margin: 0;
}
.help-global-trigger {
    flex-shrink: 0;
    padding: 4px;
    border: none;
    background: none;
    color: var(--color-primary-light, #7a9cad);
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}
.help-global-trigger:hover {
    color: var(--color-primary-dark, #5C6F7D);
}
.help-global-trigger .help-global-icon-svg {
    display: block;
}

/* שורת כותרת עם סימן שאלה ליד הכותרת */
.help-contextual-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.help-contextual-title-row h1,
.help-contextual-title-row h2,
.help-contextual-title-row h3 {
    margin: 0;
}

/* כפתור סימן שאלה – עזרה מורחבת (modal) */
.help-contextual-modal-trigger {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--color-primary-light, #7a9cad);
    border-radius: 50%;
    background: var(--color-card-background, #fff);
    color: var(--color-primary-light, #7a9cad);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.help-contextual-modal-trigger:hover {
    background: var(--color-primary-light, #7a9cad);
    color: #fff;
}
/* כשהטריגר בתוך אלמנט ללא כותרת – מיקום פינה */
.help-contextual-has-modal .help-contextual-modal-trigger {
    position: absolute;
    top: 4px;
    left: 4px;
}
.help-contextual-has-modal {
    position: relative;
}

/* שכבת הרקע והחלון */
.help-contextual-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.help-contextual-overlay.help-contextual-visible {
    display: flex;
}
.help-contextual-modal {
    background: var(--color-card-background, #fff);
    border-radius: var(--border-radius-md, 8px);
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.help-contextual-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-subtle, #e0e0e0);
    background: var(--color-accent-lighter, #f5f0eb);
}
.help-contextual-modal-header h2 {
    margin: 0;
    font-size: 1.1em;
}
.help-contextual-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    color: var(--color-primary-dark, #5C6F7D);
}
.help-contextual-close:hover {
    color: #333;
}
.help-contextual-modal-body {
    padding: 16px;
    overflow: auto;
    max-height: 60vh;
}
.help-contextual-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}
