/**
 * Custom Styles for Subscription Details - YITH Membership
 * این فایل استایل‌های سفارشی برای بخش جزئیات اشتراک است
 */

/* Custom Styles for Subscription Details - High Specificity Override */
#yith-wcmbs-my-account-membership-plans .yith-wcmbs-custom-card.yith-wcmbs-membership-details,
.woocommerce .yith-wcmbs-custom-card.yith-wcmbs-membership-details,
.yith-wcmbs-my-account-membership-container .yith-wcmbs-custom-card.yith-wcmbs-membership-details {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 25px !important;
    padding: 30px !important;
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    font-family: sans, sans-serif !important;
    animation: yith-fade-in-up 0.6s ease-out forwards;
    margin: 0 !important;
    border: none !important;
}




@keyframes yith-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yith-wcmbs-my-account-membership-container .yith-wcmbs-custom-card .yith-wcmbs-membership-detail,
.yith-wcmbs-custom-card .yith-wcmbs-membership-detail:nth-child(n) {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: transparent !important;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    border-radius: 12px !important;
    flex-shrink: 0;
    color: #0284c7 !important;
    transition: transform 0.3s ease;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail:hover .yith-wcmbs-membership-detail__icon {
    transform: scale(1.1) rotate(5deg);
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail__icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    /* RTL support */
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail__title {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail__value {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    line-height: 1.2 !important;
}

/* Status Badge Styles */
.yith-wcmbs-custom-card .yith-wcmbs-membership-detail--status .yith-wcmbs-membership-detail__value {
    display: inline-flex !important;
    align-items: center;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    font-size: 0.85rem !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    text-transform: capitalize;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail--status--active .yith-wcmbs-membership-detail__icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    color: #16a34a !important;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail--status--active .yith-wcmbs-membership-detail__value {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail--status--expiring .yith-wcmbs-membership-detail__icon {
    background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%) !important;
    color: #ca8a04 !important;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail--status--expiring .yith-wcmbs-membership-detail__value {
    background: #fef08a !important;
    color: #854d0e !important;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail--status--cancelled .yith-wcmbs-membership-detail__icon,
.yith-wcmbs-custom-card .yith-wcmbs-membership-detail--status--expired .yith-wcmbs-membership-detail__icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #dc2626 !important;
}

.yith-wcmbs-custom-card .yith-wcmbs-membership-detail--status--cancelled .yith-wcmbs-membership-detail__value,
.yith-wcmbs-custom-card .yith-wcmbs-membership-detail--status--expired .yith-wcmbs-membership-detail__value {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

/* Responsive Adjustments */
@media only screen and (max-width: 600px) {
    .yith-wcmbs-custom-card.yith-wcmbs-membership-details {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
        gap: 15px !important;
    }
}