/* ============================================================
   COMPONENTS — Shared UI elements — Neural Interface
   ============================================================ */

/* --- Skill Tag (clickable, color-coded) --- */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface-container-high);
  font-family: var(--font-headline);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.3s ease, color 0.3s;
}
.skill-tag:hover {
  color: var(--primary-container);
}
.skill-tag.active {
  background: var(--primary-dim);
  color: var(--primary-container);
}

/* --- Skill Tag Legend (tooltip on hover) --- */
.skill-tag[data-legend]::after {
  content: attr(data-legend);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-container-highest);
  color: var(--on-surface-variant);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: normal;
  text-transform: none;
  padding: 6px 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.skill-tag[data-legend]:hover::after {
  opacity: 1;
}
.skill-tag[data-legend] {
  position: relative;
}

/* --- Custom Cursor (preserved from existing) --- */
/* Hide default cursor on pointer (mouse) devices only */
@media (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

#cursorDot {
  width: 6px; height: 6px;
  background: var(--cursor-color, #00e5ff);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, opacity 0.2s, background 0.3s;
  opacity: 0; /* hidden by default, shown on interactive */
}

#cursorRing {
  width: 32px; height: 32px;
  border: 1px solid var(--cursor-color, rgba(0, 229, 255, 0.4));
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: border-color 0.3s, transform 0.2s ease;
}

/* Show dot on interactive elements */
a:hover ~ #cursorDot,
button:hover ~ #cursorDot,
.skill-tag:hover ~ #cursorDot,
.project-card-3d:hover ~ #cursorDot,
.neural-item:hover ~ #cursorDot {
  opacity: 1;
}

/* --- Scanline overlay (full page) --- */
#scanlineOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.1;
  pointer-events: none;
}

/* --- FX Canvas --- */
#fxCanvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
}
