@font-face {
    font-family: 'IranYekanX';
    src: url('./fonts/IRANYekanXVF.woff2');
}

@keyframes customZoomIn {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

[data-aos="custom-zoom-in"] {
    opacity: 0.5;
    transform: scale(0.9);
    transition-property: transform, opacity;
}

[data-aos="custom-zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
    animation: customZoomIn 0.2s ease-out forwards;
}


body {
    font-family: IranYekanX, sans-serif;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 800px;
    padding: 0 16px;
    margin: 0 auto;
}

.changelog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;

    @media (max-width: 768px) {
        margin-bottom: 80px;


        >.logo,
        >a .logo {
            width: 70px !important;
            margin-top: 30px !important;
            margin-bottom: 40px !important;
        }

        >.back-button {
            margin-bottom: 30px !important;
            font-size: 15px !important;

            >img {
                width: 15px !important;
            }
        }

        >h1 {
            font-size: 24px !important;
            margin-bottom: 10px !important;
        }

        >p {
            margin-bottom: 40px !important;
            font-size: 16px !important;
        }
    }

    >a:has(.logo) {
        text-decoration: none;
    }

    >.logo,
    >a .logo {
        width: 80px;
        margin-top: 40px;
        margin-bottom: 50px;
    }

    >.back-button {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 5px 10px;
        margin-bottom: 40px;
        background-color: transparent;
        font-family: IranYekanX, sans-serif;
        font-size: 16px;
        border: solid 1px #e9e9e9;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.2s;
        text-decoration: none;
        color: inherit;

        &:hover {
            border-color: #c2c2c2;
        }

        >img {
            width: 16px;
            transform: rotateZ(180deg);
        }
    }

    >h1 {
        margin-top: 0;
        margin-bottom: 24px;
        color: #3f4246;
        font-size: 46px;
        line-height: 1.7;
    }

    >p {
        margin-top: 0;
        margin-bottom: 60px;
        color: #acaeaf;
        font-size: 20px;
        line-height: 1.7;
    }

    >.changes {
        width: 100%;
        flex-direction: column;
        padding: 50px 40px;
        border: solid 1px #dadada;
        border-radius: 16px;
        box-sizing: border-box;

        @media (max-width: 768px) {
            padding: 30px 10px;
            border: none;
        }

        >.item {
            display: grid;
            grid-template-columns: 1fr 0.5fr 5fr;
            width: 100%;

            @media (max-width: 768px) {
                gap: 20px;

                >.date {
                    font-size: 13px !important;
                }

                >.texts {
                    >.label {
                        font-size: 12px !important;
                    }

                    >.title {
                        font-size: 18px !important;
                    }

                    >p {
                        font-size: 14px !important;
                    }

                    >ul {
                        gap: 14px !important;
                        margin-top: 2px !important;

                        >li {
                            font-size: 14px !important;
                        }
                    }
                }
            }

            >.date {
                position: sticky;
                top: 15px;
                display: flex;
                flex-direction: column;
                gap: 10px;
                height: fit-content;
                padding-bottom: 30px;
                font-size: 15px;
                line-height: 1.6;

                >.version {
                    color: #3f4246;
                    font-weight: 600;
                }

                >.date {
                    color: #acaeaf;
                }
            }

            >.line {
                position: relative;
                width: 1px;
                min-height: 100%;
                background-color: #dadada;

                >.circle {
                    position: absolute;
                    right: 45%;
                    top: -5px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 10px;
                    height: 10px;
                    border: solid 1px #dadada;
                    border-radius: 9999px;
                    transform: translateX(45%);

                    >div {
                        width: 6px;
                        height: 6px;
                        background-color: #dadada;
                        border-radius: 9999px;
                    }
                }
            }

            >.texts {
                display: flex;
                flex-direction: column;
                gap: 20px;
                padding-bottom: 60px;

                >.label {
                    width: fit-content;
                    background-color: #f5f6f6;
                    padding: 5px 10px;
                    color: #3f4246;
                    font-size: 14px;
                    font-weight: 600;
                    border-radius: 8px;
                }

                >.title {
                    font-size: 20px;
                    font-weight: 500;
                }

                >p {
                    margin: 0;
                    color: #acaeaf;
                    line-height: 1.7;
                }

                >ul {
                    display: flex;
                    flex-direction: column;
                    gap: 20px;
                    margin-top: 7px;
                    margin-bottom: 0 !important;

                    >li {
                        color: #3f4246;
                    }
                }
            }
        }
    }
}

body[data-lqd-page-color-scheme="dark"] {
    background-color: #121212;
    color: #e0e0e0;
}

body[data-lqd-page-color-scheme="dark"]::after {
    background: linear-gradient(to top, rgba(18, 18, 18, 0.8), transparent);
}

body[data-lqd-page-color-scheme="dark"] .changelog {
    >.logo,
    >a .logo {
        margin-top: 40px;
        margin-bottom: 50px;
    }

    >.back-button {
        background-color: #1e1e1e;
        border-color: #3f3f3f;
        color: #e0e0e0;
        text-decoration: none;

        &:hover {
            border-color: #5f5f5f;
        }

        >img {
            filter: invert(1);
        }
    }

    >h1 {
        color: #ffffff;
    }

    >p {
        color: #b0b0b0;
    }

    >.changes {
        border-color: #303030;

        >.item {
            >.date {
                >.version {
                    color: #ffffff;
                }

                >.date {
                    color: #b0b0b0;
                }
            }

            >.line {
                background-color: #303030;

                >.circle {
                    border-color: #303030;

                    >div {
                        background-color: #303030;
                    }
                }
            }

            >.texts {
                >.label {
                    background-color: #2a2a2a;
                    color: #ffffff;
                }

                >.title {
                    color: #ffffff;
                }

                >p {
                    color: #b0b0b0;
                }

                >ul {
                    >li {
                        color: #ffffff;
                    }
                }
            }
        }
    }
}