/* Changelog page – timeline design */

.changelog-page {
    min-height: 100vh;
    padding: 7rem 0 4rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 255, 102, 0.06) 0%, transparent 50%),
        var(--black);
}

.changelog-container {
    max-width: 960px;
}

/* Header */
.changelog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.changelog-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(0, 255, 102, 0.1);
    border-radius: 16px;
    margin-bottom: 1rem;
}

.changelog-icon {
    width: 28px;
    height: 28px;
    color: var(--matrix-green);
}

.changelog-title {
    font-family: 'Bebas Neue', var(--font);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.changelog-subtitle {
    font-size: 1.15rem;
    color: var(--gray-light);
}

/* Status messages */
.changelog-status {
    text-align: center;
    color: var(--gray-light);
    padding: 2rem 0;
    font-size: 1rem;
}

.changelog-error {
    color: #ef4444;
}

/* Timeline */
.changelog-timeline {
    position: relative;
    padding: 1rem 0 2rem;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(to bottom, var(--matrix-green), var(--gray-dark) 60%, transparent);
}

/* Single entry row */
.changelog-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: normal;
    margin-bottom: 3rem;
}

/* Alternate sides */
.changelog-entry:nth-child(odd) {
    flex-direction: row-reverse;
}

/* Timeline dot */
.changelog-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--charcoal);
    border: 1px solid var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    flex-shrink: 0;
}

.changelog-dot svg {
    width: 18px;
    height: 18px;
    color: var(--matrix-green);
}

/* Card */
.changelog-card {
    width: calc(50% - 3rem);
    background: var(--charcoal);
    border: 1px solid var(--gray-dark);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: border-color 0.25s ease;
}

.changelog-card:hover {
    border-color: rgba(0, 255, 102, 0.4);
}

/* Even entries – card on left */
.changelog-entry:nth-child(even) .changelog-card {
    margin-right: auto;
}

/* Odd entries – card on right */
.changelog-entry:nth-child(odd) .changelog-card {
    margin-left: auto;
}

/* Card header */
.changelog-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.changelog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.changelog-version {
    color: var(--matrix-green);
    font-weight: 700;
    font-size: 1.15rem;
}

.changelog-type {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--gray-dark);
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.changelog-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gray-light);
    font-size: 0.85rem;
}

.changelog-date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Changes list */
.changelog-changes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.changelog-change {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.changelog-badge {
    flex-shrink: 0;
    margin-top: 2px;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid;
    white-space: nowrap;
}

.changelog-badge-nyt {
    background: rgba(0, 255, 102, 0.1);
    color: #00ff66;
    border-color: rgba(0, 255, 102, 0.25);
}

.changelog-badge-forbedring {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.25);
}

.changelog-badge-fix {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}

.changelog-badge-fjernet {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.25);
}

.changelog-change-text {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* Mobile */
@media (max-width: 768px) {
    .changelog-timeline::before {
        left: 20px;
    }

    .changelog-entry,
    .changelog-entry:nth-child(odd) {
        flex-direction: row;
    }

    .changelog-dot {
        left: 20px;
        width: 32px;
        height: 32px;
    }

    .changelog-dot svg {
        width: 14px;
        height: 14px;
    }

    .changelog-card {
        width: calc(100% - 3.5rem);
        margin-left: 3.5rem !important;
        margin-right: 0 !important;
    }

    .changelog-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .changelog-cta {
        padding: 2rem 1.5rem;
    }
}
