/* =========================================================================
   home.css — 허브 홈(루트 index.html) 전용

   전제: tailwind.css → variables.css → style.css → app-nav.css → banner.css
         → live.css(헤더·상태 컴포넌트·뉴스 카드 재사용) → news.css → home.css

   2026-08-07 신설. `packages/shared/css` 전체에 `.home-` 매치 0건 확인 후 작성
   (`.player-stats` 충돌 사고 재발 방지 — TROUBLESHOOTING.md).

   대비 근거: 카드 텍스트는 #333333(12.63:1)/#666666(5.74:1) on #ffffff,
   강조는 --brand-primary #000666(17.24:1). 신호색 위 흰 텍스트는 쓰지 않는다(CLAUDE.md §2.1).
   ========================================================================= */

.home-hero {
    padding: 28px 0 8px;
}

.home-hero__title {
    margin: 0 0 6px;
    color: var(--text-strong);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

.home-hero__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
}

/* --- 섹션 --- */
.home-section {
    margin-top: 32px;
}

.home-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-section__title {
    margin: 0;
    color: var(--text-strong);
    font-size: 18px;
    font-weight: 800;
    word-break: keep-all;
}

.home-section__more {
    flex: 0 0 auto;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-section__more:hover {
    text-decoration: underline;
}

.home-section__more:focus-visible {
    outline: 2px solid var(--accent-live);
    outline-offset: 2px;
}

/* --- 퀵링크 바 -----------------------------------------------------------
   홈이 뉴스 메인이 되면서 경기·순위·이적·전술판·방송은 여기로 내려왔다.
   ⚠️ `.home-match*` 규칙은 제거됐다 — 홈의 '진행 중 경기' 블록을 없앴기 때문이다
   (실측: 낮 시간대 진행 경기가 카자흐 2부·CECAFA 등으로 채워져 첫 화면 가치가 낮았다).
   가로 스크롤을 허용한다: 하단 앱 전환 바와 달리 여기는 항목이 늘 수 있는 자리다. */
.home-quicklinks {
    display: flex;
    gap: 8px;
    margin: 4px 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.home-quicklinks::-webkit-scrollbar {
    display: none;
}

.home-quicklink {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px; /* 터치 타깃 ≥40px */
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-strong);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.home-quicklink svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.home-quicklink:hover {
    border-color: var(--brand-primary);
    background: rgba(0, 6, 102, 0.04);
}

.home-quicklink:active {
    transform: scale(0.96);
}

.home-quicklink:focus-visible {
    outline: 2px solid var(--accent-live);
    outline-offset: 2px;
}

/* --- 제작 도구 카드 --- */
.home-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 720px) {
    .home-tools {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-tool {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.home-tool:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 16px -6px rgba(0, 6, 102, 0.25);
}

.home-tool:active {
    transform: scale(0.98);
}

.home-tool:focus-visible {
    outline: 2px solid var(--accent-live);
    outline-offset: 2px;
}

.home-tool__icon {
    width: 24px;
    height: 24px;
    color: var(--brand-primary);
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
}

.home-tool__name {
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 800;
    word-break: keep-all;
}

.home-tool__desc {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    word-break: keep-all;
}

/* 방송용 도구임을 색 외 단서로 함께 표시 */
.home-tool__badge {
    align-self: flex-start;
    margin-top: 2px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fef3c7;
    color: #7c2d12; /* 8.42:1 */
    font-size: 10px;
    font-weight: 800;
}
