/* LifeVed Devotional — Premium Animations & Micro-interactions */

/* === AMBIENT FLOATING (for decorative elements) === */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}
.float { animation: float 4s ease-in-out infinite; }

/* === PULSE GLOW (for active/live indicators) === */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,82,10,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(212,82,10,0); }
}
.pulse-glow { animation: pulseGlow 2s infinite; }

/* === SHINE SWEEP (for premium buttons/cards) === */
@keyframes shineSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
.shine-effect {
    position: relative;
    overflow: hidden;
}
.shine-effect::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: shineSweep 4s infinite;
}

/* === DIYA FLAME (for aarti/puja pages) === */
@keyframes divaFlicker {
    0%, 100% { transform: scaleY(1) rotate(-1deg); opacity: 1; }
    25% { transform: scaleY(1.05) rotate(1deg); opacity: 0.95; }
    50% { transform: scaleY(0.95) rotate(-0.5deg); opacity: 1; }
    75% { transform: scaleY(1.02) rotate(0.5deg); opacity: 0.97; }
}
.diya-flame {
    animation: divaFlicker 1.5s ease-in-out infinite;
    transform-origin: bottom center;
}

/* === COUNTER TICK (number roll) === */
@keyframes numberRoll {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.number-roll { animation: numberRoll 0.3s var(--ease-out); }

/* === SCALE IN (modal, card pop) === */
@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.scale-in { animation: scaleIn 0.3s var(--ease-spring); }

/* === SLIDE UP (bottom sheets, panels) === */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.slide-up { animation: slideUp 0.4s var(--ease-out); }

/* === FADE IN UP (content load) === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s var(--ease-out) forwards; }

/* === BREATHING (for meditation/mantra sections) === */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}
.breathe { animation: breathe 4s ease-in-out infinite; }

/* === GRADIENT SHIFT (hero backgrounds) === */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* === OM SPINNER (loading state) === */
@keyframes omSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.om-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    font-size: 1.5rem;
    animation: omSpin 3s linear infinite;
}

/* === PROGRESS BAR FILL === */
@keyframes progressFill {
    from { width: 0; }
}
.progress-animate { animation: progressFill 1s var(--ease-out); }

/* === HOVER LIFT (universal for cards) === */
.hover-lift { transition: all 0.3s var(--ease-out); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* === PRESS EFFECT (for touch targets) === */
.press-effect:active {
    transform: scale(0.96);
    transition: transform 0.1s;
}

/* === REDUCE MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .stagger > * { opacity: 1; transform: none; animation: none; }
}
