
.changelog-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.changelog-header {
    text-align: center;
    margin-bottom: 50px;
}

.changelog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.changelog-header p {
    color: var(--text-muted);
}

/* Таймлайн */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(106, 90, 255, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -36px; /* Центрируем относительно линии */
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sidebar-bg);
    border: 2px solid var(--text-muted);
    transition: all 0.3s ease;
}

.timeline-item.latest .timeline-marker {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(106, 90, 255, 0.5);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

/* Заголовок версии */
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.version-tag {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-light);
}

.timeline-item.latest .version-tag {
    color: var(--primary-color);
}

.release-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Список изменений */
.changes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.change-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.change-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    padding-top: 2px;
}

/* Бейджи типов изменений */
.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;

    /* Исправления для того, чтобы текст "влезал" */
    white-space: nowrap; /* Запрещаем перенос текста на новую строку */
    flex-shrink: 0;      /* Запрещаем сжимать бейдж, если текст рядом слишком длинный */
    display: inline-block; /* Для корректного отображения размеров */
}

.badge.design { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.badge.feature { background: rgba(78, 205, 196, 0.15); color: #4ecdc4; }
.badge.fix { background: rgba(255, 159, 67, 0.15); color: #ff9f43; }
.badge.core { background: rgba(84, 160, 255, 0.15); color: #54a0ff; }
.badge.global { background: linear-gradient(135deg, rgba(106, 90, 255, 0.2), rgba(106, 90, 255, 0.1)); color: var(--primary-color); border: 1px solid rgba(106, 90, 255, 0.3); }

/* Адаптивность */
@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -27px;
        width: 12px;
        height: 12px;
    }

    .change-item {
        flex-direction: column;
        gap: 5px;
    }

    .badge {
        align-self: flex-start;
    }
}