/* ============================================
   فایل: css/remix.css
   استایل‌های جدید برای بخش ریمیکس‌ها - نسخه نهایی
   ============================================ */

/* ==================== کانتینر اصلی ==================== */
.remix-glass-container {
    position: relative;
    padding: 20px 0;
}

/* ==================== هدر بخش ==================== */
.remix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.remix-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.remix-title i {
    color: #60a5fa;
    margin-left: 8px;
}

.remix-view-all {
    font-size: 0.75rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.remix-view-all:hover {
    color: #ef4444;
}

/* ==================== کارت ریمیکس (باکس شیشه‌ای) ==================== */
.remix-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    
    /* باکس شیشه‌ای روشن‌تر */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ==================== افکت شیشه‌ای آبی تیره ==================== */
.remix-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.4),
        rgba(30, 58, 138, 0.1),
        rgba(30, 58, 138, 0.3)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* ==================== سایه رنگی آبی تیره در هاور ==================== */
.remix-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(30, 58, 138, 0.5);
    box-shadow: 
        0 16px 56px rgba(30, 58, 138, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 60px rgba(30, 58, 138, 0.15);
}

.remix-card:hover::before {
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.6),
        rgba(30, 58, 138, 0.2),
        rgba(30, 58, 138, 0.4)
    );
}

/* ==================== افکت مدرن روی تصویر ==================== */
.remix-card .image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.remix-card .image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s ease;
    border-radius: 20px;
    filter: brightness(0.95) saturate(1.05);
}

/* ==================== افکت مدرن روی تصویر - هاور ==================== */
.remix-card:hover .image-wrapper img {
    transform: scale(1.1) rotate(-1deg);
    filter: brightness(1.1) saturate(1.2) contrast(1.05);
}

/* ==================== اورلی مدرن روی تصویر ==================== */
.remix-card .image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.15) 0%,
        transparent 30%,
        transparent 70%,
        rgba(30, 58, 138, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.remix-card:hover .image-wrapper::after {
    opacity: 1;
}

/* ==================== افکت گلیچ/نور روی تصویر ==================== */
.remix-card .image-wrapper::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(
        circle at 30% 40%,
        rgba(96, 165, 250, 0.2) 0%,
        rgba(30, 58, 138, 0.1) 20%,
        transparent 60%
    );
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.remix-card:hover .image-wrapper::before {
    opacity: 1;
    transform: scale(1.2) rotate(0deg);
}

/* ==================== اطلاعات کارت (مخفی شده) ==================== */
.remix-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px 18px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        transparent 100%
    );
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
}

/* نمایش عنوان و نام هنرمند در هاور */
.remix-card:hover .card-info {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==================== عنوان و نام هنرمند - رنگ روشن ==================== */
.remix-card .card-info .song-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f0f4ff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.remix-card .card-info .artist-name {
    font-size: 0.85rem;
    color: #b8c7ff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
    opacity: 0.9;
}

/* ==================== آیکون ریمیکس (برچسب حذف شد) ==================== */

/* ==================== آداپتیو موبایل ==================== */
@media (max-width: 640px) {
    .remix-card .card-info {
        padding: 16px 12px 14px;
    }
    
    .remix-card .card-info .song-title {
        font-size: 0.85rem;
    }
    
    .remix-card .card-info .artist-name {
        font-size: 0.75rem;
    }
    
    .remix-title {
        font-size: 1rem;
    }
    
    .remix-card:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

/* ==================== پشتیبانی از Swiper ==================== */
.remix-slider .swiper-slide {
    height: auto;
    padding: 4px;
}

.remix-slider .swiper-slide .remix-card {
    height: 100%;
}

.remix-slider {
    padding: 4px 2px;
}

/* ==================== حالت تاریک ==================== */
.dark .remix-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
}

.dark .remix-card:hover {
    border-color: rgba(30, 58, 138, 0.6);
    box-shadow: 
        0 16px 56px rgba(30, 58, 138, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark .remix-card .card-info .song-title {
    color: #e8eeff;
}

.dark .remix-card .card-info .artist-name {
    color: #a8bfff;
}

/* ==================== انیمیشن ورود ==================== */
.remix-card {
    animation: remixFadeIn 0.7s ease backwards;
}

@keyframes remixFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== افکت هاله آبی اطراف کارت ==================== */
.remix-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(30, 58, 138, 0.15),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.remix-card:hover::after {
    opacity: 1;
}