/* ========================================
   USER PROFILE — KONJ
======================================== */

.user-profile-container {
    width: min(calc(100% - 64px), 1360px);

    margin:
        28px
        auto
        100px;
}


/* ========================================
   PROFILE HEADER
======================================== */

.user-header {
    position: relative;

    width: 100%;
}

/* ========================================
   PROFILE HERO
======================================== */

.user-profile-hero {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(300px, 0.5fr)
        minmax(0, 0.66fr);

    overflow: hidden;

    border:
        1px solid
        rgba(17, 17, 17, 0.055);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.72);

    min-height: 360px;
}


/* ========================================
   BANNER
======================================== */

.user-banner-wrapper {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background: #e8e7e2;
}

.user-banner {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;
}

.user-banner-placeholder {
    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            #dddcd6,
            #efeee9
        );
}


/* subtle separation */

.user-banner-wrapper::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 1px;

    background:
        rgba(17, 17, 17, 0.055);
}


/* ========================================
   PROFILE CONTENT
======================================== */

.user-profile-content {
    min-width: 0;

    padding:
        32px
        38px
        30px;

    display: flex;
    flex-direction: column;
}


/* ========================================
   TOP ROW
======================================== */

.user-profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.user-profile-label {
    color: #9d9d98;

    font-size: 8.5px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* ========================================
   LOCATION
======================================== */

.user-location {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #8d8d88;

    font-size: 10px;
    font-weight: 500;
}

.user-location svg {
    width: 13px;
    height: 13px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ========================================
   IDENTITY
======================================== */

.user-identity {
    margin-top: 36px;

    display: flex;
    align-items: center;

    gap: 18px;
}


/* ========================================
   AVATAR
======================================== */

.user-avatar-container {
    width: 76px;
    height: 76px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 18px;

    background: #ecebe6;
}

.user-avatar {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.user-avatar-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #e1dfd9,
            #f3f1ec
        );

    color: #777;

    font-size: 23px;
    font-weight: 500;
}


/* ========================================
   NAME
======================================== */

.user-identity__copy {
    min-width: 0;
}

.user-name {
    margin: 0;

    color: #151515;

    font-size:
        clamp(
            30px,
            3vw,
            42px
        );

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.045em;
}

.user-title {
    margin:
        8px
        0
        0;

    color: #858580;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.4;
}


/* ========================================
   BIO
======================================== */

.user-description {
    max-width: 680px;

    margin-top: 27px;

    color: #63635f;

    font-size: 13px;

    line-height: 1.7;
}

.user-description > * {
    margin-top: 0;
}

.user-description > *:last-child {
    margin-bottom: 0;
}


/* ========================================
   PROFILE FOOTER
======================================== */

.user-profile-footer {
    margin-top: auto;

    padding-top: 28px;
}

.user-profile-meta {
    padding-top: 14px;

    border-top:
        1px solid
        rgba(17, 17, 17, 0.07);
}

.user-profile-meta > span {
    display: block;

    margin-bottom: 5px;

    color: #aaa9a4;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}

.user-profile-meta > strong {
    color: #363634;

    font-size: 11px;
    font-weight: 500;
}


/* ========================================
   TABS
======================================== */

.user-tabs {
    width: 100%;

    margin-top: 18px;

    display: flex;
    align-items: center;

    gap: 30px;

    padding:
        0
        4px;

    border-bottom:
        1px solid
        rgba(17, 17, 17, 0.08);
}

.tab-link {
    position: relative;

    padding:
        13px
        0
        14px;

    color: #999994;

    font-size: 11.5px;
    font-weight: 500;

    line-height: 1;

    text-decoration: none;

    transition:
        color 180ms ease;
}

.tab-link:hover {
    color: #333;
}

.tab-link::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -1px;
    left: 0;

    height: 1px;

    background: #111;

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform
        260ms
        cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-link.active {
    color: #111;
}

.tab-link.active::after {
    transform: scaleX(1);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .user-profile-hero {
        grid-template-columns:
            minmax(250px, 0.38fr)
            minmax(0, 0.62fr);

        min-height: 330px;
    }

    .user-profile-content {
        padding:
            26px
            28px;
    }

    .user-identity {
        margin-top: 28px;
    }

    .user-avatar-container {
        width: 68px;
        height: 68px;
    }

    .user-name {
        font-size: 30px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 650px) {

    .user-profile-hero {
        display: flex;
        flex-direction: column;

        min-height: 0;
    }

    .user-banner-wrapper {
        width: 100%;

        aspect-ratio: 1 / 1;

        max-height: 360px;
    }

    .user-profile-content {
        padding:
            22px
            18px
            20px;
    }

    .user-profile-top {
        align-items: flex-start;
    }

    .user-identity {
        margin-top: 25px;

        gap: 14px;
    }

    .user-avatar-container {
        width: 64px;
        height: 64px;

        border-radius: 16px;
    }

    .user-name {
        font-size: 27px;
    }

    .user-description {
        margin-top: 22px;

        font-size: 12.5px;
    }

    .user-profile-footer {
        padding-top: 23px;
    }

    .user-tabs {
        gap: 24px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .user-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-link {
        flex-shrink: 0;
    }

}




/* ========================================
   FLOATING PROFILE SURFACE
======================================== */

.user-info-wrapper {
    position: relative;
    z-index: 3;

    width: calc(100% - 48px);

    margin:
        -56px
        auto
        0;

    padding: 22px;

    display: grid;

    grid-template-columns:
        104px
        minmax(0, 1fr)
        minmax(180px, 240px);

    gap: 24px;

    align-items: center;

    border:
        1px solid
        rgba(17, 17, 17, 0.065);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.82);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 18px 50px
        rgba(17, 17, 17, 0.045);
}


/* ========================================
   AVATAR
======================================== */

.user-avatar-container {
    width: 104px;
    height: 104px;

    overflow: hidden;

    border-radius: 18px;

    background: #ecebe7;

    flex-shrink: 0;
}

.user-avatar {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 500ms
        cubic-bezier(0.22, 1, 0.36, 1);
}

.user-avatar-container:hover
.user-avatar {
    transform: scale(1.025);
}

.user-avatar-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #e4e2dc,
            #f4f2ed
        );

    color: #6f6f6b;

    font-size: 28px;
    font-weight: 500;

    letter-spacing: -0.04em;
}


/* ========================================
   DETAILS
======================================== */

.user-details {
    min-width: 0;

    padding:
        3px
        0;
}

.user-profile-label {
    display: block;

    margin-bottom: 8px;

    color: #9c9c98;

    font-size: 8.5px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* Name */

.user-name {
    margin: 0;

    color: #141414;

    font-size:
        clamp(
            30px,
            2.6vw,
            40px
        );

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


/* Profession */

.user-title {
    margin:
        8px
        0
        0;

    color: #7b7b77;

    font-size: 12.5px;
    font-weight: 500;

    line-height: 1.4;
}


/* ========================================
   BIO
======================================== */

.user-description {
    max-width: 620px;

    margin-top: 17px;

    color: #676763;

    font-size: 12.5px;
    font-weight: 400;

    line-height: 1.68;

    letter-spacing: -0.004em;
}

.user-description > * {
    margin-top: 0;
}

.user-description > p {
    margin-bottom: 8px;
}

.user-description > *:last-child {
    margin-bottom: 0;
}


/* ========================================
   META
======================================== */

.user-meta {
    align-self: stretch;

    padding-left: 22px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-left:
        1px solid
        rgba(17, 17, 17, 0.075);
}

.user-meta-label {
    display: block;

    margin-bottom: 8px;

    color: #a0a09b;

    font-size: 8.5px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.user-location {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #41413f;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.4;
}

.user-location svg {
    width: 14px;
    height: 14px;

    flex-shrink: 0;

    fill: none;

    stroke: #999993;

    stroke-width: 1.45;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ========================================
   TABS
======================================== */

.user-tabs {
    width: calc(100% - 48px);

    margin:
        18px
        auto
        0;

    padding:
        0
        4px;

    display: flex;
    align-items: center;

    gap: 30px;

    border-bottom:
        1px solid
        rgba(17, 17, 17, 0.085);
}

.tab-link {
    position: relative;

    padding:
        13px
        0
        14px;

    color: #999994;

    font-size: 11.5px;
    font-weight: 500;

    line-height: 1;

    text-decoration: none;

    transition:
        color 180ms ease;
}

.tab-link:hover {
    color: #454543;
}


/* Active indicator */

.tab-link::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -1px;
    left: 0;

    height: 1px;

    background: #171717;

    transform: scaleX(0);

    transform-origin: left center;

    transition:
        transform 280ms
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.tab-link.active {
    color: #161616;
}

.tab-link.active::after {
    transform: scaleX(1);
}


/* ========================================
   CONTENT
======================================== */

.user-content-section {
    width: calc(100% - 48px);

    margin:
        0
        auto;

    padding-top: 30px;
}


/* ========================================
   EMPTY STATE
======================================== */

.empty-state {
    min-height: 230px;

    padding:
        40px
        24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(17, 17, 17, 0.055);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.55);

    text-align: center;
}

.empty-state__label {
    display: block;

    margin-bottom: 10px;

    color: #aaa9a4;

    font-size: 8.5px;
    font-weight: 600;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.empty-state strong {
    color: #20201f;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: -0.015em;
}

.empty-state p {
    max-width: 320px;

    margin:
        6px
        0
        0;

    color: #989893;

    font-size: 11.5px;

    line-height: 1.55;
}


/* ========================================
   SMALL DESKTOP
======================================== */

@media (max-width: 1050px) {

    .user-profile-container {
        width: calc(100% - 48px);
    }

    .user-info-wrapper {
        grid-template-columns:
            94px
            minmax(0, 1fr)
            minmax(150px, 190px);

        gap: 20px;
    }

    .user-avatar-container {
        width: 94px;
        height: 94px;
    }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 820px) {

    .user-profile-container {
        width: calc(100% - 32px);

        margin-top: 20px;
    }


    /* Banner */

    .user-banner-wrapper {
        height: 215px;
    }


    /* Surface */

    .user-info-wrapper {
        width: calc(100% - 28px);

        margin-top: -44px;

        grid-template-columns:
            86px
            minmax(0, 1fr);

        gap: 18px;

        padding: 18px;
    }

    .user-avatar-container {
        width: 86px;
        height: 86px;
    }

    .user-name {
        font-size: 29px;
    }


    /* Meta becomes bottom row */

    .user-meta {
        grid-column:
            1 / -1;

        padding:
            15px
            0
            0;

        border-left: 0;

        border-top:
            1px solid
            rgba(17, 17, 17, 0.07);
    }


    /* Tabs + content */

    .user-tabs,
    .user-content-section {
        width: calc(100% - 28px);
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 560px) {

    .user-profile-container {
        width: calc(100% - 24px);

        margin:
            12px
            auto
            70px;
    }


    /* Banner */

    .user-banner-wrapper {
        height: 170px;

        border-radius: 18px;
    }


    /* Floating surface */

    .user-info-wrapper {
        width: calc(100% - 16px);

        margin-top: -28px;

        padding: 14px;

        display: grid;

        grid-template-columns:
            72px
            minmax(0, 1fr);

        gap:
            14px
            13px;

        border-radius: 18px;

        background:
            rgba(255, 255, 255, 0.9);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }


    /* Avatar */

    .user-avatar-container {
        width: 72px;
        height: 72px;

        border-radius: 16px;
    }

    .user-avatar-placeholder {
        border-radius: 16px;

        font-size: 22px;
    }


    /* Text */

    .user-details {
        align-self: center;

        padding: 0;
    }

    .user-profile-label {
        margin-bottom: 7px;

        font-size: 8px;
    }

    .user-name {
        font-size: 25px;
    }

    .user-title {
        margin-top: 6px;

        font-size: 11px;
    }


    /* Bio full width */

    .user-description {
        grid-column:
            1 / -1;

        max-width: 100%;

        margin-top: 14px;

        font-size: 12px;

        line-height: 1.62;
    }


    /* Meta */

    .user-meta {
        grid-column:
            1 / -1;

        padding-top: 13px;
    }


    /* Tabs */

    .user-tabs {
        width: calc(100% - 16px);

        margin-top: 13px;

        gap: 24px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .user-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-link {
        flex-shrink: 0;

        padding:
            12px
            0
            13px;

        font-size: 11px;
    }


    /* Content */

    .user-content-section {
        width: calc(100% - 16px);

        padding-top: 22px;
    }


    /* Empty */

    .empty-state {
        min-height: 190px;

        padding:
            28px
            18px;
    }

}
