/* =========================================================
   STACKCREATE TECHNOLOGIES
   CHANGE LOG
   PREMIUM RESPONSIVE DESIGN
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.changelog-page {
    background: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
}


/* =========================================================
   HERO
   ========================================================= */

.changelog-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 24px 78px;
    background:
        radial-gradient(
            circle at 15% 35%,
            rgba(51, 146, 255, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(30, 107, 255, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #ffffff 55%,
            #f5f9ff 100%
        );
    border-bottom: 1px solid #e8eef7;
}

.changelog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        linear-gradient(
            rgba(51, 146, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(51, 146, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
}

.changelog-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -220px;
    border-radius: 50%;
    background: rgba(51, 146, 255, 0.07);
    filter: blur(10px);
    pointer-events: none;
}

.changelog-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.changelog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 13px;

    border: 1px solid rgba(51, 146, 255, 0.16);
    border-radius: 999px;

    background: rgba(51, 146, 255, 0.07);
    color: #2678d9;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;

    box-shadow:
        0 5px 18px rgba(51, 146, 255, 0.06);
}

.changelog-eyebrow i {
    font-size: 12px;
}

.changelog-hero h1 {
    margin: 20px 0 15px;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -1.8px;
    font-weight: 850;

    color: #0f172a;
}

.changelog-hero p {
    max-width: 680px;
    margin: 0 auto;

    color: #64748b;

    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   MAIN SECTION
   ========================================================= */

.changelog-section {
    position: relative;
    padding: 70px 24px 100px;
    background: #f8fafc;
}

.changelog-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.changelog-toolbar {
    position: relative;
    z-index: 10;

    display: grid;
    grid-template-columns: minmax(260px, 1fr) 210px 210px;

    gap: 12px;

    margin-bottom: 48px;
    padding: 12px;

    background: rgba(255, 255, 255, 0.92);

    border: 1px solid #e4eaf2;
    border-radius: 16px;

    box-shadow:
        0 14px 40px rgba(15, 23, 42, 0.06);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.changelog-search,
.changelog-filter {
    position: relative;
}

.changelog-search i,
.changelog-filter > i {
    position: absolute;
    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;
    font-size: 14px;

    pointer-events: none;
    z-index: 2;
}

.changelog-search input,
.changelog-filter select {
    width: 100%;
    height: 48px;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    background: #ffffff;
    color: #0f172a;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.changelog-search input {
    padding: 0 16px 0 43px;
}

.changelog-filter select {
    appearance: none;
    -webkit-appearance: none;

    padding: 0 38px 0 42px;

    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 20px,
        calc(100% - 12px) 20px;
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
}

.changelog-search input::placeholder {
    color: #a0aec0;
}

.changelog-search input:focus,
.changelog-filter select:focus {
    border-color: rgba(51, 146, 255, 0.55);

    box-shadow:
        0 0 0 4px rgba(51, 146, 255, 0.08);
}

.changelog-filter select:hover,
.changelog-search input:hover {
    border-color: #cbd5e1;
}


/* =========================================================
   RESULTS COUNT
   ========================================================= */

.changelog-results {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

#resultsCount {
    color: #64748b;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.changelog-timeline {
    position: relative;

    padding-left: 42px;
}

.changelog-timeline::before {
    content: "";

    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            #dbe4ef 5%,
            #dbe4ef 95%,
            transparent
        );
}


/* =========================================================
   ENTRY
   ========================================================= */

.changelog-entry {
    position: relative;
    margin-bottom: 42px;
}

.changelog-entry:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TIMELINE DOT
   ========================================================= */

.changelog-entry::before {
    content: "";

    position: absolute;

    left: -40px;
    top: 31px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #3392ff;

    border: 4px solid #f8fafc;

    box-shadow:
        0 0 0 2px rgba(51, 146, 255, 0.20),
        0 4px 12px rgba(51, 146, 255, 0.18);

    z-index: 2;
}


/* =========================================================
   DATE
   ========================================================= */

.changelog-date {
    margin-bottom: 10px;

    color: #64748b;

    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.35px;
}


/* =========================================================
   CARD
   ========================================================= */

.changelog-card {
    position: relative;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 20px;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.045);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.changelog-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background:
        linear-gradient(
            to bottom,
            #3392ff,
            #60a5fa
        );

    opacity: 0;

    transition: opacity 0.3s ease;
}

.changelog-card:hover {
    transform: translateY(-3px);

    border-color: rgba(51, 146, 255, 0.22);

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.09);
}

