/* unity_help.css — styles for the floating help button and slide-in panel */

/* ── Floating button ──────────────────────────────────────────────────────── */

.uh-btn {
    position: fixed;
    bottom: 90px;
    right: 28px;
    z-index: 9998;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #2490EF;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(36, 144, 239, 0.45);
    transition: background-color 0.18s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uh-btn:hover {
    background-color: #1a78cc;
    transform: scale(1.07);
}

.uh-btn:active {
    transform: scale(0.97);
}

/* ── Overlay ──────────────────────────────────────────────────────────────── */

.uh-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.uh-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Slide-in panel ───────────────────────────────────────────────────────── */

.uh-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 320px;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.uh-panel--open {
    transform: translateX(0);
}

/* ── Panel header ─────────────────────────────────────────────────────────── */

.uh-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.uh-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
}

.uh-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #718096;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.uh-close-btn:hover {
    color: #e53e3e;
    background-color: #fff5f5;
}

/* ── Context bar ──────────────────────────────────────────────────────────── */

.uh-context-bar {
    padding: 8px 18px 10px;
    border-bottom: 1px solid #edf2f7;
    flex-shrink: 0;
}

.uh-context-label {
    font-size: 12px;
    font-weight: 500;
    color: #2490EF;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Articles scroll area ─────────────────────────────────────────────────── */

.uh-articles {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Article card ─────────────────────────────────────────────────────────── */

.uh-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.16s ease;
}

.uh-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.uh-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
}

.uh-card-desc {
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
}

.uh-watch-link {
    font-size: 12px;
    font-weight: 600;
    color: #2490EF;
    text-decoration: none;
    margin-top: 2px;
    display: inline-block;
}

.uh-watch-link:hover {
    text-decoration: underline;
}

/* ── State messages ───────────────────────────────────────────────────────── */

.uh-loading,
.uh-empty {
    font-size: 13px;
    color: #a0aec0;
    text-align: center;
    padding: 32px 12px;
    margin: 0;
}
