/* ========================================
   更新履歴タイムライン & 鮮度バッジ
   ======================================== */

/* --- タイムラインリスト --- */
.update-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* 左端のタイムライン縦線 */
.update-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-color: #D1D5DB;
}

/* --- 各タイムラインエントリ --- */
.update-timeline-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    position: relative;
    align-items: flex-start;
}

/* タイムラインドット */
.update-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #D1D5DB;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #D1D5DB;
    flex-shrink: 0;
    margin-top: 3px;
    z-index: 1;
}

.update-timeline-dot.dot-content {
    background-color: #065F46;
    box-shadow: 0 0 0 2px #065F46;
}

.update-timeline-dot.dot-feature {
    background-color: #1E40AF;
    box-shadow: 0 0 0 2px #1E40AF;
}

.update-timeline-dot.dot-exam {
    background-color: #92400E;
    box-shadow: 0 0 0 2px #92400E;
}

.update-timeline-dot.dot-fix {
    background-color: #374151;
    box-shadow: 0 0 0 2px #374151;
}

/* タイムラインコンテンツ */
.update-timeline-content {
    flex: 1;
    min-width: 0;
}

.update-timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.update-timeline-date {
    font-size: 0.85em;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.update-timeline-title {
    font-size: 0.95em;
    font-weight: 500;
    color: #374151;
    line-height: 1.5;
}

.update-timeline-desc {
    font-size: 0.85em;
    color: #6B7280;
    line-height: 1.5;
    margin-top: 2px;
}

/* --- タイプ別バッジ --- */
.update-type-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1.5;
}

.update-type-content {
    color: #065F46;
    background-color: #D1FAE5;
}

.update-type-feature {
    color: #1E40AF;
    background-color: #DBEAFE;
}

.update-type-exam {
    color: #92400E;
    background-color: #FFF5E6;
    border: 1px solid #dc7600;
}

.update-type-fix {
    color: #374151;
    background-color: #F3F4F6;
}

/* --- タグバッジ --- */
.update-tag {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    background-color: #dc7600;
    color: white;
    white-space: nowrap;
}

/* --- 「もっと見る」ボタン --- */
.update-expand-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    background: none;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    color: #6B7280;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-expand-btn:hover {
    border-color: #dc7600;
    color: #dc7600;
    background-color: #FFF5E6;
}

.update-expand-btn:focus {
    outline: 3px solid #dc7600;
    outline-offset: 2px;
}

/* --- 鮮度バッジ（セクション見出し用） --- */
.freshness-badge {
    display: inline-block;
    font-size: 0.55em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.5;
}

.freshness-recent {
    color: #065F46;
    background-color: #D1FAE5;
}

.freshness-moderate {
    color: #92400E;
    background-color: #FEF3C7;
}

.freshness-old {
    color: #374151;
    background-color: #F3F4F6;
}

/* --- 非表示ヘルパー --- */
.update-timeline-item.hidden {
    display: none;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .update-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .update-timeline-item {
        gap: 12px;
        padding: 10px 0;
    }

    .freshness-badge {
        font-size: 0.5em;
        padding: 1px 6px;
    }

    .update-expand-btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}
