@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --radius-3xl: calc(var(--radius) + 12px);
  --radius-4xl: calc(var(--radius) + 16px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

:root {
  --radius: 0.5rem;
  --background: oklch(0.14 0.005 286);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.19 0.003 286);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.19 0.003 286);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.74 0.14 68);
  --primary-foreground: oklch(0.16 0.005 68);
  --secondary: oklch(0.25 0.003 286);
  --secondary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.22 0.003 286);
  --muted-foreground: oklch(0.65 0.01 286);
  --accent: oklch(0.25 0.003 286);
  --accent-foreground: oklch(0.98 0 0);
  --destructive: oklch(0.65 0.2 22);
  --destructive-foreground: oklch(0.98 0 0);
  --border: oklch(0.28 0.004 286);
  --input: oklch(0.25 0.003 286);
  --ring: oklch(0.74 0.14 68);
}

@keyframes shimmer-sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.proving-shimmer {
  position: relative;
  overflow: hidden;
}
.proving-shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    oklch(0.74 0.14 68 / 0.4) 30%,
    oklch(0.74 0.14 68 / 0.7) 50%,
    oklch(0.74 0.14 68 / 0.4) 70%,
    transparent 100%);
  animation: shimmer-sweep 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes dot-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 oklch(0.74 0.14 68 / 0); }
  50%      { opacity: 0.7; box-shadow: 0 0 4px 1px oklch(0.74 0.14 68 / 0.3); }
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
