/* animations.css — @keyframes, sparkle/confetti/particle effects, time-of-day theming, micro-interactions */

.screen {
  transition: opacity 0.3s var(--ease-gentle);
}

.ob-step {
  animation: breatheIn 0.3s var(--ease-out);
}

.checkin-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: -20px;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
  animation: breatheIn 0.8s var(--ease-out) 0.1s both;
}

.checkin-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: breatheIn 0.6s var(--ease-out) both;
}

.view.active {
  display: block;
  animation: viewFadeIn 0.2s ease both;
}

.today-greeting {
  margin-bottom: 0;
  animation: fadeSlideDown 0.5s ease both;
}

.plan-pool-col {
  width: 200px;
  flex-shrink: 0;
  background: rgba(242,236,227,0.5);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  backdrop-filter: blur(4px);
  transition: all 0.3s var(--ease);
}

.venn-circle {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  opacity: 0.5;
  transition: all 0.5s var(--ease);
  filter: blur(1px);
  mix-blend-mode: multiply;
  animation: none;
}

.venn-circle.mental {
  background: radial-gradient(circle,var(--green-light) 30%,var(--green-pale) 100%);
  top: 2px;
  left: 26px;
  animation: vennBreathe 4s ease-in-out infinite;
}

.venn-circle.physical {
  background: radial-gradient(circle,var(--purple-light) 30%,var(--purple-pale) 100%);
  bottom: 4px;
  left: 4px;
  animation-delay: -2s;
  animation: vennBreathe 4s ease-in-out infinite 1.3s;
}

.venn-circle.spiritual {
  background: radial-gradient(circle,var(--gold-light) 30%,var(--gold-pale) 100%);
  bottom: 4px;
  right: 4px;
  animation-delay: -4s;
  animation: vennBreathe 4s ease-in-out infinite 2.6s;
}

.task-card.completing {
  animation: completeSlide 0.35s ease-out;
  pointer-events: none;
}

.done-section-toggle .done-toggle-icon {
  transition: transform 0.3s var(--ease);
}

.task-check.pop {
  animation: checkPop 0.5s var(--ease-bounce);
}

.nav-item.active .nav-icon {
  transform: scale(1.08);
  animation: navIconGlow 3s ease-in-out infinite;
}

.nav-add:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 6px 20px rgba(74,103,65,0.26),0 2px 6px rgba(74,103,65,0.12);
  animation: none;
}

.today-tasks.animate-in .task-section:nth-child(1) {
  animation: floatUp 0.35s var(--ease-out) 0s both;
}

.today-tasks.animate-in .task-section:nth-child(2) {
  animation: floatUp 0.35s var(--ease-out) 0.06s both;
}

.today-tasks.animate-in .task-section:nth-child(3) {
  animation: floatUp 0.35s var(--ease-out) 0.12s both;
}

.today-tasks.animate-in .task-section:nth-child(4) {
  animation: floatUp 0.35s var(--ease-out) 0.18s both;
}

.today-tasks.animate-in .done-section {
  animation: floatUp 0.35s var(--ease-out) 0.24s both;
}

.today-tasks.animate-in .all-done-state {
  animation: floatUp 0.5s var(--ease-out) 0s both;
}

.app[data-time="morning"] {
  background-image: radial-gradient(ellipse at 20% 20%,rgba(247,236,211,0.45) 0%,transparent 55%),radial-gradient(ellipse at 80% 40%,rgba(221,233,214,0.25) 0%,transparent 45%),radial-gradient(ellipse at 50% 90%,rgba(242,204,208,0.1) 0%,transparent 40%);
  --bg:  #faf7f0;
  --bg-warm:  #fdf9f1;
}

