/*بـسـم الله الـرحـمـان الـرحـیـم*/








/* =====================================================
   WEEKLY CHALLENGE
===================================================== */

.weekly-challenge {

    width: 100%;
    min-width: 0;

    padding: 26px;








    position: relative;

    overflow: hidden;

    direction: rtl;

    color: #fff;
}


/* نور سبز */

.weekly-challenge::before {

    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -100px;
    top: -130px;

    border-radius: 50%;

    background: #22c55e;

    opacity: .12;

    filter: blur(80px);

    pointer-events: none;
}


/* نور پایین */

.weekly-challenge::after {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    left: -100px;
    bottom: -120px;

    border-radius: 50%;

    background: #16a34a;

    opacity: .08;

    filter: blur(80px);

    pointer-events: none;
}


/* =====================================================
   HEADER
===================================================== */

.challenge-header {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


.challenge-title {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}


.challenge-icon {

    width: 52px;
    height: 52px;

    min-width: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        rgba(34,197,94,.13);

    border:
        1px solid
        rgba(34,197,94,.22);

    font-size: 25px;

    box-shadow:
        0 0 25px
        rgba(34,197,94,.08);
}


.challenge-label {

    display: block;

    color: #22c55e;

    font-size: .72rem;

    margin-bottom: 3px;

    font-weight: 700;
}


.challenge-title h2 {

    margin: 0;

    color: #fff;

    font-size: 1.25rem;

    font-weight: 800;
}


/* وضعیت */

.challenge-status {

    flex-shrink: 0;

    padding:
        7px 13px;

    border-radius: 50px;

    background:
        rgba(34,197,94,.10);

    border:
        1px solid
        rgba(34,197,94,.20);

    color:
        #4ade80;

    font-size: .72rem;

    white-space: nowrap;
}


/* =====================================================
   CHALLENGE TEXT
===================================================== */

.challenge-content {

    position: relative;

    z-index: 2;

    width: 100%;

    padding: 4px;
}


.challenge-text {

    position: relative;

    overflow: hidden;

    padding:
        28px
        32px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #16a34a,
            #22c55e
        );

    box-shadow:
        0 15px 35px
        rgba(34,197,94,.18);
}


.challenge-text::after {

    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    left: -50px;
    bottom: -90px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.10);
}


.challenge-text p {

    position: relative;

    z-index: 2;

    margin: 0;

    padding-right: 20px;

    color: #021b0b;

    font-size: 1.05rem;

    font-weight: 800;

    line-height: 2;

}


.challenge-quote {

    position: absolute;

    top: 5px;

    right: 12px;

    color:
        rgba(0,0,0,.15);

    font-size: 55px;

    line-height: 1;
}


.challenge-goal {

    position: relative;

    z-index: 2;

    display: inline-flex;

    margin-top: 14px;

    padding:
        7px 12px;

    border-radius: 50px;

    background:
        rgba(0,0,0,.12);

    color:
        #062610;

    font-size: .72rem;

    font-weight: 700;
}


/* =====================================================
   USERS
===================================================== */

.challenge-users {

    position: relative;

    z-index: 2;

    margin-top: 28px;
}


.users-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 14px;
}


.users-header > div {

    display: flex;

    align-items: center;

    gap: 10px;
}


.users-header span {

    color:
        #94a3b8;

    font-size: .85rem;
}


.users-header strong {

    color:
        #22c55e;

    font-size: .75rem;
}


.users-count {

    color:
        #64748b !important;

    font-size: .75rem !important;
}


/* =====================================================
   USERS LIST
===================================================== */

.users-list {

    display: flex;

    flex-direction: column;

    gap: 9px;

    max-height: 310px;

    overflow-y: auto;

    padding-left: 4px;
}


/* scrollbar */

.users-list::-webkit-scrollbar {

    width: 5px;
}


.users-list::-webkit-scrollbar-track {

    background:
        transparent;
}


.users-list::-webkit-scrollbar-thumb {

    background:
        #1e293b;

    border-radius: 20px;
}


.users-list::-webkit-scrollbar-thumb:hover {

    background:
        #22c55e;
}


/* =====================================================
   USER
===================================================== */

.challenge-user {

    width: 100%;

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 13px;

    padding:
        11px 13px;

    border-radius: 15px;

    background:
        rgba(255,255,255,.035);

    border:
        1px solid
        rgba(255,255,255,.045);

    transition:
        .3s ease;
}


.challenge-user:hover {

    transform:
        translateX(-4px);

    background:
        rgba(34,197,94,.07);

    border-color:
        rgba(34,197,94,.18);
}


/* =====================================================
   AVATAR
===================================================== */

.user-avatar {

    position: relative;

    width: 45px;
    height: 45px;

    min-width: 45px;

    padding: 2px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #16a34a
        );
}


.user-avatar img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    border:
        2px solid
        #07111d;
}


/* =====================================================
   USER INFO
===================================================== */

.user-info {

    min-width: 0;

    flex: 1;
}


.user-info strong {

    display: block;

    color: #fff;

    font-size: .85rem;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.user-info span {

    display: block;

    margin-top: 3px;

    color:
        #22c55e;

    font-size: .68rem;
}


/* =====================================================
   RANK
===================================================== */

.user-rank {

    width: 32px;
    height: 32px;

    min-width: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        #0f1d2b;

    color:
        #94a3b8;

    font-size: .7rem;

    font-weight: 800;
}


.challenge-user:first-child .user-rank {

    background:
        rgba(245,158,11,.12);

    color:
        #f59e0b;
}


.challenge-user:nth-child(2) .user-rank {

    background:
        rgba(148,163,184,.12);

    color:
        #cbd5e1;
}


.challenge-user:nth-child(3) .user-rank {

    background:
        rgba(180,83,9,.12);

    color:
        #fbbf24;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .weekly-challenge {

        padding: 18px;

        border-radius: 21px;
    }


    .challenge-header {

        align-items: flex-start;
    }


    .challenge-icon {

        width: 45px;
        height: 45px;

        min-width: 45px;

        border-radius: 13px;

        font-size: 21px;
    }


    .challenge-title h2 {

        font-size: 1.05rem;
    }


    .challenge-label {

        font-size: .65rem;
    }


    .challenge-status {

        padding:
            5px 9px;

        font-size: .62rem;
    }


    .challenge-text {

        padding:
            22px 18px;
    }


    .challenge-text p {

        padding-right: 10px;

        font-size: .88rem;

        line-height: 2;
    }


    .challenge-goal {

        font-size: .65rem;
    }


    .challenge-user {

        padding:
            10px;
    }


    .user-avatar {

        width: 40px;
        height: 40px;

        min-width: 40px;
    }


    .user-info strong {

        font-size: .78rem;
    }


    .user-info span {

        font-size: .62rem;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .weekly-challenge {

        padding: 14px;
    }


    .challenge-status {

        display: none;
    }


    .challenge-text p {

        font-size: .82rem;
    }


    .users-header span {

        font-size: .75rem;
    }

}