/* ===== GLOSSÁRIO  by VDESIGN.com.br ===== */

.glossario-termo {
    position: relative;
    cursor: help;
    display: inline-block;
}

.glossario-icone {
    display: inline-flex;
    margin-left: 4px;
    vertical-align: super;
    color: #0d6efd;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.glossario-termo:hover .glossario-icone {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
}

/* Tooltip */
.glossario-termo::after {
    content: attr(data-desc);
    position: absolute;
    bottom: 130%;
    left: 0;
    background: #1e1e1e;
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    width: 240px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Seta do balão */
.glossario-termo::before {
    content: "";
    position: absolute;
    bottom: 120%;
    left: 12px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e1e1e transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

.glossario-termo:hover::after,
.glossario-termo:hover::before {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile (tooltip no toque) */
@media (max-width: 768px) {
    .glossario-termo::after {
        width: 200px;
        font-size: 12px;
    }
}

