/* ============================================
   artist-page.css - استایل‌های اختصاصی صفحه هنرمند
   مسیر: css/artist-page.css
   ============================================ */

/* ============================================
   بخش هدر هنرمند (افکت شیشه‌ای)
   ============================================ */
.artist-glass-header {
    margin: 20px 0 30px;
    padding: 0 4px;
}

.artist-glass-inner {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 30px 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ===== افکت پس‌زمینه ===== */
.artist-glass-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.05), transparent 70%);
    pointer-events: none;
    animation: artistGlow 8s ease-in-out infinite;
}

@keyframes artistGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20%, -20%) scale(1.2); }
}

/* ============================================
   تصویر خواننده با افکت شیشه‌ای
   ============================================ */
.artist-avatar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
}

.artist-avatar-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.2), transparent 70%);
    filter: blur(30px);
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.artist-avatar-glass {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.artist-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.artist-avatar-image:hover {
    transform: scale(1.05);
}

/* ============================================
   نام خواننده با افکت شیشه‌ای
   ============================================ */
.artist-name-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
    margin: 0 0 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.glass-text {
    display: inline-block;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================
   آمار (زیر نام خواننده)
   ============================================ */
.artist-stats-glass {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0 auto 16px;
    max-width: 400px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
}

.stat-number {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
}

.stat-label {
    color: #8a8aa0;
    font-size: 0.7rem;
    font-family: 'bakhn', sans-serif;
}

.stat-link {
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 12px;
}

.stat-link:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.stat-link:hover .stat-number {
    color: #e94560;
}

.stat-link:hover .stat-label {
    color: #c8c8e0;
}

.stat-link:active {
    transform: scale(0.95);
}

/* ============================================
   بیوگرافی
   ============================================ */
.artist-bio-glass {
    max-width: 600px;
    margin: 0 auto;
}

.bio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8a8aa0;
    font-size: 0.85rem;
    font-family: 'bakhn', sans-serif;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.bio-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.bio-arrow {
    transition: transform 0.3s ease;
    font-size: 0.6rem;
}

.bio-toggle.active .bio-arrow {
    transform: rotate(180deg);
}

.bio-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 10px;
    color: #c8c8e0;
    font-size: 0.85rem;
    font-family: 'bakhn', sans-serif;
    line-height: 1.8;
    text-align: justify;
}

.bio-content.open {
    max-height: 600px;
    padding: 16px 10px 0;
}

/* ============================================
   بخش‌های Swiper
   ============================================ */
.artist-section-glass {
    margin: 30px 0 40px;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.section-title-glass {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-glass i {
    color: #e94560;
    font-size: 1.2rem;
}

.section-more-glass {
    color: #8a8aa0;
    font-size: 0.7rem;
    font-family: 'bakhn', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.section-more-glass:hover {
    color: #e94560;
    background: rgba(233, 69, 96, 0.08);
    border-color: rgba(233, 69, 96, 0.15);
    transform: translateX(-4px);
}

.section-count {
    color: #8a8aa0;
    font-size: 0.7rem;
    font-family: 'bakhn', sans-serif;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================
   Swiper - هنرمند (۵ کارت دسکتاپ، ۲ کارت موبایل)
   ============================================ */
.artist-swiper {
    overflow: hidden;
    padding: 8px 0 12px;
    position: relative;
}

.artist-swiper .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
}

.artist-swiper .swiper-slide {
    width: 180px;
    flex-shrink: 0;
    padding: 4px;
}

/* ============================================
   کارت‌های هنرمند
   ============================================ */
.artist-card-glass {
    display: block;
    text-decoration: none;
    padding: 4px;
    height: 100%;
}

.artist-card-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
}

.artist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artist-card-glass:hover .artist-card-image img {
    transform: scale(1.05);
}

.artist-card-glass:hover .artist-card-image {
    border-color: rgba(233, 69, 96, 0.2);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.08);
}

/* ============================================
   آیکون پلی جدید (نصف روی تصویر، نصف خارج)
   ============================================ */
.artist-card-play-wrapper {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.artist-card-glass:hover .artist-card-play-wrapper {
    opacity: 1;
    bottom: -10px;
}

.artist-card-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-circle i {
    color: #ffffff;
    font-size: 1.1rem;
    margin-right: 2px;
    transition: transform 0.3s ease;
}

.artist-card-play-btn:hover .play-circle {
    transform: scale(1.1);
    border-color: rgba(233, 69, 96, 0.4);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.2);
}

.artist-card-play-btn:hover .play-circle i {
    transform: scale(1.1);
    color: #e94560;
}

/* ============================================
   اطلاعات کارت
   ============================================ */
.artist-card-info {
    padding: 10px 4px 0;
    text-align: center;
}

.artist-card-title {
    display: block;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'bakhb', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-card-artist {
    display: block;
    color: #8a8aa0;
    font-size: 0.7rem;
    font-family: 'bakhn', sans-serif;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   مخفی کردن دکمه‌های ناوبری Swiper
   ============================================ */
.artist-swiper .swiper-button-next,
.artist-swiper .swiper-button-prev {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ============================================
   ریسپانسیو - Swiper
   ============================================ */

/* دسکتاپ (۵ کارت) */
@media (min-width: 1025px) {
    .artist-swiper .swiper-slide {
        width: 180px;
        flex-shrink: 0;
    }
}

/* تبلت (۴ کارت) */
@media (max-width: 1024px) and (min-width: 769px) {
    .artist-swiper .swiper-slide {
        width: 160px;
        flex-shrink: 0;
    }
}

/* موبایل (۲ کارت) */
@media (max-width: 768px) {
    .artist-swiper .swiper-slide {
        width: 140px;
        flex-shrink: 0;
    }
    
    .artist-avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .artist-name-title {
        font-size: 1.4rem;
    }
    
    .artist-stats-glass {
        gap: 14px;
        padding: 10px 16px;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 0.85rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .play-circle {
        width: 40px;
        height: 40px;
    }
    
    .play-circle i {
        font-size: 0.9rem;
    }
}

/* موبایل کوچک (۲ کارت با سایز کمتر) */
@media (max-width: 480px) {
    .artist-swiper .swiper-slide {
        width: 120px;
        flex-shrink: 0;
    }
    
    .artist-avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .artist-name-title {
        font-size: 1.1rem;
    }
    
    .artist-stats-glass {
        gap: 10px;
        padding: 8px 12px;
        border-radius: 10px;
    }
    
    .stat-number {
        font-size: 0.75rem;
    }
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .artist-section-glass {
        padding: 16px 10px 12px;
        border-radius: 16px;
        margin: 20px 0 30px;
    }
    
    .section-title-glass {
        font-size: 0.9rem;
    }
    
    .section-title-glass i {
        font-size: 1rem;
    }
    
    .artist-card-title {
        font-size: 0.7rem;
    }
    
    .artist-card-artist {
        font-size: 0.6rem;
    }
    
    .play-circle {
        width: 34px;
        height: 34px;
    }
    
    .play-circle i {
        font-size: 0.75rem;
    }
}

/* ============================================
   گرید (صفحات smore)
   ============================================ */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 4px;
}

.artist-grid-item-wrapper {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.artist-grid-item-wrapper:hover {
    transform: translateY(-4px);
}

.artist-grid-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.artist-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.artist-grid-item-wrapper:hover .artist-grid-image img {
    transform: scale(1.05);
}

.artist-grid-item-wrapper:hover .artist-grid-image {
    border-color: rgba(233, 69, 96, 0.2);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.08);
}

.artist-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.artist-grid-item-wrapper:hover .artist-grid-overlay {
    opacity: 1;
}

.artist-grid-play {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e94560, #c23152);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.7) rotate(-10deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(233, 69, 96, 0.3);
}

.artist-grid-item-wrapper:hover .artist-grid-play {
    transform: scale(1) rotate(0deg);
}

.artist-grid-play i {
    color: #ffffff;
    font-size: 1.1rem;
    margin-right: 2px;
}

.artist-grid-info {
    padding: 10px 4px 0;
    text-align: center;
}

.artist-grid-title {
    display: block;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'bakhb', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-grid-artist {
    display: block;
    color: #8a8aa0;
    font-size: 0.7rem;
    font-family: 'bakhn', sans-serif;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   حالت خالی
   ============================================ */
.artist-empty-glass {
    text-align: center;
    padding: 40px 20px;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.artist-empty-glass i {
    font-size: 3rem;
    color: #4a4a60;
    display: block;
    margin-bottom: 12px;
}

.artist-empty-glass p {
    color: #8a8aa0;
    font-size: 0.9rem;
    font-family: 'bakhn', sans-serif;
}