﻿@import '../Styles/abstracts/_colors.scss';
@import '../Styles/abstracts/_mixins.scss';
@import '../Styles/abstracts/_functions.scss';

.page-container {
    width: 100%;
    display: flex;
    overflow: hidden;
    align-items: center;
    box-sizing: border-box;
    flex-flow: column nowrap;
    justify-content: flex-start;
    padding-top: rem2($HeaderHeight);

    @include lt-lg {
        padding-top: rem2(calc($HeaderHeight + $HeaderSecondRowHeight));
    }
}

.page-section {
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
}

.page-section-content {
    gap: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    flex-flow: column nowrap;
    padding-block: rem2(80px);
    padding-inline: rem2(20px);
}

.mid-section {
    padding-block: 4rem;
    background: $bit-color-background-secondary;

    .mid-container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-flow: column nowrap;
    }
}

.page-flex-container {
    gap: 1rem;
    width: 100%;
    display: flex;
    margin-bottom: 6rem;
    flex-direction: row;
    box-sizing: border-box;

    @include lt-lg {
        flex-direction: column;
    }
}

.page-content {
    width: 100%;
    display: flex;
    max-width: 1200px;
    padding-inline: 1rem;
    flex-flow: column nowrap;
}

.page-content-container {
    margin: 0;
    flex-direction: row;
    box-sizing: border-box;

    &:last-child {
        width: 30%;

        @include lt-lg {
            width: unset;
        }
    }
}

.template-img {
    width: 100%;
    display: none;
    border: 1px solid $bit-color-border-secondary;
}

.bit-platform-dark-theme {
    .dark-image {
        display: unset;
    }
}

.bit-platform-light-theme {
    .light-image {
        display: unset;
    }
}

.primary-btn {
    border: 0;
    outline: 0;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    position: relative;
    align-items: center;
    font-size: rem2(16px);
    min-width: rem2(64px);
    display: inline-flex;
    text-decoration: none;
    justify-content: center;
    border-radius: rem2(4px);
    margin-bottom: rem2(8px);
    padding: rem2(12px) rem2(16px);
    color: $White;
    background-color: $B6Color;

    &:hover {
        background-color: #0052cc;
    }
}

.secondary-btn {
    outline: 0;
    width: 100%;
    color: #1976d2;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    position: relative;
    align-items: center;
    display: inline-flex;
    font-size: rem2(16px);
    min-width: rem2(64px);
    text-decoration: none;
    box-sizing: border-box;
    border-radius: rem2(4px);
    margin-bottom: rem2(8px);
    justify-content: center;
    background-color: $White;
    padding: rem2(12px) rem2(16px);
    border: rem2(1px) solid #bdbdbd;

    &.disabled {
        color: gray;
    }

    &:hover {
        background-color: #ccc;
    }
}

.btn-img {
    width: rem2(18px);
    height: rem2(18px);
    margin-right: rem2(8px);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.google-play {
    background-image: url('/images/google-play.svg');
}

.windows {
    background-image: url('/images/windows.svg');
}

.apple-store {
    background-image: url('/images/apple-app-store.svg');
}

.nuget {
    background-image: url('/images/nuget.svg');
}

.figma {
    background-image: url('/images/figma.svg');
}

.github {
    background-image: url('/images/github.svg');
}

::deep a {
    color: $bit-color-primary;
}

.video-container {
    width: 100%;
    display: flex;
    justify-content: center;

    .video-wrapper {
        width: 100%;
        max-width: 800px;
        position: relative;
    }

    video {
        width: 100%;
    }
}

.section-title-line {
    height: 2px;
    flex-grow: 1;
    margin-top: 6px;
    background-image: linear-gradient(351deg, transparent 20%, #8c85ff 100%);

    &.boilerplate {
        width: 350px;

        @include lt-md {
            width: 250px;
        }
    }

    &.platform {
        width: 500px;

        @include lt-md {
            width: 400px;
        }
    }

    &.blazorui {
        width: 250px;

        @include lt-md {
            width: 200px;
        }
    }
}

.products-container {
    line-height: 2.5em;
    margin-bottom: 2em;

    span {
        display: block;
        min-width: 5em;
        font-weight: bold;
    }

    a {
        margin: 0.5em;
        border: 1px solid;
        border-radius: 0.5em;
        padding: 0.25em 0.5em;
        text-decoration: none;
        color: $bit-color-primary-dark;
        border-color: $bit-color-primary-dark;
        background-color: rgb(150 150 250 / 0.05);
    }
}

.highlight-1 {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(351deg, #31b3ec 23%, #524add 87%);
}