@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Backdrop */
  --bg-void: #0a0a0e;
  --bg-glow-a: #1b1c2b;
  --bg-glow-b: #10101a;

  /* Glass surfaces */
  --glass-1: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --glass-3: rgba(255, 255, 255, 0.115);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text-hi: #f3f3f7;
  --text-mid: #a8a8b8;
  --text-lo: #6d6d7c;

  /* Accents (category palette — cycled when a category is created) */
  --accent-1: #7c8aff;
  --accent-2: #34d399;
  --accent-3: #fbbf24;
  --accent-4: #f472b6;
  --accent-5: #38bdf8;
  --accent-6: #fb923c;
  --accent-7: #a78bfa;
  --accent-8: #4ade80;

  --danger: #ff6b6b;
  --danger-bg: rgba(255, 107, 107, 0.12);

  /* Radii */
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  /* Type */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-hi);
  background: radial-gradient(circle at 15% -10%, var(--bg-glow-a), transparent 55%),
              radial-gradient(circle at 100% 10%, #201a2e, transparent 45%),
              var(--bg-void);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient drifting blobs — pure atmosphere, disabled for reduced-motion */
.ambient-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.ambient-blob.a { width: 420px; height: 420px; background: var(--accent-1); top: -120px; left: -100px; animation: drift-a 26s ease-in-out infinite; }
.ambient-blob.b { width: 380px; height: 380px; background: var(--accent-5); bottom: -140px; right: -80px; animation: drift-b 32s ease-in-out infinite; }

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -40px); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-blob { animation: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

button, input {
  font-family: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

.glass {
  background: var(--glass-1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.text-muted { color: var(--text-mid); }

.empty-state {
  color: var(--text-lo);
  font-size: 0.95rem;
  text-align: center;
  padding: 3rem 1rem;
  line-height: 1.6;
}
.empty-state strong { color: var(--text-mid); display: block; font-size: 1.05rem; margin-bottom: 0.35rem; }
