/* Wrapper */
.ha-changelog-wrap {
    width: 100%;
}

/* Page header */
.ha-cl-header {
    text-align: center;
    margin-bottom: 40px;
}

.ha-cl-subheading {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 400;
    color: #1078ff;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.ha-cl-heading {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: #12151b;
    line-height: 1.15;
}

/* Controls bar */
.ha-cl-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

/* Filter pills */
.ha-cl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ha-cl-filter-btn {
    padding: 8px 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #394553;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.4;
}

.ha-cl-filter-btn:hover {
    border-color: #3b5bdb;
    color: #3b5bdb;
}

.ha-cl-filter-btn.active {
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: #fff;
}

/* Search */
.ha-cl-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    padding: 8px 20px;
    background: #fff;
    min-width: 220px;
}

.ha-cl-search-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

.ha-cl-search {
    border: none;
    outline: none;
    font-size: 15px;
    color: #394553;
    background: transparent;
    width: 100%;
}

.ha-cl-search::placeholder {
    color: #9ca3af;
}

/* Posts list */
.ha-changelog-v2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Single post card */
.ha-changelog-v2-post {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 354px;
    align-items: stretch;
    background: #f5f6f8;
    border-radius: 20px;
    overflow: visible;
    margin-top: 50px;
}

.ha-changelog-v2-cover {
    position: relative;
    align-self: stretch;
    min-height: 100%;
    overflow: hidden;
    margin-top: -50px;
}

.ha-changelog-v2-cover::after {
    content: none;
}

.ha-changelog-v2-cover img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.ha-changelog-v2-cover-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #dde3ec;
}

.ha-changelog-v2-cover-version {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin: 0;
    font-family: "DM Sans", "Plus Jakarta Sans", "Poppins", sans-serif;
    font-size: clamp(54px, 5.7vw, 94px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #d7e0ff;
    white-space: nowrap;
}

.ha-changelog-v2-main {
    padding: 50px 48px 46px;
}

.ha-changelog-v2-title {
    margin: 0;
    font-size: clamp(36px, 3.3vw, 56px);
    line-height: 1.14;
    color: #003077 !important;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ha-changelog-v2-date {
    margin-top: 14px;
    margin-bottom: 34px;
    font-size: 17px;
    line-height: 1.4;
    color: #5f6374;
    font-weight: 500;
}

.ha-changelog-v2-feature + .ha-changelog-v2-feature {
    margin-top: 22px;
}

.ha-changelog-v2-feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ha-changelog-v2-icon {
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ha-changelog-v2-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ha-changelog-v2-heading {
    margin: 0;
    font-size: clamp(20px, 2vw, 48px);
    line-height: 1.2;
    color: #00011b;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ha-changelog-v2-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ha-changelog-v2-item {
    position: relative;
    margin: 0;
    padding: 0 0 0 28px;
    font-size: clamp(16px, 1.08vw, 30px);
    line-height: 1.45;
    color: #4c5b76;
    font-weight: 500;
}

.ha-changelog-v2-item + .ha-changelog-v2-item {
    margin-top: 8px;
}

.ha-changelog-v2-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    background-image: var(--ha-cl-item-icon);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* No results */
.ha-cl-no-results {
    text-align: center;
    color: #9ca3af;
    font-size: 16px;
    padding: 40px 0;
}

.ha-cl-footer {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.ha-cl-see-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    min-height: 44px;
    border-radius: 8px;
    text-decoration: none;
    font-family: "DM Sans", "Plus Jakarta Sans", "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #f4fbff;
    background: linear-gradient(180deg, #3d69ef 0%, #2c56de 100%);
    box-shadow: 0 8px 18px rgba(26, 60, 160, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    border: none;
    cursor: pointer;
}

.ha-cl-see-more-btn.is-hidden {
    display: none;
}

.ha-cl-see-more-btn.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.ha-cl-see-more-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 10px 20px rgba(26, 60, 160, 0.24);
}

.ha-cl-see-more-btn:focus-visible {
    outline: 2px solid #9bb7ff;
    outline-offset: 2px;
}

.ha-cl-see-more-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive */
@media (max-width: 900px) {
    .ha-changelog-v2-post {
        grid-template-columns: 1fr;
    }

    .ha-changelog-v2-cover {
        min-height: 280px;
        order: -1;
    }

    .ha-changelog-v2-cover-version {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: clamp(44px, 12vw, 74px);
    }
}

@media (max-width: 640px) {
    .ha-changelog-v2-post {
        margin-top: 0;
        overflow: hidden;
    }

    .ha-changelog-v2-cover {
        display: none;
        margin-top: 0;
        min-height: 0;
    }

    .ha-cl-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .ha-cl-search-wrap {
        width: 100%;
    }

    .ha-changelog-v2-main {
        padding: 28px 20px 26px;
    }

    .ha-changelog-v2-title {
        letter-spacing: -0.02em;
    }

    .ha-changelog-v2-date {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .ha-cl-footer {
        margin-top: 36px;
    }

    .ha-cl-see-more-btn {
        width: 100%;
        max-width: 220px;
    }
}
