/*!
 * galaxy.css — UI primitives adapted from Uiverse Galaxy
 * https://github.com/uiverse-io/galaxy  ·  MIT License
 * ------------------------------------------------------------------
 * The Galaxy archive is a collection of 3,800+ community-made, single-file
 * HTML/CSS snippets (Buttons, Cards, Toggle-switches, loaders, Patterns...).
 * Each primitive below is a copy of one entry, retuned to this site's tokens.
 * Original authorship is credited per block, as the MIT license asks.
 * ------------------------------------------------------------------
 *  .gx-grid      Patterns/adamgiebl_curvy-earwig-79.html
 *  .gx-btn-glow  Buttons/abdulGitHb_tall-cougar-52.html  (kirzin)
 *  .gx-switch    Toggle-switches/Shubh0408_chilly-cobra-48.html
 *  .gx-spinner   loaders/barisdogansutcu_light-rat-32.html
 *  .gx-blobs     Cards/adamgiebl_blue-mole-92.html
 *  .gx-tip       Tooltips/EcheverriaJesus_odd-seahorse-52.html
 */

/* ── pattern · adamgiebl ───────────────────────────────────────── */
.gx-grid {
  --gx-line: rgba(255, 255, 255, 0.055);
  background-color: transparent;
  background-image:
    linear-gradient(0deg, transparent 24%, var(--gx-line) 25%, var(--gx-line) 26%, transparent 27%, transparent 74%, var(--gx-line) 75%, var(--gx-line) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, var(--gx-line) 25%, var(--gx-line) 26%, transparent 27%, transparent 74%, var(--gx-line) 75%, var(--gx-line) 76%, transparent 77%, transparent);
  background-size: 64px 64px;
  background-position: center top;
}

/* ── button · kirzin ───────────────────────────────────────────── */
.gx-btn-glow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font: 600 15px/1 "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.01em;
  color: #0a0d00;
  text-decoration: none;
  white-space: nowrap;
  background-image: linear-gradient(100deg, #d8ff5c 0%, #c2f52b 45%, #a8e800 100%);
  box-shadow: 0 0 0 1px rgba(204, 255, 51, 0.45) inset, 0 14px 40px -14px rgba(174, 240, 26, 0.75);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s ease;
}
.gx-btn-glow::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: 999px;
  background-image: linear-gradient(100deg, #e7ff8f, #b6f000, #8fd400);
  filter: blur(16px);
  opacity: 0.55;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.gx-btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(230, 255, 150, 0.7) inset, 0 22px 55px -12px rgba(190, 255, 40, 0.75);
}
.gx-btn-glow:hover::before {
  opacity: 0.95;
  filter: blur(22px);
}
.gx-btn-glow:active {
  transform: translateY(0) scale(0.985);
}

/* ── switch · Shubh0408 ────────────────────────────────────────── */
.gx-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 38px;
  height: 21px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gx-switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.gx-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #16191d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.gx-switch__knob {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #6e757c;
  transform: translateY(-50%);
  transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.gx-switch input:checked ~ .gx-switch__track {
  background: rgba(204, 255, 51, 0.16);
  border-color: rgba(204, 255, 51, 0.55);
  box-shadow: 0 0 16px -2px rgba(204, 255, 51, 0.35);
}
.gx-switch input:checked ~ .gx-switch__track .gx-switch__knob {
  left: calc(100% - 18px);
  background: #ccff33;
  box-shadow: 0 0 12px rgba(204, 255, 51, 0.85);
}
.gx-switch input:focus-visible ~ .gx-switch__track {
  outline: 2px solid rgba(204, 255, 51, 0.6);
  outline-offset: 3px;
}

/* ── spinner · barisdogansutcu ─────────────────────────────────── */
.gx-spinner {
  width: 14px;
  height: 14px;
  transform-origin: center;
  animation: gx-rotate 2s linear infinite;
  flex: 0 0 auto;
}
.gx-spinner circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: gx-dash 1.5s ease-in-out infinite;
}
@keyframes gx-rotate {
  100% { transform: rotate(360deg); }
}
@keyframes gx-dash {
  0%   { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 90, 200; stroke-dashoffset: -35px; }
  100% { stroke-dashoffset: -125px; }
}

/* ── card blobs · adamgiebl ────────────────────────────────────── */
.gx-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}
.gx-blobs i {
  position: absolute;
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 6em;
  filter: blur(60px);
  opacity: 0.5;
}
.gx-blobs i:nth-child(1) { left: -70px; top: -110px; background: #ff930f; opacity: 0.28; }
.gx-blobs i:nth-child(2) { right: -80px; top: -40px; background: #bf0fff; opacity: 0.3; }
.gx-blobs i:nth-child(3) { left: -40px; bottom: -120px; background: #ff1b6b; opacity: 0.2; }
.gx-blobs i:nth-child(4) { right: -60px; bottom: -130px; background: #0061ff; opacity: 0.26; }

/* ── tooltip · EcheverriaJesus ─────────────────────────────────── */
.gx-tip {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}
.gx-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  translate: -50% 6px;
  width: max-content;
  max-width: 240px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #121518;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px -18px #000;
  color: #cfd5da;
  font: 400 12px/1.5 "Inter", system-ui, sans-serif;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, translate 0.35s ease;
  z-index: 20;
}
.gx-tip:hover::after,
.gx-tip:focus-visible::after {
  opacity: 1;
  translate: -50% 0;
}
