.profile {
    --profile-header-height: 320px;
    --avatar-size: 160px;
    --avatar-border: 6px;
    --card-bg: var(--background-900);
    --card-border: var(--transp-1);
    // --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    position: relative;
    margin-bottom: 2rem;

    @include media(mobile) {
        --profile-header-height: 300px;
        --avatar-size: 120px;
        --avatar-border: 4px;
    }

    &__banner {
        width: 100%;
        height: var(--profile-header-height);
        object-fit: cover;

        &-wrapper {
            position: relative;
            width: 100%;
            height: var(--profile-header-height);
            overflow: hidden;
            background: var(--background-900);
            border-radius: var(--border1);

            &-inner {
                position: relative;
                width: 100%;
                height: 100%;
                overflow: hidden;

                &::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: linear-gradient(to top,
                            #0000006c 10%,
                            transparent 100%);
                }
            }
        }
    }

    &__main {
        position: relative;
        margin-top: -2.3rem;
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        align-items: start;

        @include media(mobile) {
            grid-template-columns: 1fr;
            margin-top: -2rem;
        }
    }

    &__sidebar {
        // position: sticky;
        top: 140px;

        @include media(mobile) {
            position: relative;
            top: 0;
            z-index: 2;
        }
    }

    &__content-wrapper {
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    &__hero {
        background: var(--card-bg);
        border-radius: var(--border1);
        padding: 1.5rem;
        box-shadow: var(--shadow-small);
        border: 1px solid var(--card-border);
        text-align: center;
        margin-bottom: 1.5rem;

        &-avatar {
            position: relative;
            width: var(--avatar-size);
            height: var(--avatar-size);
            border-radius: 50%;
            border: var(--avatar-border) solid var(--card-bg);
            overflow: hidden;
            margin: -5rem auto .7rem;

            &::after {
                content: '';
                position: absolute;
                inset: 0;
                border: 1px solid var(--card-border);
                border-radius: 50%;
            }

            @include media(mobile) {
                margin-top: -3.5rem;
            }
        }

        &-name {
            font-size: var(--h4);
            font-weight: 600;
            line-height: 1.5;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            flex-direction: column;
            gap: .2rem;
        }

        &-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1.5rem;
            color: var(--text-400);
            font-size: var(--small);

            span {
                display: flex;
                align-items: center;
                gap: 0.2rem;
            }
        }
    }

    &__avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    &__edit-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    &__roles {
        margin-top: 1rem;

        &-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            list-style: none;
            padding: 0;
            margin: 0;
        }
    }

    &__role {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.2rem 0.8rem;
        background: var(--transp-1);
        border-radius: 25px;
        border: 1px solid var(--transp-2);
        transition: all var(--transition);

        &:hover {
            background: var(--transp-2);
        }

        &-square {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        &-name {
            font-size: var(--p-small);
            font-weight: 500;
            color: var(--text);
        }
    }

    &__status {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: var(--small);

        &--online {
            color: var(--success);

            &::before {
                content: '';
                display: block;
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: var(--success);
                box-shadow: 0 0 0 2px var(--success-light);
                top: -2px;
                position: relative;
            }
        }

        &--offline {
            color: var(--text-400);
        }
    }

    &__verified {
        color: var(--success);
        display: inline-flex;
        align-items: center;
    }

    &__socials {
        margin-top: 1rem;

        &-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5rem;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        &-item {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--primary);
            transition: all var(--transition);
            color: var(--primary-900);

            &:hover {
                transform: translateY(-2px);
                background: var(--primary-400);
            }

            &-icon {
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
    }

    &__content {
        overflow: hidden;

        .tabs-container:first-child>.tabs-nav-wrapper>.tabs-nav {
            background: var(--card-bg);
            border-radius: var(--border05);
            box-shadow: var(--shadow-small);
            border: 1px solid var(--card-border);
        }

        .tab-content {
            padding-top: 1.5rem;
        }
    }

    &__actions {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
        justify-content: center;

        .btn {
            background: var(--transp-2) !important;
            border: 1px solid var(--transp-3) !important;

            &:hover {
                background: var(--transp-4) !important;
            }
        }
    }

    &__card {
        background: var(--card-bg);
        border-radius: var(--border1);
        border: 1px solid var(--card-border);
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: var(--shadow-small);

        &-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--transp-2);

            h3 {
                margin: 0;
                display: flex;
                align-items: center;
                gap: 0.5rem;
            }
        }
    }

    &__overflow-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 100%;
    }
}