/*
 * Author Page Styles
 * Follows existing design system: colors, typography, and layout patterns
 */

/* ==========================================
   Author Hero Section
   ========================================== */
.author-hero {
    background: linear-gradient(135deg, #EFF3F9 0%, #E8EDF5 100%);
    padding: 80px 0 60px;
}

.author-hero-content {
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Author Avatar */
.author-avatar-wrapper {
    flex-shrink: 0;
}

.author-avatar-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Author Info */
.author-info {
    flex: 1;
}

.author-name {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1F2937;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.author-title {
    font-size: 18px;
    font-weight: 500;
    color: #4F46E5;
    margin: 0 0 16px 0;
}

.author-short-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #6B7280;
    margin: 0 0 24px 0;
    max-width: 600px;
}

/* Author Stats */
.author-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #6B7280;
    margin-top: 4px;
}

/* Social Links */
.author-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: #4F46E5;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   Author Bio Section
   ========================================== */
.author-bio-section {
    padding: 60px 0;
    background: #FFFFFF;
}

.author-bio-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.bio-heading {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 20px 0;
}

.author-bio-content {
    font-size: 16px;
    line-height: 1.7;
    color: #4B5563;
}

.author-bio-content p {
    margin: 0 0 16px 0;
}

.author-bio-content p:last-child {
    margin-bottom: 0;
}

/* Expertise Section */
.author-expertise {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.expertise-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 16px 0;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
}

/* ==========================================
   Author Posts Section
   ========================================== */
.author-posts-section {
    padding: 60px 0 80px;
    background: #F9FAFB;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
}

/* Posts Grid - Full width 4 column layout */
.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Post Card */
.author-post-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.author-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Post Card Image - Square aspect ratio */
.post-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #E5E7EB;
}

.post-card-image a {
    display: block;
    height: 100%;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-post-card:hover .post-card-image img {
    transform: scale(1.05);
}

/* Placeholder Image */
.post-card-image--placeholder .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.post-card-image--placeholder svg {
    width: 48px;
    height: 48px;
    color: #9CA3AF;
}

/* Post Card Content */
.post-card-content {
    padding: 20px;
}

.post-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.post-card-type {
    display: inline-block;
    padding: 4px 10px;
    background: #F3F4F6;
    color: #6B7280;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-content > .post-card-type {
    margin-bottom: 12px;
}

.post-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1F2937;
    margin: 0 0 10px 0;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-title a:hover {
    color: #4F46E5;
}

.post-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #6B7280;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.post-card-date,
.post-card-read-time {
    font-size: 13px;
    color: #9CA3AF;
}

.post-card-meta::before {
    display: none;
}

/* ==========================================
   Pagination
   ========================================== */
.author-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-pagination .page-numbers {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.author-pagination .page-numbers li {
    display: inline-block;
}

.author-pagination a,
.author-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 40px;
    height: 40px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #6B7280;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.author-pagination a:hover {
    background: #F9FAFB;
    color: #4F46E5;
    border-color: #4F46E5;
}

.author-pagination .current {
    background: #4F46E5;
    color: #FFFFFF;
    border-color: #4F46E5;
}

.author-pagination .dots {
    background: transparent;
    border: none;
    cursor: default;
}

.author-pagination .prev svg,
.author-pagination .next svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   No Posts Message
   ========================================== */
.no-posts-message {
    text-align: center;
    padding: 80px 40px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-posts-message svg {
    width: 64px;
    height: 64px;
    color: #D1D5DB;
    margin-bottom: 24px;
}

.no-posts-message p {
    font-size: 18px;
    color: #6B7280;
    margin: 0 0 24px 0;
}

.no-posts-message .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #4F46E5;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.no-posts-message .btn:hover {
    background: #4338CA;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1200px) {
    .author-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .author-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .author-hero {
        padding: 60px 0 48px;
    }
    
    .author-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .author-avatar-img {
        width: 140px;
        height: 140px;
    }
    
    .author-name {
        font-size: 32px;
    }
    
    .author-title {
        font-size: 16px;
    }
    
    .author-short-bio {
        font-size: 15px;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .stat-item {
        align-items: center;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .author-bio-section {
        padding: 48px 0;
    }
    
    .author-bio-card {
        padding: 28px;
    }
    
    .bio-heading {
        font-size: 20px;
    }
    
    .author-posts-section {
        padding: 48px 0 60px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .author-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card-image {
        aspect-ratio: 1 / 1;
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    .post-card-title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .author-hero {
        padding: 48px 0 40px;
    }
    
    .author-avatar-img {
        width: 120px;
        height: 120px;
    }
    
    .author-name {
        font-size: 26px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .author-bio-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .post-card-content {
        padding: 16px;
    }
    
    .post-card-title {
        font-size: 16px;
    }
    
    .post-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .author-pagination a,
    .author-pagination span {
        min-width: 36px;
        height: 36px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .no-posts-message {
        padding: 48px 24px;
    }
    
    .no-posts-message svg {
        width: 48px;
        height: 48px;
    }
    
    .no-posts-message p {
        font-size: 16px;
    }
}

