/* ========================================
   AUTHOR PAGE STYLES
   ======================================== */

/* Author Container */
.author-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Author Hero Section */
.author-hero {
    background: linear-gradient(135deg, #eff6ff 0%, white 100%);
    padding: 3rem 0 2rem;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.author-bio {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 50rem;
}

.author-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-posts-count,
.author-website {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
}

.author-website {
    text-decoration: none;
    transition: color 0.2s;
}

.author-website:hover {
    color: #2563eb;
}

/* Author Posts Section */
.author-posts {
}

.author-posts .section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 3rem;
    text-align: left;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #2563eb;
}

.post-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.post-category {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.post-date {
    color: #6b7280;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #2563eb;
}

.post-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.read-more:hover {
    gap: 0.5rem;
    color: #1d4ed8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.pagination .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .author-container {
        padding: 0 1.5rem;
    }

    .author-hero {
        padding: 2rem 0 1.5rem;
    }

    .author-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-name {
        font-size: 2rem;
    }

    .author-bio {
        font-size: 1rem;
    }

    .author-meta {
        justify-content: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .author-posts .section-title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .author-container {
        padding: 0 1rem;
    }
}