.app[data-time="afternoon"] {
  background-image: radial-gradient(ellipse at 50% 30%,rgba(221,233,214,0.4) 0%,transparent 55%),radial-gradient(ellipse at 15% 70%,rgba(247,236,211,0.2) 0%,transparent 45%),radial-gradient(ellipse at 85% 60%,rgba(196,168,210,0.08) 0%,transparent 35%);
  --bg:  #f5f8f2;
  --bg-warm:  #f8faf5;
}

.app[data-time="evening"] {
  background-image: radial-gradient(ellipse at 50% 20%,rgba(238,227,244,0.4) 0%,transparent 55%),radial-gradient(ellipse at 20% 70%,rgba(196,168,210,0.2) 0%,transparent 45%),radial-gradient(ellipse at 80% 80%,rgba(247,236,211,0.15) 0%,transparent 40%);
  --bg:  #f5f2f7;
  --bg-warm:  #f8f5fa;
  --bg-card:  #fdfbff;
}

.app[data-time="night"] {
  --bg:  #f0ede8;
  background-image: radial-gradient(ellipse at 50% 50%,rgba(196,168,210,0.15) 0%,transparent 50%),radial-gradient(ellipse at 30% 80%,rgba(247,236,211,0.2) 0%,transparent 45%),radial-gradient(ellipse at 70% 20%,rgba(221,233,214,0.1) 0%,transparent 35%);
  --bg-warm:  #f3f0eb;
  --bg-card:  #faf8f4;
  --text:  #2c3527;
}

.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(196,162,101,0.5);
  box-shadow: 0 0 8px rgba(196,162,101,0.3),0 0 16px rgba(196,162,101,0.15);
  animation: fireflyDrift ease-in-out infinite;
  opacity: 0;
}

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  animation: confettiFall 3s ease-in forwards;
  opacity: 0.9;
}

.sparkle-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(196,162,101,0.5);
  animation: sparklePop 0.6s ease-out forwards;
}

.smart-break-banner.dismissing {
  animation: slideBreakOut 0.4s var(--ease) forwards;
}

[data-time="morning"] .today-header {
  position: relative;
}

[data-time="morning"] .view.active {
  background-image: radial-gradient(ellipse at 30% 10%,rgba(247,236,211,0.4) 0%,transparent 60%),radial-gradient(ellipse at 70% 5%,rgba(255,230,200,0.2) 0%,transparent 50%);
}

[data-time="afternoon"] .view.active {
  background-image: radial-gradient(ellipse at 50% 5%,rgba(221,233,214,0.3) 0%,transparent 55%),radial-gradient(ellipse at 80% 10%,rgba(196,162,101,0.08) 0%,transparent 40%);
}

[data-time="evening"] .view.active {
  background-image: radial-gradient(ellipse at 40% 10%,rgba(238,227,244,0.3) 0%,transparent 55%),radial-gradient(ellipse at 70% 5%,rgba(212,134,142,0.1) 0%,transparent 45%);
}

[data-time="night"] .view.active {
  background-image: radial-gradient(ellipse at 50% 5%,rgba(200,210,230,0.15) 0%,transparent 55%),radial-gradient(ellipse at 30% 10%,rgba(238,227,244,0.1) 0%,transparent 45%);
}

.progress-circle-wrap.breathing {
  animation: vennBreatheWrap 6s ease-in-out infinite;
}

.today-tasks.animate-in .task-card {
  animation: floatUp 0.35s var(--ease-out) both;
}

.today-tasks.animate-in .task-card:nth-child(1) {
  animation-delay: 0s;
}

.today-tasks.animate-in .task-card:nth-child(2) {
  animation-delay: 0.05s;
}

.today-tasks.animate-in .task-card:nth-child(3) {
  animation-delay: 0.1s;
}

.today-tasks.animate-in .task-card:nth-child(4) {
  animation-delay: 0.15s;
}

.today-tasks.animate-in .task-card:nth-child(5) {
  animation-delay: 0.2s;
}

.today-tasks.animate-in .task-card:nth-child(6) {
  animation-delay: 0.25s;
}

