@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&family=Heebo:wght@300;400;500;600;700;800&display=swap');

/* ── Entry Pulse · Dark Neon ── */

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: #1e1e2e;
  --border-light: #16161f;
  --text: #d8d8e4;
  --text-light: #9898b0;
  --text-lighter: #606078;
  --text-bright: #f0f0fa;
  --primary: #00f5d4;
  --primary-hover: #33f7dd;
  --primary-pale: rgba(0, 245, 212, 0.08);
  --success: #4ade80;
  --success-bg: rgba(74, 222, 128, 0.08);
  --success-border: rgba(74, 222, 128, 0.18);
  --error: #ff5a7e;
  --error-bg: rgba(255, 90, 126, 0.08);
  --error-border: rgba(255, 90, 126, 0.18);
  --font-body: 'Outfit', 'Heebo', sans-serif;
  --font-heading: 'Outfit', 'Heebo', sans-serif;
  --font-mono: 'Space Mono', 'Heebo', monospace;
  --radius: 8px;
  --radius-lg: 14px;
}

[data-theme="light"] {
  --bg: #f8f8fc;
  --surface: #f0f0f6;
  --border: #dddde8;
  --border-light: #eaeaf2;
  --text: #404058;
  --text-light: #6a6a82;
  --text-lighter: #9898ae;
  --text-bright: #1a1a2e;
  --primary: #00c8a8;
  --primary-hover: #00a890;
  --primary-pale: rgba(0, 200, 168, 0.08);
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Film grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ── Animated gradient blobs ── */
body::after {
  content: '';
  position: fixed;
  top: -40%;
  left: -20%;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(255, 45, 135, 0.05) 0%, transparent 55%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-drift 20s ease-in-out infinite alternate;
}

body > .jb-page::before {
  content: '';
  position: fixed;
  bottom: -30%;
  right: -15%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(255, 45, 135, 0.06) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 60%, rgba(0, 245, 212, 0.04) 0%, transparent 50%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, -4%) scale(1.08); }
  100% { transform: translate(-2%, 3%) scale(0.95); }
}

/* Remove decorative elements in light mode */
[data-theme="light"] body::before,
[data-theme="light"] body::after,
[data-theme="light"] body > .jb-page::before {
  display: none;
}

/* ── Page sits above blobs ── */
.jb-page {
  position: relative;
  z-index: 1;
}

/* ── Labels / detail labels use mono font ── */
.jb-detail-lbl,
.jb-section-label {
  font-family: var(--font-mono);
}

/* ── Neon apply button ── */
.jb-apply-btn {
  background: linear-gradient(135deg, #ff2d87, #00f5d4);
  color: #fff;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.jb-apply-btn:hover {
  background: linear-gradient(135deg, #ff4999, #33f7dd);
  box-shadow: 0 4px 20px rgba(255, 45, 135, 0.3), 0 4px 20px rgba(0, 245, 212, 0.2);
}

/* ── Tags: alternating neon pink / cyan ── */
.jb-tag {
  border: 1px solid rgba(0, 245, 212, 0.2);
  background: rgba(0, 245, 212, 0.06);
  color: var(--primary);
}
.jb-tag:nth-child(even) {
  border-color: rgba(255, 45, 135, 0.2);
  background: rgba(255, 45, 135, 0.06);
  color: #ff2d87;
}

/* ── Hebrew text uses Heebo ── */
[dir="rtl"] {
  font-family: 'Heebo', var(--font-body);
}
