/* ========================================
   Changelog - Timeline Design
   ======================================== */

.changelog-subtitle {
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Timeline container */
.changelog-timeline {
    position: relative;
    padding-left: 24px;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4a90d9, #a0c4f0 50%, #ddd);
    border-radius: 1px;
}

/* Release block */
.changelog-release {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #f8f9fb;
    border: 1px solid #e2e6ed;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.changelog-release:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Timeline dot */
.changelog-release::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    background: #4a90d9;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #4a90d9;
    z-index: 1;
}

/* Release header */
.changelog-release-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.changelog-version {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    background: #e8f0fe;
    padding: 2px 12px;
    border-radius: 4px;
}

.changelog-date {
    font-size: 0.85rem;
    color: #8899aa;
    font-weight: 500;
}

/* Summary */
.changelog-summary {
    font-size: 0.95rem;
    color: #5a6a7a;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8ecf0;
}

/* Change items */
.changelog-changes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.changelog-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
}

/* Badges */
.changelog-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    min-width: 90px;
    justify-content: center;
}

.changelog-badge i {
    font-size: 0.65rem;
}

.changelog-badge--added {
    background: #e6f9e6;
    color: #1a7a1a;
    border: 1px solid #b8e6b8;
}

.changelog-badge--changed {
    background: #e6f0ff;
    color: #1a5aa0;
    border: 1px solid #b8d4f0;
}

.changelog-badge--removed {
    background: #fde8e8;
    color: #a01a1a;
    border: 1px solid #f0b8b8;
}

.changelog-badge--fixed {
    background: #fff3e0;
    color: #a05a1a;
    border: 1px solid #f0d8b8;
}

.changelog-badge--deprecated {
    background: #f5f0e0;
    color: #7a6a1a;
    border: 1px solid #e0d8a8;
}

.changelog-text {
    font-size: 0.92rem;
    color: #3a4a5a;
    line-height: 1.5;
    padding-top: 2px;
}

/* ========================================
   Dark Mode
   ======================================== */
.dark-mode .changelog-subtitle {
    color: #8899aa;
}

.dark-mode .changelog-timeline::before {
    background: linear-gradient(to bottom, #4a7ab8, #3a5a80 50%, #2a3a50);
}

.dark-mode .changelog-release {
    background: #1e2433;
    border-color: #2d3548;
}

.dark-mode .changelog-release:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode .changelog-release::before {
    background: #5a9ae0;
    border-color: #1a1f2e;
    box-shadow: 0 0 0 2px #5a9ae0;
}

.dark-mode .changelog-version {
    color: #e0e8f4;
    background: #283050;
}

.dark-mode .changelog-date {
    color: #6a7a8a;
}

.dark-mode .changelog-summary {
    color: #8899aa;
    border-bottom-color: #2d3548;
}

.dark-mode .changelog-text {
    color: #c0c8d8;
}

/* Dark badges */
.dark-mode .changelog-badge--added {
    background: #1a2e1a;
    color: #6ae06a;
    border-color: #2a4a2a;
}

.dark-mode .changelog-badge--changed {
    background: #1a2540;
    color: #6aafe0;
    border-color: #2a3a5a;
}

.dark-mode .changelog-badge--removed {
    background: #2e1a1a;
    color: #f08080;
    border-color: #4a2a2a;
}

.dark-mode .changelog-badge--fixed {
    background: #2e2518;
    color: #e0a060;
    border-color: #4a3a2a;
}

.dark-mode .changelog-badge--deprecated {
    background: #2a2818;
    color: #d0c060;
    border-color: #4a4428;
}