.today-tasks.animate-in .task-card:nth-child(7) {
  animation-delay: 0.3s;
}

.today-tasks.animate-in .task-card:nth-child(8) {
  animation-delay: 0.35s;
}

.today-tasks.animate-in .task-card:nth-child(9) {
  animation-delay: 0.4s;
}

.today-tasks.animate-in .task-card:nth-child(10) {
  animation-delay: 0.45s;
}

.venn-progress.balanced-shimmer .venn-circle.mental {
  animation-delay: 0s;
}

.venn-progress.balanced-shimmer .venn-circle.physical {
  animation-delay: 1s;
}

.venn-progress.balanced-shimmer .venn-circle.spiritual {
  animation-delay: 2s;
}

.magic-float-text {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-warm);
  text-shadow: 0 2px 12px rgba(255,255,255,0.7),0 0 20px rgba(196,162,101,0.2);
  transform: translate(-50%,-50%);
  animation: floatTextUp 2s ease-out forwards;
  white-space: nowrap;
}

.magic-motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.magic-mote {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: moteDrift ease-in-out infinite;
}

.magic-tap-ripple {
  position: fixed;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(196,162,101,0.12) 0%,rgba(164,196,149,0.06) 40%,transparent 70%);
  transform: translate(-50%,-50%);
  animation: tapRippleExpand 0.7s ease-out forwards;
  pointer-events: none;
  z-index: 9998;
}

.pillar-chip:nth-child(2)::after {
  animation-delay: 2s;
}

.pillar-chip:nth-child(3)::after {
  animation-delay: 4s;
}

.checkin-section:nth-child(1) {
  animation-delay: 0.15s;
}

.checkin-section:nth-child(2) {
  animation-delay: 0.25s;
}

.checkin-section:nth-child(3) {
  animation-delay: 0.35s;
}

.more-item .more-icon {
  transition: all 0.25s var(--ease);
}

@keyframes ambientBreathe{0%,100%{opacity:0.3;transform:scale(1)}50%{opacity:0.6;transform:scale(1.03)}}

@keyframes stepReveal{from{opacity:0;transform:translateY(12px) scale(0.98)}to{opacity:1;transform:translateY(0) scale(1)}}

@keyframes viewFadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

@keyframes slideDown{from{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}

@keyframes taskCompleteRadiance{0%{box-shadow:var(--shadow-card)}30%{box-shadow:0 0 0 4px rgba(196,162,101,0.18),0 2px 16px rgba(196,162,101,0.15)}70%{box-shadow:0 0 0 2px rgba(123,158,107,0.12),0 2px 12px rgba(123,158,107,0.08)}100%{box-shadow:var(--shadow-card)}}

@keyframes checkPop{0%{transform:scale(1)}40%{transform:scale(1.35)}70%{transform:scale(0.9)}100%{transform:scale(1)}}

@keyframes completeSlide{0%{transform:scale(1);opacity:1}50%{transform:scale(0.97);opacity:0.8}100%{transform:scale(1);opacity:1}}

@keyframes allDoneGlow{0%,100%{opacity:0.3;transform:scale(0.95)}50%{opacity:1;transform:scale(1.05)}}

@keyframes celebrateDance{0%,100%{transform:translateY(0) rotate(0deg) scale(1);filter:drop-shadow(0 4px 12px rgba(196,162,101,0.12))}25%{transform:translateY(-10px) rotate(3deg) scale(1.03)}50%{transform:translateY(-18px) rotate(0deg) scale(1.05);filter:drop-shadow(0 8px 20px rgba(196,162,101,0.25))}75%{transform:translateY(-10px) rotate(-3deg) scale(1.03)}}

@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}

@keyframes breatheIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

@keyframes floatUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

@keyframes floatGentle{0%,100%{transform:translateY(0) rotate(0deg)}25%{transform:translateY(-3px) rotate(1deg)}50%{transform:translateY(-6px) rotate(0deg)}75%{transform:translateY(-3px) rotate(-1deg)}}

