/**
 * Styles pour l'Infinite Scroll Plugin
 */

/* Indicateur de chargement */
.loading-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0px 70px 100px -40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.loading-indicator p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: #444444;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Spinner de chargement */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #444444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

/* Message de fin de posts */
.no-more-posts-message {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0px 70px 100px -40px rgba(0, 0, 0, 0.5);
    color: #444444;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

/* Message d'erreur */
.error-message {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    background-color: #ffe6e6;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: 1rem;
    box-shadow: 0px 70px 100px -40px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .loading-indicator,
    .no-more-posts-message,
    .error-message {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

