/* Tooltip styles */
.tooltip-trigger {
  color: #0066cc;
  border-bottom: 1px dashed #0066cc;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: background-color 0.2s;
  padding: 0 2px;
}

.tooltip-trigger:hover {
  background-color: rgba(0, 102, 204, 0.08);
}

.tooltip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.tooltip-overlay.active {
  display: flex;
}

.tooltip-content {
  background: white;
  border-radius: 12px;
  padding: 24px 28px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  cursor: default;
  animation: tooltipFadeIn 0.25s ease;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tooltip-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: background-color 0.2s, color 0.2s;
}

.tooltip-close:hover {
  background-color: #f0f0f0;
  color: #222;
}

.tooltip-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a2e;
  margin: 0 0 8px 0;
  padding-right: 32px;
}

.tooltip-definition {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.tooltip-definition strong {
  color: #1a1a2e;
}

@media (max-width: 600px) {
  .tooltip-content {
    padding: 20px;
  }
  .tooltip-title {
    font-size: 1.1rem;
  }
  .tooltip-definition {
    font-size: 0.95rem;
  }
}