/* استایل‌های افزونه Author Infinite Scroll */

.author-posts-feed {
    margin: 30px 0;
    padding: 0;
}

.ais-post-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    animation: fadeInUp 0.5s ease-out;
}

.ais-post-item:last-child {
    border-bottom: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ais-post-content {
    width: 100%;
}

.ais-post-header {
    margin-bottom: 20px;
}

.ais-post-title {
    font-size: 24px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ais-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ais-post-title a:hover {
    color: #0073aa;
}

.ais-post-meta {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.ais-post-date {
    display: inline-block;
}

.ais-post-thumbnail {
    margin: 20px 0;
    overflow: hidden;
    border-radius: 8px;
}

.ais-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ais-post-thumbnail:hover img {
    transform: scale(1.05);
}

.ais-post-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 20px 0;
}

.ais-post-footer {
    margin-top: 20px;
}

.ais-read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.ais-read-more:hover {
    background-color: #005a87;
    color: #fff;
}

/* دکمه بارگذاری بیشتر */
.ais-load-more-container {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.ais-load-more-btn {
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ais-load-more-btn:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ais-load-more-btn:active {
    transform: translateY(0);
}

.ais-load-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* انیمیشن لودینگ */
.ais-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #666;
}

.ais-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ais-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* استایل برای پست‌های المنتور */
.ais-post-item .elementor {
    width: 100%;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .ais-post-title {
        font-size: 20px;
    }
    
    .ais-post-excerpt {
        font-size: 14px;
    }
    
    .ais-load-more-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* استایل برای حالت اسکرول خودکار */
.ais-auto-added-posts {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid #e0e0e0;
}

.ais-auto-added-posts::before {
    content: "پست‌های دیگر این نویسنده";
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

