/* ============================================
   استایل‌های بخش فرقه‌ها - مدرن و شیشه‌ای
   ============================================ */

/* --- بخش اصلی --- */
.madahi-section-modern {
    margin: 30px 0 40px;
    padding: 0 4px;
    position: relative;
}

/* --- باکس شیشه‌ای کل بخش --- */
.madahi-glass-wrapper {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 24px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* افکت نورانی پس‌زمینه باکس شیشه‌ای - رنگ سبز/طلایی برای فرقه‌ها */
.madahi-glass-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.03), transparent 70%);
    pointer-events: none;
    animation: madahiGlow 8s ease-in-out infinite;
}

@keyframes madahiGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20%, -20%) scale(1.2); }
}

.madahi-glass-wrapper:hover {
    border-color: rgba(76, 175, 80, 0.12);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- هدر بخش --- */
.madahi-section-modern .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
    position: relative;
    z-index: 1;
}

.madahi-section-modern .section-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.madahi-section-modern .section-title i {
    color: #4CAF50;
    font-size: 1.3rem;
}

.madahi-section-modern .section-more {
    color: #8a8aa0;
    font-size: 0.75rem;
    font-family: 'bakhn', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.madahi-section-modern .section-more:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.15);
    transform: translateX(-4px);
}

.madahi-section-modern .section-more i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.madahi-section-modern .section-more:hover i {
    transform: translateX(-4px);
}

/* --- کانتینر Swiper --- */
.madahi-section-modern .madahi-slider {
    position: relative;
    padding: 8px 4px 16px;
    overflow: hidden;
    z-index: 1;
}

.madahi-section-modern .swiper-wrapper {
    padding-bottom: 12px;
}

.madahi-section-modern .swiper-slide {
    height: auto;
    width: 180px;
    flex-shrink: 0;
}

/* --- کارت شیشه‌ای فرقه --- */
.madahi-card-glass {
    display: block;
    text-decoration: none;
    padding: 4px;
    height: 100%;
}

.madahi-card-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    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);
    aspect-ratio: 1/1;
}

.madahi-card-inner:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(76, 175, 80, 0.25);
    box-shadow: 0 16px 48px rgba(76, 175, 80, 0.12);
    background: rgba(30, 30, 58, 0.7);
}

/* --- کاور تصویر --- */
.madahi-card-cover {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.madahi-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.madahi-card-inner:hover .madahi-card-cover img {
    transform: scale(1.08);
}

/* --- اوورلی شیشه‌ای اصلی --- */
.madahi-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(15, 15, 26, 0.1) 0%,
        rgba(15, 15, 26, 0.4) 50%,
        rgba(15, 15, 26, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.madahi-card-inner:hover .madahi-card-overlay {
    opacity: 1;
}

/* --- دکمه پلی --- */
.madahi-card-play {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.35);
    transform: scale(0.7) rotate(-10deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.madahi-card-inner:hover .madahi-card-play {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.5);
}

.madahi-card-play i {
    color: #ffffff;
    font-size: 1.3rem;
    margin-right: 4px;
}

/* --- باکس شیشه‌ای پایین برای اطلاعات --- */
.madahi-card-info-glass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 14px 14px;
    background: rgba(15, 15, 26, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    z-index: 2;
}

.madahi-card-inner:hover .madahi-card-info-glass {
    transform: translateY(0);
}

.madahi-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;
    max-width: 160px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.madahi-card-artist {
    display: block;
    color: #c8c8e0;
    font-size: 0.7rem;
    font-family: 'bakhn', sans-serif;
    margin-top: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   مخفی کردن تمام المان‌های Swiper
   ============================================ */

/* مخفی کردن دکمه‌های ناوبری */
.madahi-section-modern .swiper-button-next,
.madahi-section-modern .swiper-button-prev {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* مخفی کردن Pagination (bullet‌ها) */
.madahi-section-modern .swiper-pagination {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ============================================
   واکنش‌گرایی
   ============================================ */
@media (max-width: 1024px) {
    .madahi-glass-wrapper {
        padding: 20px 16px 16px;
        border-radius: 20px;
    }
    .madahi-section-modern .swiper-slide {
        width: 160px;
    }
    .madahi-card-title {
        max-width: 140px;
        font-size: 0.8rem;
    }
    .madahi-card-artist {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .madahi-section-modern {
        margin: 20px 0 30px;
    }
    .madahi-glass-wrapper {
        padding: 16px 12px 12px;
        border-radius: 16px;
    }
    .madahi-section-modern .section-title {
        font-size: 1rem;
    }
    .madahi-section-modern .section-title i {
        font-size: 1.1rem;
    }
    .madahi-section-modern .section-more {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .madahi-section-modern .madahi-slider {
        padding: 8px 4px 16px;
    }
    .madahi-section-modern .swiper-slide {
        width: 140px;
    }
    .madahi-card-play {
        width: 44px;
        height: 44px;
    }
    .madahi-card-play i {
        font-size: 1rem;
    }
    .madahi-card-title {
        max-width: 120px;
        font-size: 0.75rem;
    }
    .madahi-card-artist {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .madahi-glass-wrapper {
        padding: 12px 8px 8px;
        border-radius: 12px;
    }
    .madahi-section-modern .swiper-slide {
        width: 120px;
    }
    .madahi-card-play {
        width: 36px;
        height: 36px;
    }
    .madahi-card-play i {
        font-size: 0.8rem;
    }
    .madahi-card-title {
        max-width: 100px;
        font-size: 0.7rem;
    }
    .madahi-card-artist {
        font-size: 0.55rem;
    }
    .madahi-card-info-glass {
        padding: 10px 8px 8px;
    }
}