/* Animation Styles */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardHover {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

.post-card {
    animation: fadeUp 0.6s ease forwards;
}

.post-card:hover {
    animation: cardHover 0.3s ease;
}

.category-card i {
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Loading Animation */
.loading {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

.loading:before {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

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

/* Success Message Animation */
.success-message {
    animation: slideIn 0.3s ease forwards;
}

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

/* Share Button Animation */
.share-btn {
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px) scale(1.1);
}

/* Category Filter Animation */
.category-card.active {
    animation: pulse 2s infinite;
}

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

/* Newsletter Form Animation */
.newsletter-form input:focus {
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(146, 144, 195, 0.2);
    }
    to {
        box-shadow: 0 0 10px rgba(146, 144, 195, 0.4);
    }
}