/* =========================================================
   HGOS HOME PAGE ONLY
   - 공용 CSS는 수정하지 않음
   - 헤더 폭과 본문 폭을 동일하게 맞춤
   ========================================================= */
:root{
    --home-max-width:1100px;
    --home-border:#ddd2ff;
    --home-soft:#f5f1ff;
    --home-primary:#6d00ff;
    --home-text:#211a35;
    --home-muted:#9290a5;
}

*{box-sizing:border-box}

.hgos-home{
    width:calc(100% - 40px);
    max-width:var(--home-max-width);
    margin:24px auto 56px;
    font-family:Pretendard,"Noto Sans KR",sans-serif;
    color:var(--home-text);
}

.home-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.home-card{
    min-width:0;
    min-height:350px;
    padding:28px 30px 24px;
    border:1px solid var(--home-border);
    border-radius:24px;
    background:#fff;
    box-shadow:0 12px 40px rgba(92,63,170,.05);
    display:flex;
    flex-direction:column;
}

.home-card-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding-bottom:17px;
    border-bottom:1px solid #ebe5ff;
}

.home-eyebrow{
    margin:0 0 7px;
    color:#9692ae;
    font-size:12px;
    font-weight:800;
    letter-spacing:.02em;
}

.home-title{
    margin:0;
    font-size:22px;
    line-height:1.25;
    letter-spacing:-.045em;
}

.home-link{
    flex:0 0 auto;
    padding:2px 0;
    border:0;
    background:transparent;
    color:var(--home-primary);
    font:inherit;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}

.home-card-body{
    flex:1;
    min-height:0;
    padding:20px 0;
}

.home-card-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:auto;
}

.home-card-actions.one{
    grid-template-columns:1fr;
}

.home-btn{
    min-height:46px;
    border:1px solid var(--home-border);
    border-radius:14px;
    background:#fff;
    color:#241b37;
    font:inherit;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.home-btn.primary{
    background:var(--home-soft);
    color:var(--home-primary);
}

.home-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.home-stat{
    min-width:0;
    padding:17px 8px;
    border-radius:16px;
    background:var(--home-soft);
    text-align:center;
}

.home-stat-label{
    color:var(--home-muted);
    font-size:11px;
    line-height:1.3;
}

.home-stat-value{
    margin-top:8px;
    color:var(--home-primary);
    font-size:19px;
    font-weight:900;
    line-height:1.2;
    overflow-wrap:anywhere;
}

.home-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.home-feed-item{
    padding:10px 12px;
    border:1px solid #eee9ff;
    border-radius:14px;
    background:#fff;
    cursor:pointer;
}

.home-feed-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:2px;
}

.home-feed-type{
    color:var(--home-primary);
    font-size:12px;
    font-weight:800;
}

.home-feed-date{
    color:#aaa6b7;
    font-size:11px;
}

