/*
 * css/singer-index.css
 * فقط در صفحه /singer/ بارگذاری می‌شود (نگاه کن: nk_singer_index_enqueue_assets).
 * تمام کلاس‌ها با پیشوند nk-singer- یا nk- اختصاصی هستند تا با CSS فعلی قالب
 * تداخل نداشته باشند. رنگ‌ها با پالت فعلی قالب هماهنگ شده‌اند (#65cbbe / #3b9e91).
 */

.nk-singer-toolbar {
    margin: 15px 0 22px;
}

.nk-singer-letters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 12px;
}

.nk-letter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}

.nk-letter-link:hover {
    background: #d9f4f0;
    border-color: #a9e4dc;
    color: #3b9e91;
    transform: translateY(-1px);
}

.nk-letter-link.is-active {
    background: linear-gradient(135deg, #65cbbe, #3b9e91);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(59, 158, 145, .35);
}

.nk-letter-link:first-child {
    font-weight: 700;
    background: #eef7f6;
    border-color: #d5f1ed;
}

.nk-letter-link:first-child.is-active {
    background: linear-gradient(135deg, #65cbbe, #3b9e91);
    border-color: transparent;
}

.nk-singer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 2%;
}

/* دسکتاپ: هر سطر دو خواننده کنار هم */
.nk-singer-card {
    width: 49%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    color: #050505;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.nk-singer-card:hover {
    border-color: #65cbbe;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}

/* کاور دایره‌ای خواننده (چه کاور واقعی، چه آیکون پیش‌فرض) — سمت راست کارت. */
.nk-singer-avatar {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f4f4;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nk-singer-card:hover .nk-singer-avatar {
    border-color: #65cbbe;
}

.nk-singer-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nk-singer-icon {
    width: 20px;
    height: 20px;
    opacity: .6;
}

.nk-singer-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* کادر تعداد آهنگ، سمت راست هر سطر */
.nk-singer-count {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #eafbf9;
    border: 1px solid #d5f1ed;
    line-height: 1.3;
}

.nk-singer-count-num {
    font-size: 13px;
    font-weight: 700;
    color: #3b9e91;
}

.nk-singer-count-label {
    font-size: 10px;
    color: #6b8c88;
}

.nk-singer-empty {
    padding: 20px 0;
    color: #888;
    text-align: center;
    width: 100%;
}

.nk-singer-load-more-wrap {
    text-align: center;
}

/* موبایل: لیست — هر سطر فقط یک خواننده */
@media (max-width: 768px) {
    .nk-singer-card {
        width: 100%;
    }

    .nk-singer-letters {
        gap: 6px;
        padding: 10px;
        border-radius: 12px;
    }

    .nk-letter-link {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }
}
