/* =============================================================================
   FYSH — Action pill hover cards
   CR: fysh-pill-tips-2026-09-28
   Styled hover/focus popover cards for the listing action pills (edit bar) and
   the create form's action buttons. Content and live state are supplied by
   pill-tips.js; this file is presentation only. Site CSP is style-src 'self',
   so there are no inline styles.
============================================================================= */

.pilltip {
    position: fixed;
    z-index: 1000;
    max-width: 264px;
    min-width: 180px;
    padding: 11px 13px 12px;
    background: var(--surface-0, #FFFFFF);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 4px;
    box-shadow: 0 10px 26px rgba(15, 35, 64, 0.16);
    color: var(--slate, #2C3E50);
    font-family: var(--font-body, "Maven Pro", sans-serif);
    pointer-events: none;              /* the card never eats hover from the pill */
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}
.pilltip.is-shown { opacity: 1; transform: translateY(0); }

/* Arrow */
.pilltip__arrow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--surface-0, #FFFFFF);
    border: 1px solid var(--border, #E2E8F0);
    transform: rotate(45deg);
}
.pilltip--above .pilltip__arrow { bottom: -6px; border-top: 0; border-left: 0; }
.pilltip--below .pilltip__arrow { top: -6px;    border-bottom: 0; border-right: 0; }

/* Head: title + state chip */
.pilltip__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.pilltip__title {
    font-family: var(--font-display, "Nunito", sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy, #0F2340);
    line-height: 1.2;
}
.pilltip__chip {
    margin-left: auto;
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pilltip__chip--current   { background: var(--surface-2, #EEF2F8); color: var(--blue-dark, #17457E); }
.pilltip__chip--available { background: var(--success-bg, #E7F3EE); color: var(--success, #2E7D5B); }
.pilltip__chip--off       { background: var(--surface-2, #EEF2F8); color: var(--muted, #6B7A8D); }

.pilltip__role {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--slate, #2C3E50);
}
.pilltip__action {
    margin: 7px 0 0;
    padding-top: 7px;
    border-top: 1px solid var(--surface-2, #EEF2F8);
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--muted, #6B7A8D);
}
.pilltip__action--off { color: var(--danger, #C0392B); }

@media (prefers-reduced-motion: reduce) {
    .pilltip { transition: none; transform: none; }
    .pilltip.is-shown { transform: none; }
}
