/* Custom Tailwind Utilities */
@layer base {
  html, body {
    background: oklch(0.14 0.02 270);
    color: oklch(0.97 0.01 250);
  }
}

@layer utilities {
  .text-gradient-neon {
    background-image: linear-gradient(90deg, oklch(0.85 0.18 200), oklch(0.70 0.28 330));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .glass {
    background: oklch(0.18 0.025 270 / 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .glow-cyan {
    box-shadow: 0 0 30px oklch(0.85 0.18 200 / 0.35), 0 0 60px oklch(0.85 0.18 200 / 0.15);
  }

  .bg-grid {
    background-image: linear-gradient(oklch(0.28 0.03 270 / 0.6) 1px, transparent 1px),
      linear-gradient(90deg, oklch(0.28 0.03 270 / 0.6) 1px, transparent 1px);
    background-size: 36px 36px;
  }

  .scanlines {
    position: relative;
  }

  .scanlines::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 2px,
      oklch(0 0 0 / 0.18) 2px,
      oklch(0 0 0 / 0.18) 3px
    );
    mix-blend-mode: overlay;
  }

  .noise {
    position: relative;
  }

  .noise::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  }
}

/* GPT Cursor Tooltip */
.gpt-cursor-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  pointer-events: none;
  z-index: 1000000001;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.93);
  color: #fff;
  font: 600 12px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  white-space: nowrap;
  max-width: min(70vw, 520px);
  overflow: hidden;
  text-overflow: ellipsis;
}
