/* =========================================================
   Music FM — Community Tasks Page
========================================================= */

.mf-tasks-page{
    direction:rtl;
    padding-bottom:120px;
}

.mf-tasks-hero{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) 420px;
    gap:28px;
    align-items:center;
    min-height:360px;
    margin:24px 0;
    padding:50px 58px;
    overflow:hidden;
    border-radius:4px;
    border:1px solid rgba(20,124,255,.22);
    background:
        radial-gradient(circle at 12% 18%,rgba(89,199,255,.22),transparent 30%),
        radial-gradient(circle at 78% 18%,rgba(20,124,255,.20),transparent 36%),
        linear-gradient(135deg,#071832 0%,#082a5d 52%,#031126 100%);
    color:#fff;
    box-shadow:0 18px 46px rgba(15,35,70,.16);
}

.mf-tasks-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px),
        linear-gradient(180deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size:80px 80px;
    opacity:.16;
    pointer-events:none;
}

.mf-tasks-hero-copy,
.mf-tasks-hero-panel{
    position:relative;
    z-index:2;
}

.mf-tasks-hero-copy span,
.mf-tasks-head span,
.mf-tasks-leaders header span,
.mf-tasks-guide header span{
    width:max-content;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:0 13px;
    border-radius:4px;
    background:linear-gradient(180deg,#2d8cff 0%,#147cff 100%);
    color:#fff;
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 10px 22px rgba(20,124,255,.22);
    font-size:12px;
    line-height:1;
    font-weight:950;
}

.mf-tasks-head span,
.mf-tasks-leaders header span,
.mf-tasks-guide header span{
    box-shadow:none;
    border-color:rgba(20,124,255,.18);
}

.mf-tasks-hero h1{
    margin:18px 0 12px;
    color:#fff;
    font-size:54px;
    line-height:1.03;
    font-weight:950;
    letter-spacing:-1.2px;
}

.mf-tasks-hero p{
    max-width:760px;
    margin:0;
    color:rgba(255,255,255,.78);
    font-size:18px;
    line-height:1.75;
    font-weight:760;
}

.mf-tasks-hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:24px;
}

.mf-tasks-hero-actions a,
.mf-task-card footer a,
.mf-task-card footer button{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 16px;
    border-radius:4px;
    border:1px solid rgba(255,255,255,.16);
    background:linear-gradient(180deg,#2d8cff 0%,#147cff 100%);
    color:#fff;
    font-family:inherit;
    font-size:14px;
    font-weight:950;
    text-decoration:none;
    cursor:pointer;
    box-shadow:0 12px 24px rgba(20,124,255,.18);
}

.mf-tasks-hero-actions a:nth-child(2){
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.18);
    box-shadow:none;
}

.mf-tasks-hero-panel{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.mf-tasks-hero-panel article{
    min-height:126px;
    display:grid;
    align-content:center;
    gap:8px;
    padding:18px;
    border-radius:4px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.14);
    backdrop-filter:blur(10px);
}

.mf-tasks-hero-panel strong{
    color:#fff;
    font-size:34px;
    line-height:1;
    font-weight:950;
}

.mf-tasks-hero-panel span{
    color:rgba(255,255,255,.74);
    font-size:14px;
    font-weight:850;
}

.mf-tasks-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:22px 0;
}

.mf-tasks-stats article,
.mf-tasks-section,
.mf-tasks-leaders,
.mf-tasks-guide{
    background:#fff;
    border:1px solid #dfe7f3;
    border-radius:4px;
    box-shadow:0 10px 26px rgba(15,35,70,.055);
}

.mf-tasks-stats article{
    min-height:94px;
    display:grid;
    align-content:center;
    gap:7px;
    padding:18px;
}

.mf-tasks-stats strong{
    color:#147cff;
    font-size:30px;
    line-height:1;
    font-weight:950;
}

.mf-tasks-stats span{
    color:#111827;
    font-size:14px;
    font-weight:900;
}

.mf-tasks-section{
    margin:22px 0;
    padding:20px;
}

.mf-tasks-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
    padding-bottom:16px;
    border-bottom:1px solid #e4ebf5;
}

.mf-tasks-head h2,
.mf-tasks-leaders h2,
.mf-tasks-guide h2{
    margin:8px 0 0;
    color:#111827;
    font-size:26px;
    line-height:1.1;
    font-weight:950;
}

.mf-tasks-head p{
    max-width:560px;
    margin:0;
    color:#667085;
    font-size:14px;
    line-height:1.55;
    font-weight:750;
}

.mf-tasks-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.mf-task-card{
    display:grid;
    grid-template-columns:56px 1fr;
    gap:14px;
    min-height:210px;
    padding:18px;
    border:1px solid #e4ebf5;
    border-radius:4px;
    background:#fff;
    box-shadow:0 8px 18px rgba(15,35,70,.035);
    transition:.18s ease;
}

