/* Tooltip System Styling */

/* Tooltip trigger styling */
[data-term] {
  cursor: pointer;
  position: relative;
  border-bottom: 2px dotted currentColor;
  border-bottom-style: dotted;
  transition: border-color 0.2s;
}

[data-term]:hover {
  border-bottom-style: solid;
}

/* Add info icon hint */
[data-term]::after {
  content: 'ⓘ';
  font-size: 0.7em;
  margin-left: 2px;
  opacity: 0.6;
  vertical-align: super;
}

/* Tooltip container */
.glossary-tooltip {
  position: absolute;
  background: #1a1a1a;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 450px;
  z-index: 10000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.glossary-tooltip.show {
  opacity: 1;
}

.glossary-tooltip strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #60a5fa;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.glossary-tooltip p {
  margin: 0;
  font-weight: 400;
  color: #e5e7eb;
}

/* Arrow pointing to element */
.glossary-tooltip::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20px;
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  transform: rotate(45deg);
}

/* Tooltip positioned above element */
.glossary-tooltip.top::before {
  bottom: -4px;
}

/* Tooltip positioned below element */
.glossary-tooltip.bottom::before {
  bottom: auto;
  top: -4px;
}