.changelog-card:hover::before {
    opacity: 1;
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.changelog-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 24px 25px 21px;

    border-bottom: 1px solid #f0f3f7;
}

.changelog-product {
    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;
}


/* =========================================================
   PRODUCT LOGO
   ========================================================= */

.changelog-product-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    flex-shrink: 0;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #edf5ff
        );

    border: 1px solid #e1ebf8;

    color: #3392ff;

    font-size: 18px;

    overflow: hidden;

    box-shadow:
        0 5px 15px rgba(51, 146, 255, 0.07);
}

.changelog-product-icon img {
    width: 100%;
    height: 100%;

    padding: 7px;

    object-fit: contain;

    display: block;

    border-radius: inherit;
}

.changelog-product-info {
    min-width: 0;
}

.changelog-product-info h2 {
    margin: 0 0 4px;

    color: #0f172a;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;

    letter-spacing: -0.25px;
}

.changelog-product-info span {
    display: block;

    color: #94a3b8;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   VERSION
   ========================================================= */

.changelog-version {
    flex-shrink: 0;

    padding: 7px 11px;

    border-radius: 8px;

    background: #f1f5f9;

    border: 1px solid #e5eaf0;

    color: #475569;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.25px;

    white-space: nowrap;
}


/* =========================================================
   CARD BODY
   ========================================================= */

.changelog-card-body {
    padding: 22px 25px 26px;
}

.changelog-summary {
    margin: 0 0 23px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   CHANGE GROUP
   ========================================================= */

.change-group {
    margin-top: 20px;
}

.change-group:first-of-type {
    margin-top: 0;
}

.change-group-title {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.2px;
}

.change-group-title i {
    font-size: 11px;
}


/* =========================================================
   CHANGE LIST
   ========================================================= */

.change-list {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.change-list li {
    position: relative;

    padding-left: 19px;

    color: #475569;

    font-size: 13px;
    line-height: 1.65;
}

.change-list li::before {
    content: "";

    position: absolute;

    left: 3px;
    top: 9px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: currentColor;

    opacity: 0.55;
}


/* =========================================================
   CHANGE TYPES
   ========================================================= */

.change-group-title.new {
    color: #15803d;
}

.change-group-title.improved {
    color: #2563eb;
}

.change-group-title.fixed {
    color: #d97706;
}

.change-group-title.security {
    color: #7c3aed;
}

.change-group-title.performance {
    color: #0891b2;
}

.change-group-title.removed {
    color: #dc2626;
}

.change-group-title.breaking {
    color: #b91c1c;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.changelog-empty {
    display: none;

    padding: 70px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e5eaf1;
    border-radius: 20px;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.04);
}

.changelog-empty.active {
    display: block;
}

.changelog-empty i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    border-radius: 16px;

    background: #f1f6fd;

    color: #3392ff;

    font-size: 20px;
}

.changelog-empty h3 {
    margin: 0 0 8px;

    color: #0f172a;

    font-size: 18px;
    font-weight: 800;
}

.changelog-empty p {
    margin: 0;

    color: #94a3b8;

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   DARK MODE
   ========================================================= */

.dark-mode .changelog-page {
    background: #0f172a;
    color: #f8fafc;
}

.dark-mode .changelog-hero {
    background:
        radial-gradient(
            circle at 15% 35%,
            rgba(59, 130, 246, 0.13),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(96, 165, 250, 0.07),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0b1120 0%,
            #0f172a 55%,
            #111c31 100%
        );

    border-bottom-color: rgba(148, 163, 184, 0.10);
}

.dark-mode .changelog-hero::before {
    background-image:
        linear-gradient(
            rgba(96, 165, 250, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(96, 165, 250, 0.025) 1px,
            transparent 1px
        );
}

.dark-mode .changelog-eyebrow {
    background: rgba(96, 165, 250, 0.08);

    border-color: rgba(96, 165, 250, 0.18);

    color: #60a5fa;
}

.dark-mode .changelog-hero h1 {
    color: #f8fafc;
}

.dark-mode .changelog-hero p {
    color: #94a3b8;
}

.dark-mode .changelog-section {
    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(59, 130, 246, 0.045),
            transparent 30%
        ),
        #0f172a;
}

.dark-mode .changelog-toolbar {
    background: rgba(15, 23, 42, 0.88);

    border-color: rgba(148, 163, 184, 0.12);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.22);
}

.dark-mode .changelog-search input,
.dark-mode .changelog-filter select {
    background: #111c2f;

    border-color: rgba(148, 163, 184, 0.14);

    color: #e2e8f0;
}

.dark-mode .changelog-search input::placeholder {
    color: #64748b;
}

.dark-mode .changelog-search i,
.dark-mode .changelog-filter > i {
    color: #64748b;
}

.dark-mode .changelog-search input:focus,
.dark-mode .changelog-filter select:focus {
    border-color: rgba(96, 165, 250, 0.45);

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.08);
}

