@import url("../assets/fonts/roboto/index.css");


:root {
    --color-write: #FFFFFF;
    --color-background: #2B2D31;
    --color-element: #3C4049;
    --color-button-hover: #494d5e;
    --color-row-hover: #343b4a;
    --color-red: #BE4141;
    --color-slider: #636572;
    --color-light: #949BA4;
    --color-dark: #1E1E1E;
    --color-grey-dark: #313338;
}


::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    border-radius: 1px;
    background-color: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    border-radius: 1px;
    background-color: var(--color-button-hover);
}


* {
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-style: normal;
}


body {
    height: 100dvh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    color: var(--color-write);
    background-color: var(--color-background);
    overflow: hidden;
}


header {
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--color-element), var(--color-grey-dark));
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    user-select: none;

    nav {
        width: min(1920px, 100%);
        display: flex;
        gap: 15px;
        font-size: 18px;

        a {
            font-weight: 500;
            color: var(--color-light);
            text-decoration: none;
            transition: color 0.2s;

            &.active {
                color: var(--color-write);
                pointer-events: none;
            }

            &:hover {
                color: var(--color-write);
            }
        }

        .logo {
            margin-right: 15px;
            font-weight: 300;
            color: var(--color-light);
        }
    }
}

main {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;

    .container {
        &.home {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;

            .content {
                position: absolute;
                height: 100%;
                padding: 0 80px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                background-color: var(--color-background);
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                z-index: 1;

                .logo {
                    margin-bottom: 50px;
                    user-select: none;

                    .title {
                        margin-top: -6px;
                        margin-left: -6px;
                        font-size: 100px;
                        font-weight: 500;
                    }

                    .subtitles {
                        position: relative;
                        height: 30px;
                        margin-top: -18px;
                        overflow: hidden;

                        .subtitle {
                            position: absolute;
                            top: -30px;
                            font-size: 28px;
                            font-weight: 300;
                            transition: transform 0.2s;

                            span {
                                font-weight: 500;
                            }

                            &.selected {
                                transform: translateY(30px);
                            }
                        }
                    }
                }

                .description {
                    width: 500px;
                    margin-bottom: 40px;
                    font-size: 14px;
                    line-height: 20px;
                    user-select: none;
                }

                a {
                    height: 40px;
                    padding: 0 15px;
                    margin-bottom: 30px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 14px;
                    font-weight: 500;
                    border-radius: 2px;
                    color: var(--color-write);
                    background-color: var(--color-element);
                    transition: background-color 0.2s;
                    text-decoration: none;

                    img {
                        margin-right: 10px;
                    }

                    &:hover {
                        background-color: var(--color-button-hover);
                    }  
                }
            }

            .background {
                position: absolute;
                inset: 0;
                display: flex;
                opacity: 0.35;

                div {
                    height: 100%;
                    width: 100%;
                    background-repeat: no-repeat;
                    background-position: center;
                    background-size: cover;

                    &:first-child {
                        background-image: url(/assets/images/bg-left.webp);
                    }

                    &:last-child {
                        background-image: url(/assets/images/bg-right.webp);
                    }
                }
            }
        }

        &.news,
        &.faq,
        &.tracks {
            width: 600px;
            padding: 40px 0;
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        &.news,
        &.faq {
            .section {
                .title {
                    margin-bottom: 15px;
                    font-size: 32px;
                    font-weight: 500;
                }

                .blocks {
                    display: flex;
                    flex-direction: column;
                    gap: 20px;

                    .block {
                        padding: 10px 10px;
                        background-color: var(--color-grey-dark);
                        border-radius: 2px;

                        .name {
                            margin-bottom: 8px;
                            font-size: 18px;
                            font-weight: 500;
                        }

                        .text {
                            font-size: 14px;
                            line-height: 19px;
                        }

                        .date {
                            margin-top: 10px;
                            font-size: 12px;
                            color: var(--color-light);
                        }
                    }
                }
            }
        }

        &.faq {
            a {
                color: #8697df;
                text-decoration: none;

                &:hover {
                    text-decoration: underline;
                }
            }
        }

        &.tracks {
            a {
                height: 40px;
                padding: 0 15px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
                border-radius: 2px;
                color: var(--color-write);
                background-color: var(--color-element);
                transition: background-color 0.2s;
                text-decoration: none;

                &:hover {
                    background-color: var(--color-button-hover);
                }
            }

            .list {
                .header {
                    margin-bottom: 5px;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    font-size: 16px;
                    font-weight: 500;

                    div:nth-child(2) {
                        width: 300px;
                    }
                }

                .items {
                    display: flex;
                    flex-direction: column;
                    gap: 5px;

                    .item {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        font-size: 14px;
                        background-color: var(--color-element);
                        border-radius: 2px;
                        overflow: hidden;

                        div {
                            padding: 10px;
                        }

                        div:nth-child(2) {
                            width: 300px;
                            background-color: var(--color-button-hover);
                        }
                    }
                }
            }
        }
    }
}


@media screen and (max-width: 960px) {
    header {
        height: auto;
        padding: 10px 20px;

        nav {
            flex-direction: column;
            gap: 2px;

            .logo {
                margin: 0 0 10px 0;
            }
        }
    }

    main {
        .container {
            &.home {
                .content {
                    box-shadow: none;

                    .logo {
                        margin-bottom: 30px;
                    }

                    .description {
                        width: 400px;
                        margin-bottom: 30px;
                    }
                }
                
                .background {
                    display: none;
                }
            }

            &.news,
            &.faq,
            &.tracks {
                width: 100%;
                padding: 40px 20px;
            }

            &.tracks {
                .list {
                    .header {
                        div:nth-child(2) {
                            width: 50%;
                        }
                    }

                    .items {
                        .item {
                            div:nth-child(2) {
                                width: 50%;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 640px) {
    main {
        .container {
            &.home {
                .content {
                    .logo {
                        .title {
                            font-size: 86px;
                        }

                        .subtitles {
                            .subtitle {
                                font-size: 24px;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 580px) {
    main {
        .container {
            &.home {
                .content {
                    .logo {
                        margin-bottom: 20px;

                        .title {
                            margin-left: -4px;
                            font-size: 64px;
                        }

                        .subtitles {
                            margin-top: -10px;

                            .subtitle {
                                font-size: 16px;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 560px) {
    main {
        .container {
            &.home {
                .content {
                    .description {
                        width: auto;
                        line-height: normal;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 480px) {
    main {
        .container {
            &.home {
                .content {
                    padding: 0 20px;

                    .description {
                        margin-bottom: 30px;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 400px) {
    main {
        .container {
            &.home {
                .content {
                    .logo {
                        margin-bottom: 10px;

                        .title {
                            margin-left: -3px;
                            font-size: 48px;
                        }

                        .subtitles {
                            margin-top: -6px;
                        }
                    }

                    .description {
                        margin-bottom: 20px;
                        font-size: 12px;
                    }
                }
            }
        }
    }
}