/**
 * Translation Glossary Public Styles
 */

/* Glossary term styling */
.tg-term {
    border-bottom: 1px dashed #2271b1;
    cursor: help;
    position: relative;
}

/* Tooltip styling */
#tg-tooltip {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 12px 15px;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#tg-tooltip.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    #tg-tooltip {
        left: 50% !important;
        transform: translateX(-50%);
        max-width: calc(100% - 40px);
        bottom: auto !important;
        /* Ensure tooltip has a higher z-index and proper styling on mobile */
        z-index: 99999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        padding: 15px;
        border-radius: 6px;
    }
    
    .tg-term {
        border-bottom: 2px dotted #2271b1; /* Thicker underline for easier tapping */
        padding: 2px 0; /* Add a bit of padding for easier tapping */
    }
}

/* Glossary terms list styling */
.tg-glossary-terms-list {
    border-radius: 5px;
}

.tg-glossary-terms-list h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.tg-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tg-term-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tg-term-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tg-term-title {
    color: #2271b1;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.tg-term-variations {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    font-weight: normal;
}

.tg-term-content {
    margin-top: 10px;
}

