/* ===== GLOSSAIRE TOOLTIP ===== */
.term {
    color: #8b5cf6;
    font-weight: 600;
    border-bottom: 2px dotted #c4b5fd;
    cursor: help;
    transition: all 0.2s;
}
.term:hover, .term:active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 4px;
    padding: 0 4px;
    margin: 0 -4px;
}

.glossary-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 300px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.2);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.glossary-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.glossary-tooltip-title {
    font-weight: 800;
    color: #7c3aed;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.glossary-tooltip-title::before {
    content: '📚';
    font-size: 18px;
}
.glossary-tooltip-content {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}
.glossary-tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.2s;
}
.glossary-tooltip-close:hover {
    background: #e2e8f0;
    color: #64748b;
}
