/* ==========================================
   繪師瀏覽頁面 CSS — 橫式卡片
   ========================================== */

/* 搜尋框 */
.artists-search {
    width: 260px;
}

/* 繪師網格 */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

/* 繪師卡片 */
.artist-card {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    background: #fff;
    border: 1px solid #e0e0e0;
    min-height: 80px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.artist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    color: #222;
    text-decoration: none;
}
[data-theme="dark"] .artist-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}
[data-theme="dark"] .artist-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    color: #e0e0e0;
}

/* 縮圖區域 */
.artist-card-thumb {
    width: 120px;
    height: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px 8px 10px;
}
.artist-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 3px;
}
.artist-card-thumb-placeholder {
    width: 44px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #f0f0f0;
    color: #aaa;
    font-size: 1.1rem;
}
[data-theme="dark"] .artist-card-thumb-placeholder {
    background: #383838;
    color: #666;
}

/* 資訊區域 */
.artist-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 8px 8px 6px;
    min-width: 0;
}
.artist-card-name-main {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.artist-card-name-sub {
    font-size: 0.72rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
[data-theme="dark"] .artist-card-name-sub {
    color: #999;
}

/* 收錄卡數徽章 */
.artist-card-badge {
    position: absolute;
    bottom: 6px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #999;
    white-space: nowrap;
}
[data-theme="dark"] .artist-card-badge {
    color: #777;
}

/* 繪師詳情頁統計 */
.artist-detail-stats {
    margin-bottom: 0.75rem;
}

/* ===== RWD ===== */
@media (max-width: 576px) {
    .artists-search {
        width: 100%;
    }
    .artists-grid {
        grid-template-columns: 1fr;
    }
    .artist-card-thumb {
        width: 100px;
        height: 120px;
        padding: 6px 4px 6px 8px;
    }
}
