/**
 * Author Archive Page Styles
 *
 * @package horusseo.com
 */

/* ========================================
   Author Hero Section
   ======================================== */
.author-archive {
    padding-bottom: 60px;
}

.author-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary, var(--color-primary-dark)) 100%);
    padding: 60px 0;
    color: #fff;
}

.author-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

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

.author-hero-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.author-hero-info {
    flex: 1;
}

.author-hero-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}

.author-hero-job {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    font-weight: 500;
}

.author-hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.author-stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.author-hero-bio {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    max-width: 600px;
}

.author-hero-expertise {
    margin-bottom: 20px;
}

.expertise-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.author-hero-expertise .expertise-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.author-hero-social {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 10px;
}

.author-hero-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.author-hero-social .social-link:hover {
    background: #fff;
    color: var(--color-primary);
    transform: translateY(-3px);
}

.author-hero-social .social-link svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Author Posts Section
   ======================================== */
.author-posts-section {
    padding: 50px 0;
    background: var(--color-background-alt, #f8f9fa);
}

.author-posts-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 30px 0;
    text-align: center;
}

.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.author-post-card {
    background: var(--color-surface, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.author-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.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);
}

.post-card-content {
    padding: 20px;
}

.post-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary-light, rgba(var(--color-primary-rgb), 0.1));
    color: var(--color-primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.post-card-category:hover {
    background: var(--color-primary);
    color: #fff;
}

.post-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.post-card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0 0 15px 0;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.post-card-meta .post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-meta svg {
    color: var(--color-primary);
}

.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-card-link:hover {
    gap: 12px;
}

[dir="ltr"] .post-card-link svg {
    transform: rotate(180deg);
}

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

.author-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.author-pagination .page-numbers:hover,
.author-pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.author-pagination .prev,
.author-pagination .next {
    padding: 0;
}

.no-posts-message {
    text-align: center;
    font-size: 16px;
    color: var(--color-text-muted);
    padding: 40px;
}

/* ========================================
   Responsive
   ======================================== */
@media screen and (max-width: 992px) {
    .author-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-hero-stats {
        justify-content: center;
    }
    
    .author-hero-bio {
        margin-left: auto;
        margin-right: auto;
    }
    
    .expertise-tags {
        justify-content: center;
    }
    
    .author-hero-social {
        justify-content: center;
    }
    
    .author-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .author-hero {
        padding: 40px 0;
    }
    
    .author-hero-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .author-hero-name {
        font-size: 26px;
    }
    
    .author-hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .author-posts-section {
        padding: 30px 0;
    }
    
    .author-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-card-title {
        font-size: 16px;
    }
}
