/* ══ PhrasalViews Tooltips — Visual ══ */

/* Texto destacado */
.pv-tooltip-trigger {
    position: relative;
    cursor: help;
    color: #15803d;
    border-bottom: 1px dotted #4ade80;
    transition: all 0.18s ease;
    background: transparent;
}
.pv-tooltip-trigger:hover {
    color: #166534;
    background-color: rgba(74,222,128,0.12);
    border-radius: 3px;
    border-bottom-color: #16a34a;
}

/* Tooltip container */
.pv-tooltip {
    position: fixed;
    z-index: 99999;
    background: #0d1a0f;
    border: 1px solid rgba(74,222,128,0.30);
    border-radius: 8px;
    padding: 11px 15px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 300px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(74,222,128,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    font-family: 'DM Sans', -apple-system, sans-serif;
    pointer-events: none;
}
.pv-tooltip.pv-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Arrow — top (default) */
.pv-tooltip:not(.pv-bottom)::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(74,222,128,0.30);
}

/* Arrow — bottom */
.pv-tooltip.pv-bottom::before {
    content: '';
    position: absolute;
    bottom: -6px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(74,222,128,0.30);
}

/* Inner layout */
.pv-tooltip-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Phrasal verb name */
.pv-tip-verb {
    font-size: 12px;
    font-weight: 700;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: 'DM Mono', monospace;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(74,222,128,0.15);
}

/* Definition */
.pv-tip-def {
    font-size: 12.5px;
    color: rgba(255,255,255,0.82);
    line-height: 1.55;
}

/* Synonyms */
.pv-tip-syn {
    font-size: 11px;
    color: rgba(110,231,183,0.65);
    font-style: italic;
    line-height: 1.4;
}

/* Loading */
.pv-tooltip.pv-loading {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    font-style: italic;
}

/* Error */
.pv-tooltip.pv-error {
    color: #f87171;
    font-size: 12px;
    border-color: rgba(248,113,113,0.25);
}

/* Mobile */
@media (max-width: 768px) {
    .pv-tooltip {
        max-width: 260px;
        font-size: 12px;
    }
}