@keyframes modalSlideUp{from{transform:translateY(100%);opacity:0.5}to{transform:translateY(0);opacity:1}}

@keyframes toastIn{from{opacity:0;transform:translateX(-50%) translateY(20px) scale(0.95)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}

@keyframes gentlePulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.03);opacity:0.9}}

@keyframes shimmer{0%{background-position:-200%0}100%{background-position:200%0}}

@keyframes updateSlideDown{from{transform:translateY(-100%)}to{transform:translateY(0)}}

@keyframes gentleGlow{0%,100%{box-shadow:0 6px 24px rgba(74,103,65,0.28),0 2px 8px rgba(74,103,65,0.15),0 0 0 5px rgba(122,158,109,0.08)}50%{box-shadow:0 6px 24px rgba(74,103,65,0.28),0 2px 8px rgba(74,103,65,0.15),0 0 0 8px rgba(122,158,109,0.04)}}

@keyframes warmShimmer{0%{background-position:-200%0}100%{background-position:200%0}}

@keyframes doneShimmer{0%,100%{opacity:0.5}50%{opacity:1}}

@keyframes fireflyDrift{0%{opacity:0;transform:translate(0,0) scale(0.6)}20%{opacity:0.6}50%{opacity:0.4;transform:translate(30px,-40px) scale(1)}80%{opacity:0.5}100%{opacity:0;transform:translate(-20px,30px) scale(0.6)}}

@keyframes pulse-ring{0%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)}70%{box-shadow:0 0 0 20px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}

@keyframes voicePulse{0%,100%{box-shadow:0 0 0 4px rgba(196,80,80,0.1)}50%{box-shadow:0 0 0 12px rgba(196,80,80,0.15)}}

@keyframes taskComplete{0%{transform:scale(1)}30%{transform:scale(1.02)}100%{transform:scale(1);opacity:0.7}}

@keyframes confettiFall{0%{transform:translateY(0) rotate(0deg);opacity:1}100%{transform:translateY(100vh) rotate(720deg);opacity:0}}

@keyframes sparkleBurst{0%{opacity:1;transform:translate(0,0) scale(1)}100%{opacity:0;transform:translate(var(--tx),var(--ty)) scale(0)}}

@keyframes slideBreakIn{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}

@keyframes slideBreakOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-100%)}}

@keyframes breathe{0%,100%{transform:scale(1);filter:brightness(1)}50%{transform:scale(1.015);filter:brightness(1.02)}}

@keyframes shimmerGlow{0%,100%{opacity:0.3}50%{opacity:0.8}}

@keyframes cardFloat{from{transform:translateY(20px) scale(0.95);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}

@keyframes slideUp{from{transform:translateY(40px);opacity:0}to{transform:translateY(0);opacity:1}}

@keyframes heartPulse{0%,100%{transform:scale(1);opacity:0.7}50%{transform:scale(1.1);opacity:1}}

@keyframes sparklePop{0%{transform:translate(0,0) scale(1);opacity:1}100%{transform:translate(var(--tx),var(--ty)) scale(0);opacity:0}}

@keyframes streakPulse{0%,100%{opacity:1;transform:scale(1);box-shadow:0 2px 8px rgba(253,230,138,0.4)}50%{opacity:0.9;transform:scale(1.04);box-shadow:0 3px 14px rgba(253,230,138,0.6)}}

@keyframes allCompleteGlow{0%,100%{filter:drop-shadow(0 0 12px rgba(196,162,101,0.25))}50%{filter:drop-shadow(0 0 24px rgba(196,162,101,0.45))}}

@keyframes shimmerRotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}

@keyframes heartPop{0%{transform:scale(1)}30%{transform:scale(1.4)}60%{transform:scale(0.9)}100%{transform:scale(1)}}

@keyframes vennBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}