.home-feed-title{
    color:#2c2540;
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.home-feed-text{
    margin-top:4px;
    color:#777386;
    font-size:11px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.home-master-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.home-master{
    min-width:0;
    min-height:138px;
    padding:18px 12px;
    border:1px solid #eee9ff;
    border-radius:16px;
    text-align:center;
    cursor:pointer;
}

.home-master-avatar{
    width:58px;
    height:58px;
    margin:0 auto 8px;
    border-radius:50%;
    object-fit:cover;
    background:var(--home-soft);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--home-primary);
    font-size:20px;
    font-weight:900;
}

.home-master-name{
    font-size:15px;
    font-weight:900;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.home-master-domain{
    margin-top:7px;
    color:#777386;
    font-size:12px;
    line-height:1.45;
    min-height:34px;
    overflow:hidden;
}

.home-empty,
.home-loading{
    min-height:120px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#9b97aa;
    font-size:12px;
    text-align:center;
}

.home-matching-stats{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.home-matching-stats-four{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.home-match-card{
    border:0;
    font:inherit;
    cursor:pointer;
}

.home-match-card:hover{
    transform:translateY(-1px);
}

.home-matching-stat{
    padding:15px 8px;
    border-radius:16px;
    background:var(--home-soft);
    text-align:center;
}

.home-matching-stat span{
    display:block;
    color:#9995aa;
    font-size:11px;
}

.home-matching-stat strong{
    display:block;
    margin-top:6px;
    color:var(--home-primary);
    font-size:20px;
}

.home-matching-latest{
    margin-top:15px;
    color:#817d90;
    font-size:11px;
    line-height:1.55;
    text-align:center;
}


.home-master-grid{
    transition:opacity .28s ease, transform .28s ease;
}

.home-master-grid.is-rolling{
    opacity:.28;
    transform:translateY(3px);
}

@media(min-width:761px){
    .home-btn{font-size:14px}
    .home-program-card span{font-size:12px}
    .home-feed-title{font-size:14px}
    .home-master-domain{font-size:12px}
}

@media(max-width:760px){
    .hgos-home{
        width:calc(100% - 24px);
        margin-top:16px;
    }
    .home-grid{
        grid-template-columns:1fr;
        gap:14px;
    }
    .home-card{
        min-height:0;
        padding:22px 18px 18px;
        border-radius:20px;
    }
    .home-title{font-size:20px}
}

@media(max-width:430px){
    .hgos-home{width:calc(100% - 16px)}
    .home-card{padding:18px 14px 15px}
    .home-card-head{gap:8px}
    .home-master-grid{gap:6px}
    .home-master{
        min-height:128px;
        padding:15px 8px;
    }
    .home-master-avatar{width:52px;height:52px}
    .home-master-name{font-size:14px}
    .home-master-domain{font-size:11.5px;line-height:1.4}
    .home-program-card span{font-size:12px}
    .home-feed-type{font-size:11.5px}
    .home-feed-title{font-size:13.5px}
    .home-activity-card span{font-size:12.5px}
    .home-activity-card strong{font-size:15.5px}
    .home-stat-value{font-size:17px}
    .home-matching-stats-four{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.home-program-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.home-program-card{
    min-height:92px;
    border:1px solid #e3d9ff;
    border-radius:16px;
    background:#f8f5ff;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:14px 10px;
    cursor:pointer;
    font:inherit;
    color:#24183a;
}

.home-program-card:hover{
    transform:translateY(-1px);
    border-color:#cdbbff;
}

.home-program-card strong{
    font-size:16px;
    font-weight:900;
    color:#6b00ff;
}

.home-program-card span{
    font-size:12px;
    line-height:1.45;
    color:#8a8299;
}

.home-activity-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.home-activity-card{
    min-height:82px;
    border:1px solid #e3d9ff;
    border-radius:16px;
    background:#f5f0ff;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    cursor:pointer;
    font:inherit;
}

.home-activity-card span{
    font-size:13px;
    color:#8a8299;
}

.home-activity-card strong{
    font-size:16px;
    color:#6b00ff;
    font-weight:900;
}
/* HOME V6: HOME 전용 시각 강조 - 공통 CSS 수정 없음 */
.home-program-card{background:#f7f3ff;border-color:#ddd0ff}
.home-program-icon{
    display:flex;align-items:center;justify-content:center;
    width:30px;height:30px;margin-bottom:1px;border-radius:10px;
    background:#fff;border:1px solid #eadfff;font-size:18px;line-height:1;
    box-shadow:0 3px 10px rgba(107,0,255,.06)
}
.home-feed-item{background:#fff;border-color:#e5dcfb}
.home-master{background:#fbf9ff;border-color:#e2d7fb}
.home-activity-card{background:#f7f3ff;border-color:#ddd0ff}
.home-card-actions .home-btn{background:#f2ecff;border-color:#d8c8ff;color:#3a2a50}
.home-card-actions .home-btn.primary{background:#ede4ff;border-color:#cdb8ff;color:#6b00ff}
.home-card-actions .home-btn:hover{background:#ebe2ff;border-color:#bfa5ff}
.home-community-meta{display:flex;align-items:center;gap:6px;min-width:0}
.home-new-badge{
    display:inline-flex;align-items:center;justify-content:center;
    height:17px;padding:0 6px;border-radius:999px;background:#6b00ff;color:#fff;
    font-size:9px;line-height:1;font-weight:900
}
.home-feed-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.home-feed-title-row .home-feed-title{min-width:0;flex:1}
.home-cheer{
    flex:0 0 auto;display:inline-flex;align-items:center;gap:3px;
    color:#7f7891;font-size:11px;font-weight:800;white-space:nowrap
}
.home-cheer-icon{color:#6b00ff;font-size:12px}
@media(max-width:760px){
    .home-program-icon{width:28px;height:28px;font-size:17px}
    .home-new-badge{height:16px;padding:0 5px;font-size:8.5px}
    .home-cheer{font-size:10.5px}
}
