/* ═══════════════════════════════════════════════════════════════════════════
   CHECK TIPS — Tooltip system for check results
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tip icon button (?) */
.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  color: var(--muted2);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: all .2s;
  vertical-align: middle;
  margin-left: 6px;
  flex-shrink: 0;
  line-height: 1;
  background: transparent;
  padding: 0;
  position: relative;
}
.tip-icon:hover,
.tip-icon:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(91, 138, 248, .08);
  outline: none;
}
.tip-icon[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(91, 138, 248, .12);
}

/* Popover */
.tip-popover {
  position: absolute;
  z-index: 1000;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm, 8px);
  padding: 14px 16px;
  max-width: 360px;
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  animation: tipFadeIn .15s ease;
  pointer-events: auto;
}

@keyframes tipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tip-popover__title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}

.tip-popover__desc {
  color: var(--muted2);
  margin-bottom: 0;
}

.tip-popover__fix {
  margin-top: 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--red, #f87171);
  background: rgba(248, 113, 113, .06);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  color: var(--muted2);
}

.tip-popover__fix-label {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--red, #f87171);
  margin-bottom: 4px;
}

.tip-popover__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s;
}
.tip-popover__link:hover {
  opacity: .8;
  text-decoration: underline;
}

/* Fix for health check items — ensure flex layout works */
.health-check-item .tip-icon {
  margin-left: 4px;
}

/* Fix for header rows */
.header-row .tip-icon {
  margin-left: 4px;
}

/* DNS type header tips */
.dns-type-header .tip-icon {
  margin-left: 6px;
}

/* SSL grid tips */
.ssl-item .tip-icon {
  margin-left: 4px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .tip-popover {
    max-width: calc(100vw - 32px);
    min-width: 200px;
    left: 8px !important;
    right: 8px !important;
  }
}
