/* ==========================================================================
   Author List Page - 著者一覧ページ
   ========================================================================== */

/* メインコンテンツ */
.authors-main {
    background: var(--bg-light);
    padding: 3rem 0;
}

/* セクション見出し */
.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.section-heading i {
    color: var(--primary);
    font-size: 1.5rem;
}

.section-heading-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: auto;
}

/* ==========================================================================
   トップライターセクション
   ========================================================================== */
.top-authors-section {
    margin-bottom: 3rem;
}

.top-authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.top-author-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.top-author-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.top-author-gold::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.top-author-silver::before {
    background: linear-gradient(90deg, #C0C0C0, #A8A8A8);
}

.top-author-bronze::before {
    background: linear-gradient(90deg, #CD7F32, #B87333);
}

.top-author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.top-author-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.75rem;
    line-height: 1;
}

.top-author-avatar-wrapper {
    margin-bottom: 1rem;
}

.top-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.top-author-card:hover .top-author-avatar {
    transform: scale(1.08);
}

.top-author-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.top-author-name a {
    color: var(--text-dark);
    text-decoration: none;
}

.top-author-name a:hover {
    color: var(--primary);
}

.top-author-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.top-author-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.top-author-stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.top-author-stat i {
    color: var(--primary);
}

.top-author-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 1.25rem;
}

.top-author-category {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    color: var(--cat-color);
    font-weight: 500;
}

.top-author-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.top-author-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: #fff;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-author-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateX(4px);
}

.top-author-social {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

/* ==========================================================================
   全著者グリッド
   ========================================================================== */
.all-authors-section {
    margin-top: 2rem;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.author-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.author-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.author-card-avatar .avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-light);
}

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

.author-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-card:hover .author-card-name {
    color: var(--primary);
}

.author-card-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.author-card-stats i {
    margin-right: 0.25rem;
    color: var(--primary);
}

.author-card-bio {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.author-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.author-card-category {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
}

.author-card-latest {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.latest-label {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.latest-title {
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 著者なし */
.no-authors {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 20px;
}

.no-authors-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-authors h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-authors p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 991.98px) {
    .top-authors-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .top-author-card {
        display: flex;
        text-align: left;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .top-author-rank {
        position: static;
        font-size: 2rem;
        align-self: center;
    }
    
    .top-author-avatar-wrapper {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .top-author-avatar {
        width: 80px;
        height: 80px;
    }
    
    .top-author-info {
        flex: 1;
        min-width: 0;
    }
    
    .top-author-stats,
    .top-author-categories,
    .top-author-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .authors-main {
        padding: 2rem 0;
    }
    
    .top-author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .top-author-rank {
        position: absolute;
        top: 1rem;
        left: 1rem;
    }
    
    .top-author-stats,
    .top-author-categories,
    .top-author-actions {
        justify-content: center;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .section-heading {
        flex-wrap: wrap;
    }
    
    .section-heading-count {
        width: 100%;
        margin-left: 2.25rem;
        margin-top: -0.5rem;
    }
}