.dark-mode #resultsCount {
    color: #64748b;
}

.dark-mode .changelog-timeline::before {
    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(148, 163, 184, 0.18) 5%,
            rgba(148, 163, 184, 0.18) 95%,
            transparent
        );
}

.dark-mode .changelog-entry::before {
    background: #60a5fa;

    border-color: #0f172a;

    box-shadow:
        0 0 0 2px rgba(96, 165, 250, 0.20),
        0 4px 14px rgba(59, 130, 246, 0.16);
}

.dark-mode .changelog-date {
    color: #64748b;
}

.dark-mode .changelog-card {
    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.96),
            rgba(15, 23, 42, 0.98)
        );

    border-color: rgba(148, 163, 184, 0.12);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.22);
}

.dark-mode .changelog-card:hover {
    border-color: rgba(96, 165, 250, 0.24);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.32);
}

.dark-mode .changelog-card-header {
    border-bottom-color: rgba(148, 163, 184, 0.10);
}

.dark-mode .changelog-product-icon {
    background:
        linear-gradient(
            145deg,
            rgba(59, 130, 246, 0.12),
            rgba(30, 41, 59, 0.75)
        );

    border-color: rgba(96, 165, 250, 0.14);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18);
}

.dark-mode .changelog-product-info h2 {
    color: #f8fafc;
}

.dark-mode .changelog-product-info span {
    color: #64748b;
}

.dark-mode .changelog-version {
    background: rgba(148, 163, 184, 0.08);

    border-color: rgba(148, 163, 184, 0.12);

    color: #cbd5e1;
}

.dark-mode .changelog-summary {
    color: #94a3b8;
}

.dark-mode .change-list li {
    color: #94a3b8;
}

.dark-mode .changelog-empty {
    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.96),
            rgba(15, 23, 42, 0.98)
        );

    border-color: rgba(148, 163, 184, 0.12);
}

.dark-mode .changelog-empty i {
    background: rgba(59, 130, 246, 0.10);

    color: #60a5fa;
}

.dark-mode .changelog-empty h3 {
    color: #f8fafc;
}

