/* ============================================
   استایل‌های بخش هنرمندان برتر (صفحه اصلی)
   ============================================ */

/* --- کارت اصلی --- */
.artist-card-glass {
    display: block;
    text-decoration: none;
    padding: 4px;
    height: 100%;
}

.artist-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px 14px;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 180px;
}

.artist-card-inner:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 69, 96, 0.2);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.08);
    background: rgba(30, 30, 58, 0.6);
}

/* --- تصویر (100px با رادیوس 20px) --- */
.artist-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
    flex-shrink: 0;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
}

.artist-avatar-glow {
    position: absolute;
    inset: -12px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15), transparent 70%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.artist-card-inner:hover .artist-avatar-glow {
    opacity: 1;
}

.artist-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    border-radius: 20px;
}

.artist-card-inner:hover .artist-avatar-image {
    border-color: rgba(233, 69, 96, 0.4);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.15);
}

/* ============================================
   باکس اطلاعات (روی تصویر در هاور)
   ============================================ */
.artist-info-glass {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 8px 10px 10px;
    background: rgba(15, 15, 26, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s ease 0.1s;
}

/* ===== نمایش با هاور روی کارت ===== */
.artist-card-inner:hover .artist-info-glass {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- عنوان --- */
.artist-name {
    display: block;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- آمار (تعداد آثار) --- */
.artist-works {
    display: block;
    color: #c8c8e0;
    font-size: 0.55rem;
    font-family: 'bakhn', sans-serif;
    margin-top: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   تنظیمات Swiper برای هنرمندان برتر
   ============================================ */

/* دسکتاپ: 6 کارت */
.artist .swiper-slide {
    width: 150px;
    flex-shrink: 0;
}

/* تبلت: 4 کارت */
@media (max-width: 1024px) {
    .artist .swiper-slide {
        width: 135px;
    }
    .artist-avatar-wrapper {
        width: 85px;
        height: 85px;
        border-radius: 18px;
    }
    .artist-avatar-image {
        border-radius: 18px;
    }
    .artist-avatar-glow {
        border-radius: 18px;
    }
    .artist-info-glass {
        padding: 6px 8px 8px;
        border-radius: 12px;
    }
    .artist-name {
        font-size: 0.75rem;
    }
}

/* موبایل: 2 کارت */
@media (max-width: 768px) {
    .artist .swiper-slide {
        width: 120px;
    }
    .artist-avatar-wrapper {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }
    .artist-avatar-image {
        border-radius: 16px;
    }
    .artist-avatar-glow {
        border-radius: 16px;
    }
    .artist-card-inner {
        padding: 12px 8px 10px;
        min-height: 140px;
    }
    .artist-info-glass {
        padding: 5px 6px 6px;
        border-radius: 10px;
        bottom: 8px;
        left: 8px;
        right: 8px;
    }
    .artist-name {
        font-size: 0.7rem;
    }
    .artist-works {
        font-size: 0.5rem;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .artist .swiper-slide {
        width: 100px;
    }
    .artist-avatar-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
    .artist-avatar-image {
        border-radius: 14px;
    }
    .artist-avatar-glow {
        border-radius: 14px;
    }
    .artist-card-inner {
        padding: 10px 6px 8px;
        min-height: 120px;
        border-radius: 16px;
    }
    .artist-info-glass {
        padding: 4px 5px 5px;
        border-radius: 8px;
        bottom: 6px;
        left: 6px;
        right: 6px;
    }
    .artist-name {
        font-size: 0.6rem;
    }
    .artist-works {
        font-size: 0.45rem;
        margin-top: 1px;
    }
}

/* ============================================
   دستگاه‌های لمسی (موبایل و تبلت)
   ============================================ */
@media (hover: none) {
    .artist-info-glass {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 8px;
        background: rgba(15, 15, 26, 0.4);
        z-index: 1;
    }
}