/* ==========================================
   COLLECTION GOALS WORKSPACE
========================================== */

.goals-page .main-content{
    min-width:0;
}

.goals-scroll{
    padding:26px;
}

.goals-shell{
    width:100%;
    max-width:1500px;
    margin:0 auto;
}

.goals-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:26px 28px;
    border:1px solid var(--border);
    border-radius:20px;
    background:
        linear-gradient(120deg,rgba(124,92,252,.14),transparent 46%),
        var(--panel);
}

.goals-hero h2{
    margin:5px 0 7px;
    color:var(--text);
    font-size:28px;
    line-height:1.25;
}

.goals-hero p{
    margin:0;
    color:var(--text-light);
    font-size:13px;
    line-height:1.65;
}

.goals-live-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    flex-shrink:0;
    padding:9px 12px;
    border:1px solid rgba(66,211,146,.28);
    border-radius:999px;
    background:rgba(66,211,146,.08);
    color:var(--success);
    font-size:12px;
    font-weight:600;
}

/* Summary */

.goals-kpi-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:18px;
}

.goals-kpi{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
    padding:18px;
    border:1px solid var(--border);
    border-radius:16px;
    background:var(--panel);
}

.goals-kpi > i{
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    flex-shrink:0;
    border-radius:12px;
    background:rgba(124,92,252,.12);
    color:var(--primary-hover);
    font-size:15px;
}

.goals-kpi-primary > i{
    background:rgba(66,211,146,.12);
    color:var(--success);
}

.goals-kpi div{
    display:flex;
    flex-direction:column;
    min-width:0;
}

.goals-kpi span,
.goals-kpi small{
    overflow:hidden;
    color:var(--text-light);
    font-size:12px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.goals-kpi strong{
    margin:2px 0;
    color:var(--text);
    font-size:23px;
    line-height:1.2;
}

/* Priority and milestones */

.goals-feature-grid{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);
    gap:18px;
    margin-top:18px;
}

.goals-priority-panel,
.goals-milestone-panel,
.goals-library-panel{
    border:1px solid var(--border);
    border-radius:18px;
    background:var(--panel);
}

.goals-priority-panel,
.goals-milestone-panel{
    padding:22px;
}

.goals-panel-heading,
.goals-library-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
}

.goals-panel-heading h3,
.goals-library-header h3{
    margin:4px 0 0;
    color:var(--text);
    font-size:19px;
}

.goals-panel-heading > span:not(.panel-eyebrow){
    color:var(--text-light);
    font-size:12px;
}

.goals-status-pill{
    display:inline-flex;
    align-items:center;
    min-height:29px;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(124,92,252,.12);
    color:var(--primary-hover) !important;
    font-size:12px !important;
    font-weight:600;
}

.goals-status-pill.complete{
    background:rgba(66,211,146,.12);
    color:var(--success) !important;
}

.goals-status-pill.almost{
    background:rgba(244,183,64,.12);
    color:var(--warning) !important;
}

.goals-priority-body{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:24px;
    margin-top:24px;
}

.goals-priority-ring{
    --goal-progress:0%;
    width:142px;
    height:142px;
    display:grid;
    place-items:center;
    flex-shrink:0;
    border-radius:50%;
    background:conic-gradient(var(--primary) var(--goal-progress),var(--panel-light) 0);
}

.goals-priority-ring::before{
    content:"";
    position:absolute;
    width:116px;
    height:116px;
    border-radius:50%;
    background:var(--panel);
    box-shadow:inset 0 0 0 1px var(--border);
}

.goals-priority-ring{
    position:relative;
}

.goals-priority-ring > div{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.goals-priority-ring strong{
    color:var(--text);
    font-size:28px;
    line-height:1;
}

.goals-priority-ring span{
    margin-top:6px;
    color:var(--text-light);
    font-size:12px;
}

.goals-priority-copy > span{
    color:var(--primary-hover);
    font-size:12px;
    font-weight:700;
    letter-spacing:.8px;
    text-transform:uppercase;
}

.goals-priority-copy h4{
    margin:5px 0 7px;
    color:var(--text);
    font-size:22px;
}

.goals-priority-copy p{
    max-width:570px;
    margin:0;
    color:var(--text-light);
    font-size:13px;
    line-height:1.65;
}

.goals-priority-copy a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:17px;
    color:var(--text);
    font-size:13px;
    font-weight:600;
    text-decoration:none;
}

.goals-priority-copy a:hover{
    color:var(--primary-hover);
}

.goals-milestone-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:18px;
}

.goals-milestone{
    display:flex;
    align-items:center;
    gap:11px;
    padding:10px 11px;
    border:1px solid var(--border);
    border-radius:12px;
    background:rgba(255,255,255,.02);
}

.goals-milestone > span{
    width:31px;
    height:31px;
    display:grid;
    place-items:center;
    flex-shrink:0;
    border-radius:9px;
    background:rgba(255,255,255,.04);
    color:var(--text-light);
    font-size:12px;
}

