/* Animazioni per il caricamento infinito dei post */
#posts-container {
    position: relative;
}

#posts-loading-indicator {
    animation: fadeInUp 0.6s ease;
}

#posts-sentinel {
    opacity: 0;
    pointer-events: none;
}

/* Animazione per i nuovi post */
.post-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Stili per il messaggio di fine */
.posts-end-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.posts-end-message i {
    font-size: 1.5em;
    margin-bottom: 10px;
    display: block;
}

/* Miglioramenti per l'indicatore di caricamento */
#posts-loading-indicator .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

#posts-loading-indicator p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
}

#posts-bottom-loader {
    position: fixed;
    left: 0; right: 0;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    background: none;
}

.post-spinner {
    background: white;
    border-radius: 50%;
    padding: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fa-spinner {
    font-size: 2.5rem;
}