/**
 * Custom Author Archive Styles
 * 
 * This CSS provides styling for the custom author archive template.
 * It uses CSS classes that are Bootstrap and Tailwind-friendly.
 */

/* Container */
.author-archive-container {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Author Profile Section */
.author-profile-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    border-bottom: 1px solid #e9ecef;
}

.author-profile-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

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

.author-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
    min-width: 300px;
}

.author-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #212529;
    line-height: 1.2;
}

.author-bio {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.author-bio p {
    margin-bottom: 15px;
}

.author-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.post-count {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Author Posts Section */
.author-posts-section {
    padding: 60px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Post Card */
.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.post-title a {
    text-decoration: none;
    color: #212529;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #007bff;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-date {
    font-size: 0.9rem;
    color: #6c757d;
}

.post-categories {
    font-size: 0.9rem;
}

.post-categories a {
    color: #007bff;
    text-decoration: none;
}

.post-categories a:hover {
    text-decoration: underline;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #0056b3;
    color: white;
}

/* Pagination */
.author-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-list li {
    margin: 0;
}

.pagination-list a,
.pagination-list span {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    color: #007bff;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-list a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination-list .current {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 60px 0;
    color: #6c757d;
}

.no-posts-message p {
    font-size: 1.1rem;
    font-style: italic;
}

/* Author Not Found */
.author-not-found {
    text-align: center;
    padding: 100px 0;
}

.author-not-found h1 {
    font-size: 2rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.author-not-found p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .author-profile-section {
        padding: 40px 0;
    }
    
    .author-profile-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .author-name {
        font-size: 2rem;
    }
    
    .author-posts-section {
        padding: 40px 0;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 575px) {
    .author-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .author-name {
        font-size: 1.75rem;
    }
    
    .pagination-list a,
    .pagination-list span {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}