/* ================================================================
   update_history.css — 업데이트 히스토리 (노션 릴리즈 스타일)
   구조: 월 그룹 > 날짜 그룹(.uh-date-group) > 항목들(.uh-date-items)
   ================================================================ */

:root {
    --uh-primary:       #ff5d1a;
    --uh-primary-light: #fff5f0;
    --uh-text:          #1b1b1b;
    --uh-text-sub:      #5b5b5b;
    --uh-text-muted:    #999;
    --uh-border:        #e8e8e8;
    --uh-radius:        10px;
}

/* ── 배너 하단 필터 탭 구역 배경 ──────────────────────────── */
.pb-filter-wrap { padding: 0 !important; }

/* ── 페이지 전체 ────────────────────────────────────────────── */
.uh-page {
    min-height: 60vh;
    padding-bottom: 100px;
}

.uh-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── 카테고리 필터 ──────────────────────────────────────────── */
.uh-filter-section {
    padding: 28px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.uh-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.uh-notice-tip {
    font-size: 14px;
    color: var(--uh-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.uh-notice-tip a {
    color: var(--uh-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ── 카테고리 뱃지 ──────────────────────────────────────────── */
.uh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.uh-badge-new     { background: var(--uh-primary); color: #fff; }
.uh-badge-improve { background: var(--uh-primary-light); color: var(--uh-primary); }

/* ══════════════════════════════════════════════════════════════
   릴리즈 목록
   ══════════════════════════════════════════════════════════════ */

.uh-releases { margin-top: 36px; }

/* 월 그룹 헤더 */
.uh-month-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--uh-border);
}

.uh-month-title {
    font-family: 'Freesentation', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--uh-text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0;
}

/* ── 날짜 그룹: 좌측 날짜 고정 + 우측 항목 묶음 ─────────────── */
.uh-date-group {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--uh-border);
}

.uh-date-group:last-child { border-bottom: none; }

/* 날짜 컬럼 (날짜 그룹당 1개) */
.uh-release-date-col { padding-top: 4px; }

.uh-release-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--uh-text-muted);
    white-space: nowrap;
    line-height: 1.4;
}

.uh-release-date-day {
    font-size: 22px;
    font-weight: 800;
    color: var(--uh-text);
    font-family: 'Freesentation', sans-serif;
    display: block;
    line-height: 1.1;
    margin-bottom: 2px;
}

.uh-release-modified {
    font-size: 11px;
    color: var(--uh-text-muted);
    margin-top: 5px;
    white-space: nowrap;
}

/* 우측 항목 묶음 */
.uh-date-items { min-width: 0; }

/* 항목 간 구분선 */
.uh-item-divider {
    border: none;
    border-top: 1px dashed var(--uh-border);
    margin: 28px 0;
}

/* 항목 본문 래퍼 (카테고리 필터용 data-category 보유) */
.uh-release-body-wrap { min-width: 0; }

/* 본문 */
.uh-release-body { min-width: 0; }

.uh-release-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.uh-release-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--uh-text);
    line-height: 1.45;
    margin: 0 0 12px;
}

/* 상세 내용 (summernote HTML) */
.uh-release-desc {
    font-size: 14px;
    color: var(--uh-text-sub);
    line-height: 1.8;
    margin: 0 0 16px;
}

.uh-release-desc p  { margin: 0 0 8px; }
.uh-release-desc ul,
.uh-release-desc ol { padding-left: 20px; margin: 0 0 8px; }
.uh-release-desc li { margin-bottom: 4px; }

/* 이미지 */
.uh-release-img {
    width: 100%;
    border-radius: var(--uh-radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: #f0f0f0;
}

/* 효과 문구 */
.uh-release-effect {
    font-size: 13px;
    color: #b94000;
    background: var(--uh-primary-light);
    border-radius: 6px;
    padding: 9px 13px;
    line-height: 1.55;
    display: inline-block;
    margin-top: 4px;
}

.uh-release-effect::before {
    content: "✓ ";
    font-weight: 700;
}

/* 더보기 전 숨겨진 월 그룹 */
.uh-month-group.uh-collapsed { display: none; }

/* ── 더보기 버튼 ────────────────────────────────────────────── */
@keyframes uh-bounce-down {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

.uh-load-more {
    text-align: center;
    margin-top: 48px;
}

.uh-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 34px;
    border: 1.5px solid var(--uh-primary);
    border-radius: 30px;
    background: #fff;
    color: var(--uh-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.uh-load-more-btn svg {
    animation: uh-bounce-down 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.uh-load-more-btn:hover {
    background: var(--uh-primary);
    color: #fff;
}

.uh-load-more-btn:disabled svg {
    animation: none;
}

/* ══════════════════════════════════════════════════════════════
   반응형
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
    .uh-container { padding: 0 20px; }
}

@media (max-width: 767px) {
    .uh-container { padding: 0 16px; }

    .uh-filter-section {
        padding: 20px 0 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .uh-notice-tip { white-space: normal; }

    .uh-releases { margin-top: 24px; }

    /* 모바일: 2열 → 1열, 날짜 인라인 */
    .uh-date-group {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 22px 0;
    }

    .uh-release-date-col {
        display: flex;
        align-items: baseline;
        gap: 6px;
        padding-top: 0;
    }

    .uh-release-date-day {
        font-size: 17px;
        display: inline;
        margin-bottom: 0;
    }

    .uh-release-date { font-size: 12px; }

    .uh-release-title  { font-size: 15px; }
    .uh-release-desc   { font-size: 13px; }

    .uh-item-divider { margin: 20px 0; }

    .uh-load-more-btn {
        width: 100%;
        justify-content: center;
    }
}
