/* Author Pages Styles */

/* ========== Author Page ========== */
.author-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.author-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
}

.author-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.author-stats {
    font-size: 1.125rem;
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.author-bio {
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text);
}

.author-books h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.author-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.btn-back,
.btn-home {
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-back:hover,
.btn-home:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ========== Authors Index ========== */
.authors-index {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.page-description {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.stats-summary {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== Authors Grid ========== */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.author-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    overflow: hidden;
}

.author-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.author-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.author-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 2rem;
}

.author-details {
    flex: 1;
    min-width: 0;
}

.author-card .author-name {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-book-count {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin: 0 0 0.25rem 0;
}

.author-views {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

.no-authors {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-light);
    padding: 3rem;
}

.page-nav {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ========== Mobile Responsive ========== */
@media (max-width: 768px) {
    .author-name {
        font-size: 2rem;
    }
    
    .author-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-summary {
        gap: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .author-nav {
        flex-direction: column;
    }
    
    .btn-back,
    .btn-home {
        width: 100%;
        text-align: center;
    }
}
