/* =========================================================
   SUPORLY PROFILE
========================================================= */


/* =========================================================
   PROFILE MAIN
========================================================= */

.profile-main {

    width: min(
        1400px,
        calc(100% - 48px)
    );

    margin: 0 auto;

    padding: 70px 0 90px;

}


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

.profile-hero {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 42px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow:
        0 18px 50px var(--shadow);

}


.profile-identity {

    display: flex;

    align-items: center;

    gap: 28px;

    min-width: 0;

}


.profile-avatar-wrapper {

    flex-shrink: 0;

}


.profile-avatar {

    width: 128px;

    height: 128px;

    object-fit: cover;

    border-radius: 28px;

    border: 1px solid var(--border);

    box-shadow:
        0 12px 30px var(--shadow);

}


.profile-info {

    min-width: 0;

}


.profile-name-row {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

}

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

.profile-name-container {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


.profile-name-container h1 {

    margin: 0;

    color: var(--text);

    font-size: 38px;

    line-height: 1.1;

    overflow-wrap: anywhere;

}


.profile-username {

    display: block;

    margin-top: 6px;

    color: var(--muted);

    font-size: 15px;

    font-weight: 600;

    line-height: 1.3;

}


.profile-name-row h1 {

    margin: 0;

    font-size: 38px;

    line-height: 1.1;

    color: var(--text);

}


.profile-badge {

    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    border-radius: 999px;

    background: var(--primary);

    color: white;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .04em;

}


.profile-bio {

    max-width: 700px;

    margin: 14px 0 18px;

    color: var(--info);

    font-size: 16px;

    line-height: 1.65;

}


.profile-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 22px;

    color: var(--info);

    font-size: 14px;

}


.profile-meta strong {

    margin-left: 5px;

    color: var(--text);

}


/* =========================================================
   PROFILE ACTIONS
========================================================= */

.profile-actions {

    flex-shrink: 0;

}


.profile-action {

    border: 0;

    padding: 12px 18px;

    border-radius: 10px;

    font: inherit;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform var(--transition),
        filter var(--transition);

}


.profile-action:hover {

    transform: translateY(-2px);

    filter: brightness(1.08);

}


.profile-action.secondary {

    background: var(--background);

    color: var(--text);

    border: 1px solid var(--border);

}


/* =========================================================
   PROFILE STATISTICS
========================================================= */

.profile-stats {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    margin-top: 24px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

}


.profile-stat {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 120px;

    padding: 24px;

    border-right: 1px solid var(--border);

}


.profile-stat:last-child {

    border-right: 0;

}


.profile-stat-value {

    color: var(--text);

    font-size: 30px;

    font-weight: 800;

    line-height: 1;

}


.profile-stat-label {

    margin-top: 9px;

    color: var(--info);

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: .08em;

    font-weight: 700;

}


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

.profile-content {

    display: grid;

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

    gap: 24px;

    margin-top: 24px;

}


.profile-column,
.profile-sidebar {

    display: flex;

    flex-direction: column;

    gap: 24px;

}


/* =========================================================
   PROFILE PANEL
========================================================= */

.profile-panel {

    padding: 30px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow:
        0 12px 35px var(--shadow);

}


.profile-panel-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;

}


.profile-panel h2 {

    margin: 5px 0 0;

    color: var(--text);

    font-size: 22px;

}


.profile-panel-link {

    padding: 7px 0;

    border: 0;

    background: transparent;

    color: var(--primary);

    font: inherit;

    font-weight: 700;

    cursor: pointer;

}


/* =========================================================
   PROFILE POSTS
========================================================= */

.profile-post-list {

    display: flex;

    flex-direction: column;

}


.profile-post {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 20px 0;

    border-bottom: 1px solid var(--border);

}


.profile-post:first-child {

    padding-top: 0;

}


.profile-post:last-child {

    padding-bottom: 0;

    border-bottom: 0;

}


.profile-post-main {

    min-width: 0;

}


.profile-post-category {

    display: inline-block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;

}


.profile-post h3 {

    margin: 0;

    color: var(--text);

    font-size: 17px;

    line-height: 1.4;

}


.profile-post-time {

    display: block;

    margin-top: 7px;

    color: var(--info);

    font-size: 13px;

}


.profile-post-stats {

    display: flex;

    flex-shrink: 0;

    gap: 16px;

    color: var(--info);

    font-size: 13px;

}


/* =========================================================
   PROFILE COMMENTS
========================================================= */

.profile-comment-list {

    display: flex;

    flex-direction: column;

    gap: 18px;

}


.profile-comment {

    display: flex;

    gap: 15px;

    padding: 18px;

    background: var(--background);

    border: 1px solid var(--border);

    border-radius: 12px;

}


.profile-comment-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 36px;

    height: 36px;

    border-radius: 10px;

    background: var(--surface);

    color: var(--primary);

    font-size: 24px;

    font-weight: 800;

}


.profile-comment p {

    margin: 0;

    color: var(--text);

    line-height: 1.55;

}


.profile-comment span {

    display: block;

    margin-top: 8px;

    color: var(--info);

    font-size: 12px;

    line-height: 1.5;

}


.profile-comment strong {

    color: var(--text);

}


/* =========================================================
   ABOUT
========================================================= */

.profile-about {

    display: flex;

    flex-direction: column;

    margin-top: 22px;

}


