/* =================================================================
   KEYFRAMES.CSS - Animation Definitions
   
   This file contains all CSS animations and keyframes:
   - Loading screen animations
   - Utility animations for UI elements
   - Transition effects and micro-interactions
   ================================================================= */

/* ===== LOADING SCREEN ANIMATIONS ===== */

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes logoGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
  50% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3); }
}

@keyframes titleSlide {
  0% { 
    transform: translateY(20px); 
    opacity: 0; 
  }
  100% { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

@keyframes subtitleSlide {
  0% { 
    transform: translateY(15px); 
    opacity: 0; 
  }
  100% { 
    transform: translateY(0); 
    opacity: 0.9; 
  }
}

@keyframes progressFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes designerFadeIn {
  0% { 
    opacity: 0; 
    transform: translateY(15px) scale(0.9);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

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

/* ===== UTILITY ANIMATIONS ===== */
/* Fade in animation for tooltips and notifications */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== FROSTED GLASS ANIMATIONS ===== */
/* Subtle glow animation for toolbar frosted glass effect */
@keyframes toolbarGlow {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 4px 25px rgba(79, 195, 247, 0.15);
    border-color: rgba(79, 195, 247, 0.3);
  }
}

/* ===== LOADING SCREEN ANIMATIONS ===== */
/* Light theme loading pulse animation */
@keyframes loadingPulseLight {
  0%, 100% {
    background: linear-gradient(135deg, var(--loading-bg-start) 0%, var(--loading-bg-end) 100%);
  }
  50% {
    background: linear-gradient(135deg, var(--loading-bg-start) 0%, var(--loading-bg-end) 100%, var(--loading-bg-start) 0%);
  }
}

/* Dark theme loading pulse animation */
@keyframes loadingPulseDark {
  0%, 100% {
    background: linear-gradient(135deg, var(--loading-bg-start) 0%, var(--loading-bg-end) 50%, var(--loading-bg-start) 100%);
  }
  50% {
    background: linear-gradient(135deg, var(--loading-bg-start) 0%, var(--loading-bg-end) 50%, var(--loading-bg-start) 100%, var(--loading-bg-start) 0%);
  }
}

/* Floating animation for loading content */
@keyframes contentFloat {
  0%, 100% {
    transform: translateY(0px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Shining effect for progress bar */
@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ===== FOOTER HEART ANIMATIONS ===== */
/* Heartbeat pulse animation for footer heart */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
    -webkit-text-stroke: 0.8px #ff6b7a;
    text-stroke: 0.8px #ff6b7a;
    filter: drop-shadow(0 0 1px rgba(255, 107, 122, 0.8));
  }
  14% {
    transform: scale(1.03);
    -webkit-text-stroke: 1px #ff4757;
    text-stroke: 1px #ff4757;
    filter: drop-shadow(0 0 2px rgba(255, 71, 87, 0.9));
  }
  28% {
    transform: scale(1);
    -webkit-text-stroke: 0.8px #ff6b7a;
    text-stroke: 0.8px #ff6b7a;
    filter: drop-shadow(0 0 1px rgba(255, 107, 122, 0.8));
  }
  42% {
    transform: scale(1.05);
    -webkit-text-stroke: 1.2px #ff4757;
    text-stroke: 1.2px #ff4757;
    filter: drop-shadow(0 0 2px rgba(255, 71, 87, 1));
  }
  70% {
    transform: scale(1);
    -webkit-text-stroke: 0.8px #ff6b7a;
    text-stroke: 0.8px #ff6b7a;
    filter: drop-shadow(0 0 1px rgba(255, 107, 122, 0.8));
  }
}

/* ===== WHAT'S NEW MODAL ANIMATIONS ===== */
@keyframes whatsNewDialogIn {
  0% {
    transform: translateY(24px) scale(0.92);
    opacity: 0;
    filter: blur(8px);
  }
  55% {
    transform: translateY(-3px) scale(1.012);
    opacity: 1;
    filter: blur(0);
  }
  80% {
    transform: translateY(1px) scale(0.998);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes whatsNewHeroEntrance {
  0% {
    transform: scale(0.2) rotate(-55deg);
    opacity: 0;
  }
  55% {
    transform: scale(1.12) rotate(8deg);
    opacity: 1;
  }
  75% {
    transform: scale(0.96) rotate(-4deg);
  }
  90% {
    transform: scale(1.02) rotate(1.5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes whatsNewHeroDance {
  0%   { transform: translateY(0) rotate(0deg); }
  20%  { transform: translateY(-3px) rotate(-3deg); }
  40%  { transform: translateY(0) rotate(3deg); }
  55%  { transform: translateY(-2px) rotate(-1.5deg); }
  70%  { transform: translateY(0) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes whatsNewHeroIconWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30%      { transform: scale(1.08) rotate(-6deg); }
  55%      { transform: scale(0.96) rotate(5deg); }
  75%      { transform: scale(1.04) rotate(-2deg); }
}

@keyframes whatsNewHeroBye {
  0%   { transform: scale(1) rotate(0deg); opacity: 1; }
  45%  { transform: scale(1.12) rotate(-12deg); opacity: 1; }
  100% { transform: scale(0.25) rotate(55deg); opacity: 0; }
}

@keyframes whatsNewGlow {
  0%   { opacity: 0.55; transform: scale(0.85); }
  100% { opacity: 0.95; transform: scale(1.08); }
}

@keyframes whatsNewSparkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  40%      { opacity: 1; transform: scale(1.1) rotate(25deg); }
  70%      { opacity: 0.6; transform: scale(0.9) rotate(-10deg); }
}
