/* ============================================================
   Velocity-OS Design System — Glassmorphic Utility Classes
   Import after tokens.css.
   ============================================================ */

/* ── Glass Panels ────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.glass-heavy {
  background: rgba(255, 255, 255, 0.07);
  border: var(--glass-border-hi);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  box-shadow: var(--glass-shadow-lg);
  border-radius: var(--radius-xl);
}

.glass-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    background var(--duration-normal) var(--ease-standard),
    box-shadow var(--duration-normal) var(--ease-standard),
    transform var(--duration-normal) var(--ease-spring);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-shadow-lg);
  transform: translateY(-1px);
}

/* ── Accent Glow Variants ────────────────────────────────────── */
.glass-violet {
  box-shadow: var(--glass-shadow-violet);
  border-color: rgba(124, 58, 237, 0.30);
}

.glass-amber {
  box-shadow: var(--glass-shadow-amber);
  border-color: rgba(245, 158, 11, 0.30);
}

/* ── Shimmer Loading State ───────────────────────────────────── */
.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer-sweep 2s ease-in-out infinite;
}

@keyframes shimmer-sweep {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Pulse Animations ────────────────────────────────────────── */
.pulse-amber {
  animation: pulse-amber 2s ease-in-out infinite;
}
@keyframes pulse-amber {
  0%, 100% { box-shadow: 0 0 0px var(--color-amber-glow); }
  50%       { box-shadow: 0 0 16px var(--color-amber-glow); }
}

.pulse-violet {
  animation: pulse-violet 2s ease-in-out infinite;
}
@keyframes pulse-violet {
  0%, 100% { box-shadow: 0 0 0px var(--color-violet-glow); }
  50%       { box-shadow: 0 0 16px var(--color-violet-glow); }
}

.pulse-green {
  animation: pulse-green 3s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Intent Dot (live indicator) ─────────────────────────────── */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green-glow);
  animation: pulse-green 2s ease-in-out infinite;
}

/* ── Typography Utilities ────────────────────────────────────── */
.text-gradient-violet {
  background: linear-gradient(135deg, var(--color-violet-light), var(--color-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-amber {
  background: linear-gradient(135deg, var(--color-amber-light), var(--color-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Interactive Elements ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-violet);
  color: white;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--color-violet) 85%, white);
  box-shadow: var(--glass-shadow-violet);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.btn-ghost:hover {
  background: var(--glass-bg-hover);
  color: var(--color-text-primary);
  border-color: rgba(255, 255, 255, 0.20);
}

/* ── Badge / Chip ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.badge-high-intent {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-amber-light);
  border-color: rgba(245, 158, 11, 0.30);
}

.badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-green);
  border-color: rgba(16, 185, 129, 0.30);
}

.badge-ai {
  background: rgba(124, 58, 237, 0.15);
  color: var(--color-violet-light);
  border-color: rgba(124, 58, 237, 0.30);
}
