/**
 * Styles pour les liens automatiques Glossaryze
 * 
 * @package Glossaryze
 * @author Adrien Cerdan / Getup Agency
 */

/* Liens automatiques */
.glossaryze-auto-link {
    color: #007cba;
    text-decoration: underline;
    border-bottom: 1px dotted #007cba;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.glossaryze-auto-link:hover {
    color: #005a87;
    text-decoration: none;
    border-bottom-style: solid;
}

/* Style selon les options */
.glossaryze-auto-links-enabled .glossaryze-auto-link.style-underline {
    text-decoration: underline;
    border-bottom: none;
}

.glossaryze-auto-links-enabled .glossaryze-auto-link.style-dotted {
    text-decoration: none;
    border-bottom: 2px dotted #007cba;
}

.glossaryze-auto-links-enabled .glossaryze-auto-link.style-highlight {
    background-color: #fff3cd;
    padding: 1px 3px;
    border-radius: 3px;
    text-decoration: none;
    border-bottom: none;
}

.glossaryze-auto-links-enabled .glossaryze-auto-link.style-none {
    text-decoration: none;
    border-bottom: none;
    color: inherit;
}

/* Tooltip */
.glossaryze-tooltip {
    position: absolute;
    z-index: 9999;
    background: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.glossaryze-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.glossaryze-tooltip .tooltip-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #fff;
}

.glossaryze-tooltip .tooltip-description {
    font-size: 13px;
    color: #e0e0e0;
}

.glossaryze-tooltip .tooltip-loader {
    text-align: center;
    font-style: italic;
    color: #ccc;
}

.glossaryze-tooltip .tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border: 6px solid transparent;
}

.glossaryze-tooltip .tooltip-arrow.top {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #333;
}

.glossaryze-tooltip .tooltip-arrow.bottom {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #333;
}

.glossaryze-tooltip .tooltip-arrow.left {
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: #333;
}

.glossaryze-tooltip .tooltip-arrow.right {
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: #333;
}

/* Animation d'apparition */
@keyframes glossaryze-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glossaryze-tooltip.show {
    animation: glossaryze-fade-in 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .glossaryze-tooltip {
        max-width: 250px;
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .glossaryze-tooltip {
        max-width: 200px;
        font-size: 12px;
        padding: 8px 10px;
    }
} 