/* Glass card surface: two-layer gradient body + inset "lit edge" instead of a real border. */

:root {
  --tp-cyan: #64d2ff;
  --tp-pink: #ff375f;
  --tp-glass-bg: linear-gradient(150deg, rgba(28, 28, 30, 0.92) 30%, rgba(255, 255, 255, 0.06)),
    linear-gradient(#0b0d16, #0b0d16);
  --tp-glass-edge: inset 0 1px rgba(255, 255, 255, 0.24), inset 1px 0 rgba(255, 255, 255, 0.16),
    inset -1px 0 rgba(255, 255, 255, 0.07), inset 0 -1px rgba(255, 255, 255, 0.07);
  --tp-glass-lift: 0 24px 60px -12px rgba(0, 0, 0, 0.6);
}

.tp-glass {
  --acc: var(--tp-blue);
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: var(--tp-radius-lg);
  background: var(--tp-glass-bg);
  box-shadow: var(--tp-glass-edge);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transition: transform 0.4s var(--tp-ease), box-shadow 0.4s var(--tp-ease);
}

/* Cursor spotlight: hub.js writes --mx/--my on pointermove. */
.tp-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 0%) var(--my, 0%),
    color-mix(in srgb, var(--acc) 16%, transparent), transparent 60%);
}
.tp-glass:hover {
  transform: translateY(-4px);
  box-shadow: var(--tp-glass-edge), inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent), var(--tp-glass-lift);
}
.tp-glass:hover::before { opacity: 1; }

.tp-glass.is-current {
  border-color: transparent;
  box-shadow: var(--tp-glass-edge), inset 0 0 0 1px rgba(10, 132, 255, 0.55),
    0 0 0 1px rgba(10, 132, 255, 0.2), 0 24px 60px -18px rgba(10, 132, 255, 0.55);
}

.tp-acc-blue { --acc: var(--tp-blue); }
.tp-acc-cyan { --acc: var(--tp-cyan); }
.tp-acc-green { --acc: var(--tp-green); }
.tp-acc-orange { --acc: var(--tp-orange); }
.tp-acc-purple { --acc: var(--tp-purple); }
.tp-acc-pink { --acc: var(--tp-pink); }

.tp-glass-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--acc);
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 24%, transparent),
    color-mix(in srgb, var(--acc) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--acc) 32%, transparent);
}
.tp-glass-icon svg { width: 22px; height: 22px; }
.tp-glass .tp-platform-icon {
  color: var(--acc);
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 24%, transparent),
    color-mix(in srgb, var(--acc) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--acc) 32%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .tp-glass { transition: none; }
  .tp-glass:hover { transform: none; }
}
