/* Author Archive Modern Styling */

.author-archive-page {
    background-color: #fcfcfd;
    padding-bottom: 60px;
}

/* Hero Section */
.author-hero {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 60px 0;
}

.author-hero-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.author-hero-avatar {
    flex-shrink: 0;
}

.author-hero-avatar .profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.author-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}

.author-name {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 5px 0 15px;
}

.author-bio {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

.author-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.author-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.author-action-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.author-action-btn.liked {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.author-action-btn.bookmarked {
    background: #ffd93d;
    color: #333;
    border-color: #ffd93d;
}

/* Post Grid & Cards */
.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    min-height: 500px;
}

.search-results-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* Card */
.recommended-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.recommended-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.recommended-thumb {
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f5;
}

.recommended-thumb img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.recommended-card:hover .recommended-thumb img {
    transform: scale(1.05);
}

.recommended-content {
    padding: 20px;
}

.recommended-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #ececfe;
    color: #454ffb;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid #b8befc;
}

.recommended-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.recommended-title a:hover {
    color: #4a3f8f;
}

.recommended-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

.recommended-meta i {
    margin-right: 4px;
}

/* Sidebar Styling */
.author-sidebar .sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 4px solid #5d59ff;
    padding-left: 15px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin: 0 5px;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
}

.pagination-wrapper .page-numbers.current {
    background: #5d59ff;
    color: #fff;
    border-color: #5d59ff;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .author-archive-page {
        margin: 0px 70px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .author-hero-flex {
        flex-direction: column;
        text-align: center;
    }
    .author-bio {
        margin: 0 auto;
    }
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .recommended-card {
        height: auto;
    }
}

@media (max-width: 576px) {
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    .recommended-title {
        font-size: 16px;
    }
    .recommended-meta{
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .recommended-title {
        font-size: 16px;
    }
    .recommended-meta{
        font-size: 10px;
    }
}