/* ============================================
   Version Changelog UI — Cyberpunk Timeline Style
   ============================================ */

.version-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    position: relative;
    z-index: 1;
}

/* フィルターコントロールバー */
.version-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(13, 2, 33, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
    backdrop-filter: blur(10px);
}

.version-stats {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-cyan, #b0faff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.version-filter-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: var(--font-display, sans-serif);
    cursor: pointer;
    transition: all 0.25s ease;
}

.version-filter-btn:hover {
    border-color: #00ffff;
    color: #fff;
    background: rgba(0, 255, 255, 0.1);
}

.version-filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.25), rgba(0, 255, 178, 0.25));
    border-color: #00ffff;
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
}

/* タイムライン構造 */
.timeline-wrapper {
    position: relative;
    padding-left: 36px;
}

/* タイムラインの縦光線 */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 20px;
    left: 11px;
    width: 2px;
    background: linear-gradient(180deg, #00ffff 0%, #ff00ff 50%, rgba(0, 255, 255, 0.2) 100%);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 各リリースアイテム */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* タイムラインのノード（丸い光る点） */
.timeline-node {
    position: absolute;
    left: -36px;
    top: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d0221;
    border: 2px solid #00ffff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s;
}

.timeline-node::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffff;
}

/* 最新リリースのノード（パルス点滅） */
.timeline-item.is-latest .timeline-node {
    border-color: #ff0055;
    box-shadow: 0 0 16px rgba(255, 0, 85, 0.8);
}

.timeline-item.is-latest .timeline-node::after {
    background: #ff0055;
    box-shadow: 0 0 8px #ff0055;
    animation: nodePulse 1.6s infinite;
}

@keyframes nodePulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* リリースカード本体 */
.timeline-card {
    background: rgba(13, 2, 33, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.timeline-card:hover {
    transform: translateX(4px);
    border-color: #00ffff;
    box-shadow: 0 10px 35px rgba(0, 255, 255, 0.2);
}

/* 最新リリースのカードスタイル */
.timeline-item.is-latest .timeline-card {
    border-color: rgba(255, 0, 85, 0.4);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.15);
}

.timeline-item.is-latest .timeline-card:hover {
    border-color: #ff0055;
    box-shadow: 0 10px 40px rgba(255, 0, 85, 0.25);
}

/* カードヘッダー */
.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.timeline-ver-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-version {
    font-family: var(--font-display, monospace);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.08em;
}

.timeline-badge-latest {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.3), rgba(255, 100, 0, 0.3));
    border: 1px solid #ff0055;
    color: #ff5588;
    font-family: var(--font-display, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.timeline-date {
    font-family: monospace;
    font-size: 0.88rem;
    color: var(--text-muted, rgba(176, 250, 255, 0.6));
    display: flex;
    align-items: center;
    gap: 6px;
}

/* リリースタイトル */
.timeline-release-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ffff;
    margin: 0 0 16px 0;
    letter-spacing: 0.04em;
}

.timeline-item.is-latest .timeline-release-title {
    color: #ff88aa;
}

/* 変更内容リスト */
.timeline-changes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-change-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

/* カテゴリタグバッジ */
.tag-badge {
    flex-shrink: 0;
    font-family: var(--font-display, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.tag-badge.tag-new {
    background: rgba(0, 255, 178, 0.15);
    border: 1px solid #00ffb2;
    color: #00ffb2;
}

.tag-badge.tag-update {
    background: rgba(0, 191, 255, 0.15);
    border: 1px solid #00bfff;
    color: #00bfff;
}

.tag-badge.tag-fix {
    background: rgba(255, 0, 85, 0.15);
    border: 1px solid #ff0055;
    color: #ff5588;
}

.tag-badge.tag-other {
    background: rgba(255, 180, 0, 0.15);
    border: 1px solid #ffb400;
    color: #ffb400;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .timeline-wrapper {
        padding-left: 28px;
    }
    .timeline-node {
        left: -28px;
        width: 20px;
        height: 20px;
    }
    .timeline-wrapper::before {
        left: 9px;
    }
    .timeline-card {
        padding: 16px;
    }
    .timeline-version {
        font-size: 1.15rem;
    }
    .version-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}
