/* mascot-help.css — Contextual help styles */

/* Help mode cursor and registered element hints */
.mascot-help-mode {
    cursor: help;
}

.mascot-help-mode [data-mascot-help] {
    cursor: help;
    outline: 2px dashed var(--mascot-primary, #4a90d9);
    outline-offset: 2px;
    transition: outline-color 0.2s;
}

.mascot-help-mode [data-mascot-help]:hover {
    outline-color: var(--mascot-accent, #f5a623);
    outline-style: solid;
}

/* Help highlight ring on active target */
.mascot-help-highlight {
    outline: 3px solid var(--mascot-accent, #f5a623) !important;
    outline-offset: 4px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.3);
}

/* Slide-out help panel */
.mascot-help-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--mascot-bg, #fff);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mascot-help-panel--visible {
    right: 0;
}

/* Panel header */
.mascot-help-panel__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--mascot-border, #e0e0e0);
    position: sticky;
    top: 0;
    background: var(--mascot-bg, #fff);
    z-index: 1;
}

.mascot-help-panel__header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--mascot-text, #333);
}

.mascot-help-panel__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--mascot-muted, #999);
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
}

.mascot-help-panel__close:hover {
    background: var(--mascot-hover-bg, #f0f0f0);
    color: var(--mascot-text, #333);
}

/* Panel body */
.mascot-help-panel__body {
    padding: 20px;
    flex: 1;
    line-height: 1.7;
    font-size: 14px;
    color: var(--mascot-text, #333);
}

.mascot-help-panel__body p {
    margin: 0 0 12px;
}

.mascot-help-panel__body ul {
    padding-left: 20px;
    margin: 8px 0;
}

.mascot-help-panel__body li {
    margin: 4px 0;
}

.mascot-help-panel__body strong {
    color: var(--mascot-text-strong, #111);
}

.mascot-help-panel__body a {
    color: var(--mascot-primary, #4a90d9);
    text-decoration: none;
}

.mascot-help-panel__body a:hover {
    text-decoration: underline;
}

.mascot-help-panel__media {
    width: 100%;
    border-radius: 8px;
    margin-top: 16px;
    border: 1px solid var(--mascot-border, #e0e0e0);
}

/* Related links footer */
.mascot-help-panel__links {
    padding: 12px 20px;
    border-top: 1px solid var(--mascot-border, #e0e0e0);
}

.mascot-help-panel__links h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--mascot-muted, #999);
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.mascot-help-panel__links a {
    display: block;
    padding: 6px 0;
    color: var(--mascot-primary, #4a90d9);
    text-decoration: none;
    font-size: 13px;
}

.mascot-help-panel__links a:hover {
    text-decoration: underline;
}

/* Overlay dimmer */
.mascot-help-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
}

.mascot-help-overlay--visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .mascot-help-panel {
        transition: none;
    }
    .mascot-help-overlay {
        transition: none;
    }
}

@media (max-width: 480px) {
    .mascot-help-panel {
        width: 100vw;
        right: -100vw;
    }
}