@keyframes circleAura{0%,100%{opacity:0.6;transform:translate(-50%,-50%) scale(1)}50%{opacity:0.9;transform:translate(-50%,-50%) scale(1.05)}}

@keyframes focusGlow{0%,100%{opacity:0.4;transform:translate(0,0) scale(1)}33%{opacity:0.7;transform:translate(5%,-3%) scale(1.05)}66%{opacity:0.5;transform:translate(-3%,5%) scale(0.98)}}

@keyframes addBtnGlow{0%,100%{opacity:0.3;transform:scale(1)}50%{opacity:0.7;transform:scale(1.15)}}

@keyframes allDoneAura{0%,100%{opacity:0.4;transform:scale(1)}50%{opacity:0.8;transform:scale(1.05)}}

@keyframes fadeSlideDown{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}

@keyframes vennFloat{0%,100%{transform:scale(1) translate(0,0)}25%{transform:scale(1.03) translate(1px,-1px)}50%{transform:scale(1.05) translate(-1px,1px)}75%{transform:scale(1.02) translate(1px,0px)}}

@keyframes vennPulse{0%,100%{filter:blur(0.5px) brightness(1)}50%{filter:blur(0.5px) brightness(1.12)}}

@keyframes vennCelebrate{0%,100%{filter:blur(0.5px) brightness(1.05);transform:scale(1)}50%{filter:blur(0.5px) brightness(1.15);transform:scale(1.06)}}

@keyframes vennBreatheWrap{0%,100%{transform:scale(1)}50%{transform:scale(1.02)}}

@keyframes floatTextUp{0%{opacity:0;transform:translate(-50%,-50%) scale(0.8)}15%{opacity:1;transform:translate(-50%,-60%) scale(1.05)}40%{opacity:1;transform:translate(-50%,-80%) scale(1)}100%{opacity:0;transform:translate(-50%,-150%) scale(0.9)}}

@keyframes moteDrift{0%{opacity:0;transform:translate(0,0) scale(0.5)}15%{opacity:1}50%{transform:translate(30px,-40px) scale(1);opacity:0.7}85%{opacity:0.3}100%{opacity:0;transform:translate(-20px,-80px) scale(0.3)}}

@keyframes tapRippleExpand{0%{width:0;height:0;opacity:1}100%{width:120px;height:120px;opacity:0}}

@keyframes badgeShimmer{0%,100%{transform:translateX(-100%) rotate(25deg)}50%{transform:translateX(100%) rotate(25deg)}}

@keyframes chipShimmer{0%,100%{left:-100%;opacity:0}10%{opacity:1}40%{left:200%;opacity:1}50%,100%{left:200%;opacity:0}}

@keyframes leafFloat{0%,100%{transform:translateY(0) rotate(0deg)}25%{transform:translateY(-2px) rotate(4deg)}50%{transform:translateY(-1px) rotate(-3deg)}75%{transform:translateY(-3px) rotate(2deg)}}

@keyframes streakGlow{0%,100%{box-shadow:0 2px 8px rgba(196,162,101,0.1)}50%{box-shadow:0 2px 16px rgba(196,162,101,0.25),0 0 4px rgba(196,162,101,0.1)}}

@keyframes navIconGlow{0%,100%{filter:drop-shadow(0 0 0 transparent)}50%{filter:drop-shadow(0 1px 5px rgba(122,158,109,0.18))}}

@keyframes allDoneFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

@keyframes inputShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}50%{transform:translateX(4px)}75%{transform:translateX(-2px)}}

@media (prefers-reduced-motion:reduce) {
  .confetti-container,.sparkle-burst {
    display: none;
  }

  .magic-float-text,.magic-mote,.magic-tap-ripple,.greeting-leaf,.streak-badge,.pillar-chip::after,.next-up-badge::after,.mode-badge::after,.nav-item.active .nav-icon {
    animation: none !important;
  }

  .magic-motes {
    display: none;
  }
}