.dark-mode .changelog-empty p {
    color: #64748b;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 900px) {

    .changelog-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .changelog-search {
        grid-column: 1 / -1;
    }

    .changelog-hero {
        padding: 70px 24px 65px;
    }

    .changelog-section {
        padding-top: 55px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 600px) {

    .changelog-hero {
        padding: 55px 18px 52px;
    }

    .changelog-hero h1 {
        margin-top: 17px;

        font-size: 36px;
        letter-spacing: -1px;
    }

    .changelog-hero p {
        font-size: 14px;
        line-height: 1.75;
    }

    .changelog-section {
        padding: 42px 15px 70px;
    }

    .changelog-container {
        width: 100%;
    }

    .changelog-toolbar {
        grid-template-columns: 1fr;

        gap: 9px;

        margin-bottom: 35px;
        padding: 10px;

        border-radius: 14px;
    }

    .changelog-search {
        grid-column: auto;
    }

    .changelog-search input,
    .changelog-filter select {
        height: 46px;
    }

    .changelog-timeline {
        padding-left: 28px;
    }

    .changelog-timeline::before {
        left: 5px;
    }

    .changelog-entry::before {
        left: -29px;

        width: 10px;
        height: 10px;

        border-width: 3px;
    }

    .changelog-entry {
        margin-bottom: 32px;
    }

    .changelog-date {
        font-size: 11px;
    }

    .changelog-card {
        border-radius: 16px;
    }

    .changelog-card-header {
        align-items: flex-start;

        padding: 19px 18px 17px;

        gap: 12px;
    }

    .changelog-product {
        gap: 11px;
    }

    .changelog-product-icon {
        width: 43px;
        height: 43px;

        border-radius: 11px;
    }

    .changelog-product-icon img {
        padding: 6px;
    }

    .changelog-product-info h2 {
        font-size: 16px;
    }

    .changelog-product-info span {
        font-size: 11px;
    }

    .changelog-version {
        padding: 6px 8px;

        font-size: 10px;
    }

    .changelog-card-body {
        padding: 18px 18px 21px;
    }

    .changelog-summary {
        margin-bottom: 20px;

        font-size: 13px;
        line-height: 1.7;
    }

    .change-group {
        margin-top: 18px;
    }

    .change-group-title {
        font-size: 11px;
    }

    .change-list li {
        padding-left: 17px;

        font-size: 12px;
        line-height: 1.6;
    }

    .changelog-empty {
        padding: 55px 18px;
        border-radius: 16px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 380px) {

    .changelog-hero h1 {
        font-size: 32px;
    }

    .changelog-card-header {
        flex-direction: column;
    }

    .changelog-version {
        align-self: flex-start;
    }

    .changelog-product-icon {
        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .changelog-card,
    .changelog-search input,
    .changelog-filter select {
        transition: none;
    }

    .changelog-card:hover {
        transform: none;
    }
}




.changelog-view-more {
    display: flex;
    justify-content: center;

    margin-top: 42px;
}


#viewMoreChangelog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-width: 145px;
    height: 46px;

    padding: 0 20px;

    border: 1px solid #3392ff;
    border-radius: 11px;

    background: #3392ff;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 7px 20px rgba(51, 146, 255, 0.20);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

#viewMoreChangelog i {
    font-size: 11px;

    transition:
        transform 0.2s ease;
}

#viewMoreChangelog:hover {
    transform: translateY(-2px);

    background: #287fdc;

    box-shadow:
        0 11px 26px rgba(51, 146, 255, 0.28);
}

#viewMoreChangelog:hover i {
    transform: translateY(3px);
}

#viewMoreChangelog:active {
    transform: translateY(0);
}


/* Dark Mode */

.dark-mode #viewMoreChangelog {
    background: #3392ff;
    border-color: #3392ff;
    color: #ffffff;

    box-shadow:
        0 7px 22px rgba(51, 146, 255, 0.22);
}

.dark-mode #viewMoreChangelog:hover {
    background: #287fdc;
}


/* Mobile */

@media screen and (max-width: 600px) {

    .changelog-view-more {
        margin-top: 32px;
    }

    #viewMoreChangelog {
        width: 100%;
        max-width: 180px;
        height: 44px;
    }
}



.changelog-search {
    position: relative;
}

.changelog-search input {
    padding-right: 43px;
}

#clearChangelogSearch {
    position: absolute;
    right: 10px;
    top: 50%;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: #94a3b8;

    font-size: 12px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-50%);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

#clearChangelogSearch.active {
    opacity: 1;
    visibility: visible;
}

#clearChangelogSearch:hover {
    background: #f1f5f9;
    color: #475569;
}

.dark-mode #clearChangelogSearch {
    color: #64748b;
}

.dark-mode #clearChangelogSearch:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #ffffff;
}