/* Premium Animation Library for VOIDXYZ */

/* Core Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(1deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
    75% {
        transform: translateY(-30px) rotate(0.5deg);
    }
}

@keyframes neonPulse {
    0%, 100% { 
        box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
        filter: brightness(1.2);
    }
}

@keyframes hologram {
    0% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    100% { 
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
}

@keyframes glitchEffect {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px) skewX(-1deg); }
    20% { transform: translateX(2px) skewX(1deg); }
    30% { transform: translateX(-1px) skewX(-0.5deg); }
    40% { transform: translateX(1px) skewX(0.5deg); }
    50% { transform: translateX(0); }
}

@keyframes morphingGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatingParticles {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.9;
    }
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.8);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards;
}

.animate-slide-in-up {
    animation: slideInUp 0.4s ease forwards;
}

/* Premium Animation Classes */
.animate-neon-pulse {
    animation: neonPulse 2s ease-in-out infinite;
}

.animate-hologram {
    background: linear-gradient(45deg, 
        var(--neon-purple), 
        var(--neon-cyan), 
        var(--neon-pink), 
        var(--neon-purple));
    background-size: 400% 400%;
    animation: hologram 4s ease-in-out infinite;
}

.animate-glitch {
    animation: glitchEffect 0.3s ease-in-out;
}

.animate-morphing-bg {
    background: linear-gradient(45deg, 
        rgba(139, 92, 246, 0.1), 
        rgba(6, 182, 212, 0.1), 
        rgba(236, 72, 153, 0.1));
    background-size: 400% 400%;
    animation: morphingGradient 8s ease infinite;
}

.animate-floating-particles {
    animation: floatingParticles 6s ease-in-out infinite;
}

.animate-ultra-glow {
    animation: neonPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px currentColor);
}

/* Interactive Hover Effects */
.hover-neon:hover {
    animation: neonPulse 1s ease-in-out infinite;
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.hover-hologram:hover {
    background: linear-gradient(45deg, 
        var(--neon-purple), 
        var(--neon-cyan), 
        var(--neon-pink), 
        var(--neon-gold));
    background-size: 400% 400%;
    animation: hologram 2s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-glitch:hover {
    animation: glitchEffect 0.5s ease-in-out infinite;
}

.hover-ultra-lift:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3),
                var(--glow-purple);
    filter: brightness(1.1);
}

/* Particle Effects */
.particle-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(236, 72, 153, 0.3) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 60px 60px;
    animation: floatingParticles 20s linear infinite;
    pointer-events: none;
}

/* Glass Morphism Effects */
.glass-ultra {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-neon {
    background: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        var(--glow-purple),
        inset 0 1px 0 rgba(139, 92, 246, 0.1);
}

.animate-slide-in-down {
    animation: slideInDown 0.4s ease forwards;
}

.animate-bounce {
    animation: bounce 1s ease infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 1s linear infinite;
}

.animate-shimmer {
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 800px 104px;
    animation: shimmer 1.5s linear infinite;
}

/* Delayed Animations */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Hover Animations */
.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
    transition: box-shadow 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

/* Loading Animations */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0, 0, 0, 0);
        text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0),
                     0.5em 0 0 rgba(0, 0, 0, 0);
    }
    40% {
        color: white;
        text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0),
                     0.5em 0 0 rgba(0, 0, 0, 0);
    }
    60% {
        text-shadow: 0.25em 0 0 white,
                     0.5em 0 0 rgba(0, 0, 0, 0);
    }
    80%, 100% {
        text-shadow: 0.25em 0 0 white,
                     0.5em 0 0 white;
    }
}

/* Notification Animations */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    z-index: 1400;
    animation: slideInRight 0.3s ease forwards;
    max-width: 300px;
}

.notification-success {
    border-left: 4px solid #00ff88;
}

.notification-error {
    border-left: 4px solid #ff6b6b;
}

.notification-warning {
    border-left: 4px solid #ffa726;
}

.notification-info {
    border-left: 4px solid var(--accent-purple);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Install Prompt Animation */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1400;
    animation: slideInUp 0.4s ease forwards;
}

.install-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.install-content p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.install-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.install-actions .btn {
    flex: 1;
}

/* Page Transition Animations */
.page-enter {
    animation: fadeInUp 0.4s ease forwards;
}

.page-exit {
    animation: fadeOutDown 0.3s ease forwards;
}

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

/* Responsive Animation Adjustments */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .notification {
        left: 10px;
        right: 10px;
        top: 10px;
        max-width: none;
    }
    
    .install-prompt {
        left: 10px;
        right: 10px;
        bottom: 90px; /* Above bottom nav */
    }
}

/* Smart Notification System */
.notification-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
}

.emotional-notification {
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-premium), var(--shadow-glow-cyan);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: pointer;
}

.emotional-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.emotional-notification.minimized {
    transform: scale(0.8) translateX(50%);
    opacity: 0.7;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-controls {
    display: flex;
    gap: 8px;
}

.notification-btn {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.notification-content {
    padding: 8px 16px 12px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.notification-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: var(--accent-primary);
    width: 100%;
    transform: translateX(-100%);
    transition: transform linear;
}

/* Compact Notification Indicator */
.notification-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 48px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    z-index: 1500;
    opacity: 0;
    transform: scale(0.8);
}

.notification-indicator.show {
    opacity: 1;
    transform: scale(1);
}

.notification-indicator:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-cyan);
}

.indicator-icon {
    font-size: 16px;
    color: var(--accent-primary);
}

.indicator-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .emotional-notification {
        left: 16px;
        right: 16px;
        top: 70px;
        max-width: none;
    }
}