/* ==========================================================================
   AUTHOR ARCHIVE PAGE STYLES - REDESIGNED
   ========================================================================== */

/* Main Container */
.author-main {
    background: #f8fafc;
    min-height: 100vh;
}

/* Hero Section */
.author-hero {
    position: relative;
    padding: 60px 20px 80px;
    background: linear-gradient(135deg, var(--color-author-gradient-1, #667eea) 0%, var(--color-author-gradient-2, #764ba2) 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.author-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-author-gradient-1, #667eea) 90%, transparent) 0%, color-mix(in srgb, var(--color-author-gradient-2, #764ba2) 90%, transparent) 100%);
}

.author-hero-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Profile Card */
.author-profile-card {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: var(--color-author-card-bg, rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Avatar */
.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Author Info */
.author-info {
    flex: 1;
    text-align: left;
}

.author-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-author-text, #fff);
    margin: 0 0 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.author-job-title {
    font-size: 1.1rem;
    color: var(--color-author-text, rgba(255, 255, 255, 0.85));
    opacity: 0.85;
    margin: 0 0 20px;
    font-weight: 500;
}

/* Stats */
.author-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.author-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--color-author-text, #fff);
    font-size: 0.9rem;
}

.author-stats .stat-icon {
    font-size: 1rem;
}

.author-stats .stat-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.author-stats .stat-label {
    opacity: 0.9;
}

/* Social Links */
.author-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.author-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.author-social .social-link:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.author-social .social-link.facebook:hover { color: #1877f2; }
.author-social .social-link.twitter:hover { color: #000; }
.author-social .social-link.instagram:hover { color: #e4405f; }
.author-social .social-link.youtube:hover { color: #ff0000; }
.author-social .social-link.pinterest:hover { color: #bd081c; }
.author-social .social-link.linkedin:hover { color: #0077b5; }
.author-social .social-link.tiktok:hover { color: #000; }
.author-social .social-link.website:hover { color: #667eea; }

/* Bio Section */
.author-bio-section {
    background: #fff;
    padding: 50px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.author-bio-container {
    max-width: 900px;
    margin: 0 auto;
}

.author-bio-section .bio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.author-bio-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #374151;
    text-align: left;
}

.author-bio-content p {
    margin: 0 0 16px;
}

.author-bio-content p:last-child {
    margin-bottom: 0;
}

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

.author-posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.author-posts-section .section-header {
    margin-bottom: 40px;
}

.author-posts-section .section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.author-posts-section .title-icon {
    font-size: 1.2em;
}

/* Posts Grid */
.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Post Card */
.author-post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.author-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.author-post-card .post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.author-post-card .post-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
}

.author-post-card .post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.4s ease;
}

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

.author-post-card .post-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
}

.author-post-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-post-card .badge-icon {
    font-size: 0.85em;
}

.author-post-card .post-card-content {
    padding: 18px;
    text-align: center;
}

.author-post-card .post-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-post-card .post-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: #667eea;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

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

.author-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.author-pagination .page-numbers li {
    display: inline-block;
}

.author-pagination .page-numbers a,
.author-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    background: #fff;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.author-pagination .page-numbers a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
}

.author-pagination .page-numbers .current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

/* No Posts */
.author-posts-section .no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
}

.author-posts-section .no-posts-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.author-posts-section .no-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
}

.author-posts-section .no-posts-text {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .author-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .author-hero {
        padding: 40px 15px 60px;
    }

    .author-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }

    .author-info {
        text-align: center;
    }

    .author-avatar img {
        width: 140px;
        height: 140px;
    }

    .author-name {
        font-size: 1.75rem;
    }

    .author-stats {
        justify-content: center;
    }

    .author-social {
        justify-content: center;
    }

    .author-bio-content {
        font-size: 1rem;
    }

    .author-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .author-posts-section .section-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .author-avatar img {
        width: 120px;
        height: 120px;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .author-stats {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .author-social .social-link {
        width: 40px;
        height: 40px;
    }

    .author-post-card .post-card-content {
        padding: 12px;
    }

    .author-post-card .post-card-title {
        font-size: 0.9rem;
    }
}