.mf-task-card:hover{
    transform:translateY(-2px);
    border-color:#bdd7ff;
    box-shadow:0 14px 28px rgba(15,35,70,.07);
}

.mf-task-card.is-done{
    background:#fbfdff;
}

.mf-task-icon{
    width:56px;
    height:56px;
    display:grid;
    place-items:center;
    border-radius:4px;
    color:#147cff;
    background:#eef6ff;
    border:1px solid #d8e6ff;
}

.mf-task-icon svg{
    width:31px;
    height:31px;
    display:block;
    stroke:currentColor;
    fill:none;
    stroke-width:2.05;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.mf-task-content{
    min-width:0;
    display:grid;
    grid-template-rows:auto 1fr auto auto;
    gap:10px;
}

.mf-task-content header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}

.mf-task-content h3{
    margin:0;
    color:#111827;
    font-size:20px;
    line-height:1.2;
    font-weight:950;
}

.mf-task-content header b{
    min-height:27px;
    display:inline-flex;
    align-items:center;
    padding:0 9px;
    border-radius:4px;
    background:#147cff;
    color:#fff;
    font-size:12px;
    font-weight:950;
    white-space:nowrap;
}

.mf-task-content p{
    margin:0;
    color:#667085;
    font-size:14px;
    line-height:1.55;
    font-weight:750;
}

.mf-task-progress{
    height:8px;
    overflow:hidden;
    border-radius:999px;
    background:#edf2f7;
}

.mf-task-progress span{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#147cff,#59c7ff);
}

.mf-task-card footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.mf-task-card footer small{
    color:#64748b;
    font-size:13px;
    font-weight:850;
}

.mf-task-card footer button[disabled]{
    background:#e7f7ef;
    color:#0f8b4c;
    border-color:#caefdc;
    box-shadow:none;
    cursor:default;
}

.mf-tasks-bottom{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:22px;
}

.mf-tasks-leaders,
.mf-tasks-guide{
    padding:20px;
}

.mf-tasks-leaders header,
.mf-tasks-guide header{
    margin-bottom:16px;
    padding-bottom:16px;
    border-bottom:1px solid #e4ebf5;
}

.mf-leaders-list{
    display:grid;
    gap:10px;
}

.mf-leaders-list article{
    min-height:54px;
    display:grid;
    grid-template-columns:34px 1fr auto;
    align-items:center;
    gap:12px;
    padding:10px 12px;
    border:1px solid #e4ebf5;
    border-radius:4px;
    background:#f8fbff;
}

.mf-leaders-list b{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:4px;
    background:#147cff;
    color:#fff;
    font-weight:950;
}

.mf-leaders-list span{
    color:#111827;
    font-weight:900;
}

.mf-leaders-list strong{
    color:#147cff;
    font-weight:950;
}

.mf-tasks-guide div{
    display:grid;
    gap:10px;
}

.mf-tasks-guide article{
    display:grid;
    grid-template-columns:38px 1fr;
    gap:12px;
    align-items:center;
    min-height:58px;
    padding:10px;
    border-radius:4px;
    background:#f8fbff;
    border:1px solid #e4ebf5;
}

.mf-tasks-guide b{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:4px;
    background:#eef6ff;
    color:#147cff;
    border:1px solid #d8e6ff;
    font-weight:950;
}

.mf-tasks-guide p,
.mf-tasks-empty{
    margin:0;
    color:#667085;
    font-weight:800;
    line-height:1.5;
}

.mf-tasks-empty{
    padding:20px;
    text-align:center;
}

@media(max-width:1180px){
    .mf-tasks-hero{
        grid-template-columns:1fr;
    }

    .mf-tasks-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:760px){
    .mf-tasks-hero{
        padding:30px 22px;
    }

    .mf-tasks-hero h1{
        font-size:36px;
    }

    .mf-tasks-hero p{
        font-size:15px;
    }

    .mf-tasks-hero-panel,
    .mf-tasks-stats,
    .mf-tasks-grid,
    .mf-tasks-bottom{
        grid-template-columns:1fr;
    }

    .mf-tasks-head{
        display:block;
    }

    .mf-tasks-head p{
        margin-top:9px;
    }
}

.mf-tasks-toast{position:fixed;right:24px;bottom:96px;z-index:9999999;min-height:46px;display:flex;align-items:center;padding:0 16px;border-radius:4px;background:#071832;color:#fff;font-weight:900;box-shadow:0 18px 46px rgba(7,24,50,.24);opacity:0;visibility:hidden;transform:translateY(12px);transition:.22s ease}.mf-tasks-toast.show{opacity:1;visibility:visible;transform:translateY(0)}.mf-tasks-toast.error{background:#b42318}
