app/(default-layout)/profile/[[...slug]]/profile.module.scss
@use '/app/scss/mixins.scss' as *;

.wrapper {
    width: 100%;
    background-color: var(--background);
    @include center-align;
}

// .squares-br {
//     position: absolute;
//     top: 0;
//     left: 0;
//     z-index: 1;
// }

.container {
    width: 100%;
    // @include center-align;
}

.profile {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
}

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

    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    background: #e9d362; /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #333333, #e9d362); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(
        to right,
        #333333,
        #e9d362
    ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.header {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 20px 40px;
    padding-top: 100px;

    overflow: hidden;

    .avatar {
        border-radius: 50%;
        border: 2px solid #cccccc88;
        object-fit: cover;
    }

    @include respond-to('tablet') {
        flex-direction: column;
        padding-top: 20px;
    }
}

.info {
    display: flex;
    flex: 1;

    @include respond-to('tablet') {
        flex-direction: column;
    }
}

.info-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    flex: 1;
    padding-bottom: 24px;
    margin-left: 12px;
    color: #fff;
    @include respond-to('tablet') {
        margin-top: 12px;
    }
}

.name {
    font-size: 2.4rem;
    font-weight: 600;
    font-family: var(--font-family);
    text-align: start;
    margin: 0;
    margin-bottom: 4px;
    @include respond-to('tablet') {
        font-size: 2rem;
    }
}

.description {
    font-size: 1.6rem;
    font-family: var(--font-family);
    text-align: start;
}

.statistics {
    margin-top: 32px;
    width: 100%;
    @include center-align;
    gap: 40px;
}

.statistic-item {
    height: 100%;
    @include center-align;
    flex-direction: column;
    height: 100px;

    .value {
        font-size: 2.4rem;
        font-weight: 600;
        font-family: var(--font-family);
        color: var(--text-color);
        margin-bottom: 8px;
    }

    .label {
        font-size: 1.6rem;
        font-weight: 400;
        font-family: var(--font-family);
        color: var(--text-color);
    }
}

.body {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin-bottom: 40px;

    @include respond-to('laptop') {
        flex-direction: column;
        align-items: center;
        padding: 0 12px;
    }
}

.content,
.introduction {
    width: 100%;
}

.content {
}

.introduction {
    max-width: 300px;
    min-width: 300px;
    background-color: transparent;
    box-shadow: unset;

    @include respond-to('laptop') {
        max-width: 500px;
    }
}

.content-wrap {
    background-color: var(--white);
    height: fit-content;
    min-height: 300px;
    border-radius: 16px;
    box-shadow:
        #00000005 0px 1px 3px 0px,
        #1b1f2326 0px 0px 0px 1px;
}

.nav {
    min-width: 200px;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    overflow-x: overlay;
    position: relative;
    height: 60px;
    border-bottom: 1px solid #d8d8d8;
}

.topic-list {
    display: flex;
    justify-content: flex-start;
    height: 100%;
    overflow-x: overlay;
    position: relative;
}

.nav-link {
    font-size: 1.6rem;
    font-weight: 600;
}

.content-list {
    width: 100%;
    height: 100%;
}

// back icon
.back-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: #fff;
    padding: 4px 12px 4px 4px;
    @include font-default;
    color: #333;
    font-weight: 500;
    border-radius: 4px;
    box-shadow:
        rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
        rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;

    transition: opacity 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    &:hover {
        opacity: 0.8;
        cursor: pointer;
    }

    @include respond-to('mobile') {
        padding: 4px;
        border-radius: 10rem;

        .back-text {
            display: none;
        }
    }
}