.goals-milestone.reached > span{
    background:rgba(66,211,146,.12);
    color:var(--success);
}

.goals-milestone div{
    display:flex;
    flex-direction:column;
}

.goals-milestone strong{
    color:var(--text);
    font-size:12px;
}

.goals-milestone small{
    color:var(--text-light);
    font-size:12px;
}

/* Goal library */

.goals-library-panel{
    margin-top:18px;
    padding:22px;
}

.goals-library-header p{
    margin:6px 0 0;
    color:var(--text-light);
    font-size:12px;
}

.goals-filter-group{
    display:flex;
    align-items:center;
    gap:6px;
    padding:4px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--panel-light);
}

.goals-filter-group button{
    min-height:34px;
    padding:7px 11px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:var(--text-light);
    font-family:inherit;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
}

.goals-filter-group button:hover,
.goals-filter-group button.active{
    background:rgba(124,92,252,.16);
    color:var(--text);
}

.goals-card-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
    margin-top:20px;
}

.goals-set-card{
    position:relative;
    min-width:0;
    padding:17px;
    border:1px solid var(--border);
    border-radius:15px;
    background:linear-gradient(145deg,rgba(37,44,60,.88),rgba(27,32,45,.88));
    transition:border-color .2s ease,transform .2s ease;
}

.goals-set-card:hover{
    border-color:rgba(124,92,252,.58);
    transform:translateY(-2px);
}

.goals-set-card.focused{
    border-color:rgba(244,183,64,.55);
}

.goals-set-card.complete{
    border-color:rgba(66,211,146,.35);
}

.goals-set-card-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
}

.goals-set-card-header span{
    color:var(--text-light);
    font-size:12px;
    font-weight:600;
    letter-spacing:.7px;
    text-transform:uppercase;
}

.goals-set-card-header h4{
    margin:5px 0 0;
    color:var(--text);
    font-size:16px;
    line-height:1.35;
}

.goals-focus-button{
    width:35px;
    height:35px;
    display:grid;
    place-items:center;
    flex-shrink:0;
    border:1px solid var(--border);
    border-radius:10px;
    background:rgba(255,255,255,.03);
    color:var(--text-light);
    cursor:pointer;
}

.goals-focus-button:hover,
.goals-focus-button[aria-pressed="true"]{
    border-color:rgba(244,183,64,.45);
    background:rgba(244,183,64,.09);
    color:var(--warning);
}

.goals-set-status{
    display:inline-flex;
    margin-top:15px;
    padding:5px 9px;
    border-radius:999px;
    background:rgba(124,92,252,.1);
    color:var(--primary-hover);
    font-size:12px;
    font-weight:600;
}

.goals-set-progress-copy{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:17px;
}

.goals-set-progress-copy span{
    color:var(--text-light);
    font-size:12px;
}

.goals-set-progress-copy strong{
    color:var(--text);
    font-size:13px;
}

.goals-set-track{
    height:7px;
    margin-top:9px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,.07);
}

.goals-set-fill{
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,var(--primary),var(--primary-hover));
}

.goals-set-card.complete .goals-set-fill{
    background:var(--success);
}

.goals-set-footer{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid var(--border);
}

.goals-set-footer div{
    display:flex;
    flex-direction:column;
}

.goals-set-footer span{
    color:var(--text-light);
    font-size:12px;
}

.goals-set-footer strong{
    color:var(--text);
    font-size:16px;
}

.goals-set-footer a{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--text-light);
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}

.goals-set-footer a:hover{
    color:var(--primary-hover);
}

.goals-empty-state{
    min-height:180px;
    place-items:center;
    align-content:center;
    gap:7px;
    color:var(--text-light);
    text-align:center;
}

.goals-empty-state:not([hidden]){
    display:grid;
}

.goals-empty-state i{
    color:var(--success);
    font-size:28px;
}

.goals-empty-state strong{
    color:var(--text);
    font-size:14px;
}

.goals-empty-state span{
    font-size:12px;
}

/* Responsive */

@media (max-width:1250px){
    .goals-kpi-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .goals-feature-grid{
        grid-template-columns:1fr;
    }

    .goals-card-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:760px){
    .goals-scroll{
        padding:18px;
    }

    .goals-hero,
    .goals-library-header{
        align-items:flex-start;
        flex-direction:column;
    }

    .goals-kpi-grid,
    .goals-card-grid{
        grid-template-columns:1fr;
    }

    .goals-priority-body{
        grid-template-columns:1fr;
    }

    .goals-priority-ring{
        margin:0 auto;
    }

    .goals-filter-group{
        width:100%;
        overflow-x:auto;
    }

    .goals-filter-group button{
        flex:1 0 auto;
    }
}

@media (max-width:480px){
    .goals-hero,
    .goals-priority-panel,
    .goals-milestone-panel,
    .goals-library-panel{
        padding:18px;
    }

    .goals-hero h2{
        font-size:23px;
    }
}
