/* ==========================================================================
BitKids Academy - Custom Animations & Theme Helpers
https://github.com/vvarl0cks
========================================================================== */

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

@keyframes popIn {
0% { opacity: 0; transform: scale(0.95) translateY(8px); }
100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulseGlow {
0%, 100% { box-shadow: 0 0 0 0 rgba(217, 127, 52, 0.25); }
50% { box-shadow: 0 0 0 8px rgba(217, 127, 52, 0); }
}

@keyframes goldShimmer {
0%, 100% { box-shadow: 0 0 0 2px #f59e0b, 0 0 14px rgba(245, 158, 11, 0.45); }
50% { box-shadow: 0 0 0 3px #fbbf24, 0 0 22px rgba(251, 191, 36, 0.75); }
}

@keyframes flameFlicker {
0%, 100% { transform: translateY(0) scale(1) rotate(-4deg); filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.8)); }
50% { transform: translateY(-3px) scale(1.18) rotate(4deg); filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.95)); }
}

@keyframes sparkRise {
0% { opacity: 0; transform: translateY(4px) scale(0.5); }
40% { opacity: 1; }
100% { opacity: 0; transform: translateY(-14px) scale(1.1); }
}

/* GitHub Footer Easter Egg */
.github-easter-egg:hover .github-flame-badge {
opacity: 1;
animation: flameFlicker 0.55s ease-in-out infinite;
}

.github-easter-egg:hover .github-spark-1 {
animation: sparkRise 0.8s ease-out infinite;
}

.github-easter-egg:hover .github-spark-2 {
animation: sparkRise 0.95s ease-out 0.25s infinite;
}

.github-easter-egg:hover .github-icon-wrap {
border-color: #f97316;
box-shadow: 0 0 14px rgba(249, 115, 22, 0.55), 0 0 4px rgba(251, 191, 36, 0.8);
transform: translateY(-2px) scale(1.08);
}

/* Utility Animations */
.animate-float {
animation: floatSlow 3s ease-in-out infinite;
}

.animate-pop {
animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-btc {
animation: pulseGlow 2.4s infinite;
}

/* Legendary Graduate Avatar Frame */
.legendary-frame {
animation: goldShimmer 2.5s infinite;
border-color: #f59e0b !important;
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.dark .legendary-frame {
background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

/* Tactile 3D Kids Button */
.btn-3d {
transition: transform 0.1s ease, box-shadow 0.1s ease;
box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.btn-3d:active {
transform: translateY(2px);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
