/* JARVIS Quantum Arc Reactor System Style */

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

:root {
  --bg-deep: #010309;
  --cyan-glow: #00F2FE;
  --blue-glow: #4FACFE;
  --emerald-glow: #00F5A0;
  --pink-glow: #FF0844;
  --purple-glow: #7F00FF;

  --font-display: 'Outfit', sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-display);
  background: radial-gradient(circle at 50% 50%, #030816 0%, #000000 80%);
  color: #F8FAFC;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer; /* Tap anywhere to toggle recording */
}

/* Full-Screen Canvas Background */
.jarvis-arc-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Floating UI Overlay Container */
.jarvis-system-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100vw;
  height: 100vh;
  padding: 36px 32px;
  pointer-events: none;
}

/* Left HUD Cyberpunk Sticky Notes Stack */
.jarvis-notes-stack {
  position: fixed;
  top: 36px;
  left: 32px;
  z-index: 100;
  display: flex;
  flex-direction: column-reverse; /* Newest notes at top */
  gap: 14px;
  width: 360px;
  max-height: calc(100vh - 160px);
  pointer-events: none;
}

.jarvis-note-card {
  pointer-events: auto;
  background: rgba(6, 12, 24, 0.88);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 242, 254, 0.18);
  transition: all 0.45s var(--ease-spring);
  animation: noteSlideIn 0.5s var(--ease-spring) forwards;
  position: relative;
  overflow: hidden;
}

.jarvis-note-card:hover {
  border-color: var(--cyan-glow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
}

.note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-dot {
  width: 6px;
  height: 6px;
  background-color: var(--cyan-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-glow);
}

.note-tag {
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan-glow);
}

.note-copy-btn {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan-glow);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.note-copy-btn:hover {
  background: var(--cyan-glow);
  color: #010309;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.6);
}

.note-copy-btn.copied {
  background: var(--emerald-glow);
  color: #022013;
  border-color: var(--emerald-glow);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.6);
}

.note-body {
  font-family: var(--font-code);
  font-size: 0.88rem;
  color: #F8FAFC;
  line-height: 1.5;
  outline: none;
  word-break: break-word;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.note-body:focus {
  background: rgba(0, 242, 254, 0.05);
  box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.3);
}

@keyframes noteSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-120%) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.jarvis-note-card.disintegrating {
  animation: noteDisintegrate 0.5s ease-out forwards;
}

@keyframes noteDisintegrate {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 200px;
    margin-bottom: 0px;
  }
  100% {
    opacity: 0;
    transform: translateX(-120%) scale(0.75);
    max-height: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-bottom: -14px;
    border-width: 0px;
  }
}


