/* LensCue shared design tokens (single source of truth)
   - Keep Tailwind CDN for layout/spacing/typography utilities
   - Put reusable visual primitives here to avoid CSS duplication
*/

:root {
  --lc-bg: #020617;           /* slate-950 */
  --lc-text: #f8fafc;         /* slate-50 */
  --lc-muted: rgba(148, 163, 184, 1); /* slate-400 */

  --lc-indigo: #6366f1;       /* indigo-500 */
  --lc-cyan: #22d3ee;         /* cyan-400 */
  --lc-fuchsia: #d946ef;      /* fuchsia-500 */

  --lc-glass-bg: rgba(255, 255, 255, 0.03);
  --lc-glass-border: rgba(255, 255, 255, 0.08);
  --lc-ring-soft: rgba(255, 255, 255, 0.10);

  --lc-focus-outline: #020617;
  --lc-focus-ring: #ffffff;
  --lc-focus-ring-alt: var(--lc-indigo);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--lc-bg);
  color: var(--lc-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background blobs (global) */
.lc-bg-blobs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.lc-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.45;
}

.lc-blob--indigo {
  width: 800px;
  height: 800px;
  left: 50%;
  top: -20%;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--lc-indigo) 22%, transparent);
}

.lc-blob--fuchsia {
  width: 600px;
  height: 600px;
  right: -200px;
  top: 40%;
  background: color-mix(in srgb, var(--lc-fuchsia) 14%, transparent);
}

.lc-blob--cyan {
  width: 600px;
  height: 600px;
  left: -200px;
  bottom: -20%;
  background: color-mix(in srgb, var(--lc-cyan) 14%, transparent);
}

/* Reusable primitives */
.glass {
  background: var(--lc-glass-bg);
  border: 1px solid var(--lc-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ring-soft {
  box-shadow: 0 0 0 1px var(--lc-ring-soft) inset;
}

.shadow-glow {
  box-shadow: 0 0 80px rgba(14, 165, 233, 0.15);
}

/* Accessible focus state (must be present everywhere) */
.btn-focus:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--lc-focus-outline),
    0 0 0 4px var(--lc-focus-ring);
}

/* Alternate focus style for indigo contexts (e.g. Studio) */
.btn-focus-indigo:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--lc-focus-outline),
    0 0 0 4px var(--lc-focus-ring-alt);
}

/* Inputs */
.lc-input {
  width: 100%;
  border-radius: 0.75rem;
  background: rgba(0,0,0,0.30);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--lc-text);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset;
}

.lc-input::placeholder { color: rgba(148, 163, 184, 0.7); }

.lc-input:focus {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 0 0 4px rgba(99,102,241,0.30);
}

/* File input selector button (used by studio prototype) */
input[type="file"]::file-selector-button {
  border: 0;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  margin-right: 12px;
  transition: background 0.2s;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(255,255,255,0.12);
}

/* Safe areas helpers (needed for mobile-like UIs) */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 20px); }
.safe-top { padding-top: env(safe-area-inset-top, 0px); }

/* Utility */
.text-balance { text-wrap: balance; }

/* Analytics placeholder (do not hardcode trackers) */
/*
  Analytics placeholder:
  - Add scripts only on explicit request.
*/
