/* Modern Thot Tooltip System (CSS-only with data-tooltip) */

.thot-tooltip {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
}

.thot-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: pre-line;
    width: max-content;
    max-width: 300px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10000;
    word-wrap: break-word;
    text-align: center;
}

.thot-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 5px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10001;
}

.thot-tooltip:hover::after,
.thot-tooltip:hover::before {
    opacity: 1;
}

/* Variant: Bottom Tooltip */
.thot-tooltip.tooltip-bottom::after {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 8px;
}

.thot-tooltip.tooltip-bottom::before {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 2px;
    border-top-color: transparent;
    border-bottom-color: #1f2937;
}

/* Variant: Right Tooltip */
.thot-tooltip.tooltip-right::after {
    bottom: auto;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-bottom: 0;
    margin-left: 12px;
}

.thot-tooltip.tooltip-right::before {
    bottom: auto;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-bottom: 0;
    margin-left: 2px;
    border: 5px solid transparent;
    border-right-color: #1f2937;
}
