/* ==========================================================================
   커뮤니티 홈 사이드바 — N월 명예의 전당 / 이달의 신인 (레벨 시스템 개편)
   - 사용 페이지: community/index.php (우측 aside.cmty-home-sidebar 첫 번째 카드)
   - 디자인: Figma 모비고 node 465-28634 (2026-07)
   - 의존: style.css(.cmty-home-sidebar 레이아웃), Pretendard(헤더에서 로드)
   - 기존 .cmty-home-fame-* 클래스는 수정하지 않고 신규 접두사(cmty-home-honor-)로 격리
   ========================================================================== */

.cmty-home-honor {
    display: flex;
    flex-direction: column;
    letter-spacing: 0.02em;
}

/* 섹션 간 간격 (명예의 전당 ↔ 이달의 신인) */
.cmty-home-honor + .cmty-home-honor {
    margin-top: 64px;
}

/* ---- 헤더 ---- */
.cmty-home-honor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cmty-home-honor-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cmty-home-honor-title {
    margin: 0;
    font-size: 20px;
    font-weight: var(--fw-bold, 600);
    color: #292929;
    letter-spacing: 0.02em;
}

.cmty-home-honor-sort {
    font-size: 15px;
    font-weight: var(--fw-bold, 600);
    color: #292929;
}

/* ---- 순위 리스트 ---- */
.cmty-home-honor-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cmty-home-honor-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

/* 이달의 신인/명예의 전당 빈 상태 — 시안: #fafafa 박스, 중앙 정렬 안내 문구 */
.cmty-home-honor-item.empty {
    justify-content: center;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    font-size: 16px;
    font-weight: var(--fw-light, 300);
    color: #696969;
    letter-spacing: 0.02em;
}

.cmty-home-honor-rank {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 16px;
    font-weight: var(--fw-light, 300);
    color: #696969;
}

.cmty-home-honor-name {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: var(--fw-light, 300);
    color: #696969;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmty-home-honor-value {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: var(--fw-light, 300);
    color: #696969;
}

/* ---- info 아이콘 + 툴팁 (이달의 신인) ---- */
.cmty-home-honor-info {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.cmty-home-honor-info img {
    display: block;
    width: 24px;
    height: 24px;
}

.cmty-home-honor-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);   /* 아이콘 위로 노출(아래 arrow 자리 포함) */
    left: 50%;
    transform: translateX(-50%);
    display: none;
    width: max-content;
    max-width: 320px;
    padding: 12px;
    background: #292929;
    border-radius: 8px;
    font-size: 14px;
    font-weight: var(--fw-light, 300);
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: left;
    white-space: normal;
    z-index: 10001;   /* 위로 뜬 툴팁이 상위 요소에 가려지지 않도록 */
}

/* 툴팁 아래쪽 arrow(꼬리) — 아이콘을 가리키는 삼각형(시안 20x10) */
.cmty-home-honor-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #292929;
}

.cmty-home-honor-info:hover .cmty-home-honor-tooltip,
.cmty-home-honor-info:focus-visible .cmty-home-honor-tooltip {
    display: block;
}
