/* Session Counter Animation Styles */

#completedSessionsCounter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Subtle glow effect for the counter */
#completedSessionsCounter::before {
    content: attr(data-count);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 249, 255, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(1px);
    z-index: -1;
}

/* Trophy icon animation */
.fa-trophy {
    animation: trophyBounce 2s ease-in-out infinite;
}

@keyframes trophyBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Progress bar glow animation */
#activityProgress {
    position: relative;
    background: linear-gradient(90deg, #ffffff 0%, #e6f7ff 100%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#activityProgress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Counter container hover effects */
.bg-gradient-to-r:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #completedSessionsCounter {
        font-size: 2rem;
    }
    
    .fa-trophy {
        font-size: 1.5rem;
    }
}

/* Loading animation for counter */
.counter-loading {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 25%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.3) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Celebration effect */
.counter-celebrate {
    animation: celebrate 0.6s ease-out;
}

@keyframes celebrate {
    0% {
        transform: scale(1) rotateZ(0deg);
    }
    25% {
        transform: scale(1.1) rotateZ(-2deg);
    }
    50% {
        transform: scale(1.2) rotateZ(1deg);
    }
    75% {
        transform: scale(1.1) rotateZ(-1deg);
    }
    100% {
        transform: scale(1) rotateZ(0deg);
    }
}

/* Community section subtle animations */
.community-stats {
    animation: fadeInUp 1s ease-out 0.5s both;
}

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