/* ═══════════════════════════════════════════════════════════════
   PintarRPH Dark Theme — Animations
   Aniq UI inspired motion design
   ═══════════════════════════════════════════════════════════════ */

/* ── Smooth Fade In ────────────────────────────────────────── */
@keyframes darkFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes darkFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes darkFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Glow Pulse ────────────────────────────────────────────── */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.15), 0 0 30px rgba(251, 191, 36, 0.05);
    }
    50% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.3), 0 0 50px rgba(251, 191, 36, 0.1);
    }
}

@keyframes glowPulseGreen {
    0%, 100% {
        box-shadow: 0 0 15px rgba(52, 211, 153, 0.15), 0 0 30px rgba(52, 211, 153, 0.05);
    }
    50% {
        box-shadow: 0 0 25px rgba(52, 211, 153, 0.3), 0 0 50px rgba(52, 211, 153, 0.1);
    }
}

@keyframes glowPulseBlue {
    0%, 100% {
        box-shadow: 0 0 15px rgba(96, 165, 250, 0.15), 0 0 30px rgba(96, 165, 250, 0.05);
    }
    50% {
        box-shadow: 0 0 25px rgba(96, 165, 250, 0.3), 0 0 50px rgba(96, 165, 250, 0.1);
    }
}

/* ── Realistic Pulse (Aniq style) ──────────────────────────── */
@keyframes realisticPulse {
    0%, 100% {
        opacity: 0.6;
        filter: blur(0px) brightness(1);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        filter: blur(1px) brightness(1.2);
        transform: scale(1.02);
    }
}

/* ── Subtle Sway ───────────────────────────────────────────── */
@keyframes realisticSway {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    25% {
        transform: translateX(-3px) scaleY(1.01);
    }
    75% {
        transform: translateX(3px) scaleY(0.99);
    }
}

/* ── Float ─────────────────────────────────────────────────── */
@keyframes darkFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ── Shimmer (loading state) ───────────────────────────────── */
@keyframes darkShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ── Gradient Shift ────────────────────────────────────────── */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ── Border Glow ───────────────────────────────────────────── */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(251, 191, 36, 0.15);
    }
    50% {
        border-color: rgba(251, 191, 36, 0.4);
    }
}

/* ── Staggered Fade In (for lists/grids) ───────────────────── */
.dark-stagger > *:nth-child(1) { animation-delay: 0s; }
.dark-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.dark-stagger > *:nth-child(3) { animation-delay: 0.2s; }
.dark-stagger > *:nth-child(4) { animation-delay: 0.3s; }
.dark-stagger > *:nth-child(5) { animation-delay: 0.4s; }
.dark-stagger > *:nth-child(6) { animation-delay: 0.5s; }
.dark-stagger > *:nth-child(7) { animation-delay: 0.6s; }
.dark-stagger > *:nth-child(8) { animation-delay: 0.7s; }

/* ── Utility Classes ───────────────────────────────────────── */
.animate-fade-in {
    animation: darkFadeIn 0.5s ease-out both;
}

.animate-fade-in-up {
    animation: darkFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in-scale {
    animation: darkFadeInScale 0.4s ease-out both;
}

.animate-glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

.animate-glow-pulse-green {
    animation: glowPulseGreen 3s ease-in-out infinite;
}

.animate-glow-pulse-blue {
    animation: glowPulseBlue 3s ease-in-out infinite;
}

.animate-pulse {
    animation: realisticPulse 4s ease-in-out infinite;
}

.animate-sway {
    animation: realisticSway 6s ease-in-out infinite;
}

.animate-float {
    animation: darkFloat 4s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    background-size: 200% 100%;
    animation: darkShimmer 2s infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.animate-border-glow {
    animation: borderGlow 3s ease-in-out infinite;
}

/* ── Hover Transitions ─────────────────────────────────────── */
.dark-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.dark-hover-glow {
    transition: box-shadow 0.3s ease;
}

.dark-hover-glow:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
}

.dark-hover-scale {
    transition: transform 0.2s ease;
}

.dark-hover-scale:hover {
    transform: scale(1.02);
}
