/**
 * Block: Changelog
 */

.surge-block-changelog {
    position: relative;
    box-sizing: border-box;
    /* Default to dark theme aesthetic from screenshot, but allow override */
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.surge-block-changelog * {
    box-sizing: border-box;
}

.surge-block-changelog .changelog-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100px;
}

/* --- Date Column --- */
.surge-block-changelog .changelog-date-col {
    width: 140px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 20px;
    padding-top: 4px; /* Align with title baseline */
}

.surge-block-changelog .changelog-date-badge {
    display: inline-block;
    background-color: #222;
    color: #888;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #333;
}

/* --- Marker Column --- */
.surge-block-changelog .changelog-marker-col {
    width: 40px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;
}

/* The vertical line */
.surge-block-changelog .changelog-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #333;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.changelog-line-progress {
    background: #b7fc38;
}

/* The dot */
.surge-block-changelog .changelog-dot {
    width: 12px;
    height: 12px;
    background-color: #333;
    border-radius: 50%;
    position: absolute;
    top: 10px; /* Adjust to align with title/date */
    z-index: 1;
    border: 2px solid #111; /* Match background to create gap effect if needed */
}

/* Active/Latest item styling (optional, can be added via class) */
.surge-block-changelog.is-active .changelog-dot {
    background-color: #b7fc38; /* Green dot for active */
}

/* --- Content Column --- */
.surge-block-changelog .changelog-content-col {
    flex-grow: 1;
    padding-bottom: 40px; /* Space between items */
    padding-left: 10px;
}

.surge-block-changelog .changelog-title {
    margin: 0 0 16px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #aaaaaa;
    line-height: 1.4;
}

.surge-block-changelog.is-active .changelog-title {
    color: #fff;;
}

.surge-block-changelog .changelog-inner-content {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
}

/* InnerBlocks spacing */
.surge-block-changelog .changelog-inner-content > * {
    margin-bottom: 1rem;
}

.surge-block-changelog .changelog-inner-content > *:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .surge-block-changelog .changelog-row {
        flex-wrap: wrap;
    }

    .surge-block-changelog .changelog-date-col {
        width: 100%;
        text-align: left;
        padding-left: 60px; /* Align with content */
        padding-bottom: 10px;
        margin-bottom: 0;
    }

    .surge-block-changelog .changelog-marker-col {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 50px; /* Fixed width for marker column on mobile */
    }
    
    .surge-block-changelog .changelog-content-col {
        width: 100%;
        padding-left: 60px; /* Clear the marker column */
    }
}