/*
 * ux-clarity.css — UX Clarity + Strategy Selection Cleanup
 * Batch 61: Mode tooltip, comps tip text, sidebar score badge.
 * Zero hardcoded colors — CSS vars only.
 */

/* ============================================================
   FIX 2 — MODE TOGGLE TOOLTIP
   Floats below the mode toggle in .pi-header__right
   ============================================================ */
.lf-mode-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    padding: 8px 12px;
    background: var(--surface-dark, #ffffff);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: var(--weight-medium);
    white-space: nowrap;
    pointer-events: none;
    animation: fadeIn 0.2s ease-out both;
}

/* Arrow pointing up */
.lf-mode-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: var(--surface-dark, #ffffff);
    border-left: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    transform: rotate(45deg);
}

/* Wrapper needs position:relative for the tooltip to anchor */
.lf-mode-toggle {
    position: relative;
}

/* ============================================================
   FIX 4 — COMPS TIP TEXT
   Helper text below the Add Comp button
   ============================================================ */
.lf-comps-tip {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 8px;
    padding: 0 4px;
    line-height: 1.4;
}

/* ============================================================
   FIX 5 — SIDEBAR SCORE BADGE
   Small score pill on the right side of property items
   ============================================================ */
.lf-sidebar-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--surface-card, rgba(8,28,46,0.72));
    border: 1px solid var(--glass-border);
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.lf-sidebar-score__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lf-sidebar-score__dot--green  { background: var(--color-positive); }
.lf-sidebar-score__dot--amber  { background: var(--color-warning, var(--gold-400)); }
.lf-sidebar-score__dot--red    { background: var(--color-negative); }

/* ============================================================
   FIX 6 — CTA PULSE CLASS
   Used by ux-clarity.js to add gold pulse when progress < 100%
   Reuses lfGoldPulse from css/animations.css
   ============================================================ */
.lf-pulse-cta {
    animation: lfGoldPulse 2s ease-in-out infinite !important;
}
