body {
    background-image: url("~/images/hero-geometric-bg3.png");
    background-size: cover;
    background-position: top;
}

.updates_wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
}

.updates {
    padding: 60px 40px 60px 40px;
    line-height: 1.7;
}

.updates-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.updates-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.updates-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* ── Roadmap ───────────────────────────────── */
.roadmap-header {
    text-align: center;
    margin-bottom: 2rem;
}

.roadmap-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.roadmap-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.roadmap {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 1.2rem 1.4rem 1.4rem;
    margin-bottom: 2.5rem;
}

.roadmap-track {
    position: relative;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2.5rem;
}

/* the rail */
.roadmap-track::before {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 4px;
    height: 2px;
    background: #e5e5e5;
}

.roadmap-item {
    position: relative;
    flex: 1;
    padding-top: 1.1rem;
    line-height: 1.35;
}

/* the dot */
.roadmap-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #cfcfcf;
    box-sizing: border-box;
}

.roadmap-item.current::before {
    background: #d50103;
    border-color: #d50103;
    box-shadow: 0 0 0 3px #fafafa, 0 0 0 4px #f6c9c9;
}

.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0.7rem 0 0 0;
}

.roadmap-list li {
    position: relative;
    padding-left: 0.9rem;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    color: #333;
}

.roadmap-list li:last-child {
    margin-bottom: 0;
}

.roadmap-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c8c8c8;
}

.roadmap-item.current .roadmap-list li::before {
    background: #d50103;
}

/* edition chip (Core / Plus) */
.roadmap-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #777;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.15rem;
    vertical-align: 1px;
    white-space: nowrap;
}

.roadmap-status {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
}

.roadmap-status.progress  { background: #e7f3ff; color: #0066cc; }
.roadmap-status.planned   { background: #f0f0f0; color: #555; }

.release {
    position: relative;
    padding: 2rem 0 2.5rem 2rem;
    border-left: 2px solid #f0f0f0;
    margin-left: 1rem;
}

.release::before {
    content: "";
    position: absolute;
    left: -7px;
    top: calc(2rem + 0.96rem);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d50103;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e5e5e5;
    transform: translateY(-50%);
    z-index: 1;
}

.release:last-child {
    border-left-color: transparent;
}

.release:last-child::after {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: calc(2rem + 0.96rem);
    background: #f0f0f0;
}

.release-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}

.release-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.release-tag {
    display: inline-block;
    align-self: center;
    background: #f0f0f0;
    color: #555;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.release-tag.latest {
    background: #d50103;
    color: #fff;
}

.release-date {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
}

.updates-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.info-card {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
}

.info-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.info-text {
    color: #555;
    font-size: 0.92rem;
    margin: 0 0 0.6rem 0;
    line-height: 1.5;
}

.info-text:last-child {
    margin-bottom: 0;
}

.code-block {
    position: relative;
    margin: 0 0 0.6rem 0;
}

.info-code {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0.7rem 2.6rem 0.7rem 0.9rem;
    margin: 0;
    overflow-x: auto;
    font-size: 0.82rem;
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
    line-height: 1.5;
}

.info-code code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
}

.copy-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    color: #666;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover {
    color: #1a1a1a;
    background: #f5f5f5;
    border-color: #d5d5d5;
}

.copy-btn .check-icon {
    display: none;
}

.copy-btn.copied {
    color: #1e7d3a;
    border-color: #b6e0c2;
    background: #e6f7ec;
}

.copy-btn.copied .copy-icon {
    display: none;
}

.copy-btn.copied .check-icon {
    display: block;
}

.release-summary {
    color: #555;
    margin: 0 0 1.2rem 0;
}

.release ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.release li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
    color: #333;
}

.release li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bbb;
}

.change-label {
    display: inline-block;
    min-width: 78px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.6rem;
    text-align: center;
    vertical-align: 1px;
}

.change-label.added    { background: #e6f7ec; color: #1e7d3a; }
.change-label.improved { background: #e7f3ff; color: #0066cc; }
.change-label.fixed    { background: #fff3cd; color: #856404; }
.change-label.changed  { background: #f3e8ff; color: #6b21a8; }
.change-label.removed  { background: #fdecec; color: #b32424; }

@media (max-width: 720px) {
    .updates {
        padding: 40px 20px;
    }
    .updates-header h1,
    .roadmap-header h1 {
        font-size: 2rem;
    }
    .updates-info {
        grid-template-columns: 1fr;
    }
    .release {
        padding-left: 1.4rem;
    }
    .roadmap-track {
        flex-direction: column;
        gap: 1.1rem;
    }
    .roadmap-track::before {
        left: 4px;
        right: auto;
        top: 6px;
        bottom: 6px;
        height: auto;
        width: 2px;
    }
    .roadmap-item {
        padding: 0 0 0 1.5rem;
    }
    .roadmap-item::before {
        top: 2px;
    }
    .change-label {
        min-width: 0;
        display: inline-block;
        margin-bottom: 0.2rem;
    }
}