.profile-about-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 13px 0;

    border-bottom: 1px solid var(--border);

    color: var(--info);

    font-size: 14px;

}


.profile-about-row:first-child {

    padding-top: 0;

}


.profile-about-row:last-child {

    padding-bottom: 0;

    border-bottom: 0;

}


.profile-about-row strong {

    color: var(--text);

}


/* =========================================================
   CATEGORIES
========================================================= */

.profile-category-list {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;

}


.profile-category {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 11px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: var(--background);

    color: var(--text);

    font-size: 13px;

    font-weight: 600;

}


/* =========================================================
   ACHIEVEMENTS
========================================================= */

.profile-achievements {

    display: flex;

    flex-direction: column;

    gap: 14px;

    margin-top: 20px;

}


.profile-achievement {

    display: flex;

    align-items: center;

    gap: 13px;

}


.achievement-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 40px;

    height: 40px;

    border-radius: 11px;

    background: var(--background);

    border: 1px solid var(--border);

    color: var(--primary);

    font-size: 18px;

}


.profile-achievement strong {

    display: block;

    color: var(--text);

    font-size: 14px;

}


.profile-achievement span {

    display: block;

    margin-top: 3px;

    color: var(--info);

    font-size: 12px;

    line-height: 1.4;

}


/* =========================================================
   EMPTY STATES
========================================================= */

.profile-post-list:empty::before,
.profile-comment-list:empty::before,
.profile-category-list:empty::before,
.profile-achievements:empty::before {

    content:
        "Nothing here yet.";

    display: block;

    padding: 25px 0;

    color: var(--info);

    font-size: 14px;

}


/* =========================================================
   PROFILE BADGES
========================================================= */

.profile-display-name-row {

    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 0;

}


.profile-display-name-row h1 {

    margin: 0;

    color: var(--text);

    font-size: 38px;

    line-height: 1.1;

    overflow-wrap: anywhere;

}


/* =========================================================
   VERIFIED BADGE
========================================================= */

.profile-verified-badge {

    display: block;

    flex-shrink: 0;

    width: 33px;

    height: 33px;

    object-fit: contain;

}


.profile-verified-badge[hidden] {

    display: none;

}


/* =========================================================
   MODERATOR BADGE
========================================================= */

.profile-mod-badge {

    display: block;

    flex-shrink: 0;

    width: 33px;

    height: 33px;

    object-fit: contain;

}


.profile-mod-badge[hidden] {

    display: none;

}

/* =========================================================
   WARNING BADGE
========================================================= */

.profile-warning-badge-wrapper {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

}


.profile-warning-badge {

    width: 33px;

    height: 33px;

    object-fit: contain;

    cursor: help;

}


/* =========================================================
   WARNING TOOLTIP
========================================================= */

.profile-warning-tooltip {

    position: absolute;

    left: 50%;

    bottom:
        calc(100% + 9px);

    transform:
        translateX(-50%)
        translateY(4px);

    width:
        max-content;

    min-width: 150px;

    padding:
        9px 11px;

    background:
        #211a08;

    border:
        1px solid
        rgba(245, 158, 11, .22);

    border-radius: 8px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, .25);

    color:
        #d8c99f;

    font-size: 11px;

    line-height: 1.4;

    text-align: center;

    pointer-events: none;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .15s ease,
        transform .15s ease,
        visibility .15s ease;

    z-index: 20;

}


.profile-warning-tooltip::after {

    content: "";

    position: absolute;

    top: 100%;

    left: 50%;

    transform:
        translateX(-50%);

    border:
        5px solid transparent;

    border-top-color:
        rgba(245, 158, 11, .22);

}


.profile-warning-tooltip span {

    display: block;

    color:
        #fbbf24;

    font-weight: 700;

}


.profile-warning-tooltip strong {

    display: block;

    margin-top: 2px;

    color:
        #d8c99f;

    font-weight: 500;

}


.profile-warning-badge-wrapper:hover
.profile-warning-tooltip {

    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .profile-content {

        grid-template-columns: 1fr;

    }


    .profile-sidebar {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        align-items: start;

    }

}


@media (max-width: 750px) {

    .profile-main {

        width: min(
            100% - 28px,
            1400px
        );

        padding-top: 35px;

    }


    .profile-hero {

        flex-direction: column;

        align-items: flex-start;

        padding: 28px;

    }


    .profile-actions {

        width: 100%;

    }


    .profile-action {

        width: 100%;

    }


    .profile-stats {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .profile-stat:nth-child(2) {

        border-right: 0;

    }


    .profile-stat:nth-child(-n + 2) {

        border-bottom: 1px solid var(--border);

    }


    .profile-sidebar {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 550px) {

    .profile-identity {

        flex-direction: column;

        align-items: flex-start;

    }


    .profile-avatar {

        width: 100px;

        height: 100px;

        border-radius: 22px;

    }


    .profile-name-container h1 {

        font-size: 30px;

    }


    .profile-verified-badge {

        width: 21px;

        height: 21px;

    }


    .profile-username {

        font-size: 14px;

    }



    .profile-meta {

        flex-direction: column;

        gap: 7px;

    }


    .profile-panel {

        padding: 22px;

    }


    .profile-post {

        align-items: flex-start;

        flex-direction: column;

        gap: 12px;

    }


    .profile-post-stats {

        width: 100%;

    }

}