/* =========================================================
   WWR / COMMUNITY POSTBIT
========================================================= */


.post.classic.wwr-community-post {
    position: relative;
    display: block;

    width: 100%;
    min-width: 0;
    margin-bottom: 22px;
    padding: 0;

    box-sizing: border-box;

    border: 1px solid var(--wwr-border);
    border-radius: 0;

    background: var(--wwr-mainback);
    color: var(--wwr-post);
}


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

.post.classic.wwr-community-post
.wwr-post-identity.wwr-community-identity {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;
    min-height: 150px;

    margin: 0;
    padding: 30px 32px;

    box-sizing: border-box;

    border: 0;
    border-bottom: 1px solid var(--wwr-border);
    border-radius: 0;

    background: var(--wwr-mainback);

    overflow: hidden;
}


/* =========================================================
   PINTEREST / MONOCHROME
========================================================= */

.post.classic.wwr-community-post
.wwr-post-header-pinterest.wwr-community-pinterest {
    position: absolute;
    z-index: 0;

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

    width: min(60%, 640px);
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;
    pointer-events: none;

    opacity: 0.85;

    filter:
        grayscale(1)
        saturate(0)
        brightness(0.75)
        contrast(1.1);

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 15%,
        black 75%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 15%,
        black 75%
    );
}


/* =========================================================
   INWARD STONE GLOW
   FROM UPPER RIGHT CORNER
========================================================= */

.post.classic.wwr-community-post
.wwr-community-identity::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse 65% 160% at 100% 0%,

            color-mix(
                in srgb,
                var(--wwr-group, var(--wwr-acc)) 15%,
                transparent
            ) 0%,

            color-mix(
                in srgb,
                var(--wwr-group, var(--wwr-acc)) 7%,
                transparent
            ) 42%,

            transparent 80%
        );
}


/* =========================================================
   PARTIAL STONE BORDER
   TWO LINES / ONE PSEUDO ELEMENT
========================================================= */

.post.classic.wwr-community-post
.wwr-community-identity::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 3;

    pointer-events: none;

    background:
        linear-gradient(
            to right,
            transparent,
            var(--wwr-group, var(--wwr-acc))
        )
        right top / 200px 1px no-repeat,

        linear-gradient(
            to bottom,
            var(--wwr-group, var(--wwr-acc)),
            transparent
        )
        right top / 1px 115px no-repeat;
}


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

.post.classic.wwr-community-post
.wwr-community-identity-text {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    min-width: 0;

    opacity: 1;
}

.post.classic.wwr-community-post
.wwr-community-identity .wwr-post-name {
    margin: 0;
    padding: 0;

    font-family: var(--wwr-title);
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 400;
    line-height: 1.1;

    text-transform: uppercase;
    opacity: 1;
}

.post.classic.wwr-community-post
.wwr-community-identity .wwr-post-name a {
    color: var(--wwr-group, var(--wwr-acc));

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;

    text-transform: inherit;
    text-decoration: none;

    opacity: 1;
}

.post.classic.wwr-community-post
.wwr-community-identity .wwr-post-name a:hover {
    color: var(--wwr-post);
}


/* =========================================================
   PLAYER / PRONOUNS
========================================================= */

.wwr-community-post .wwr-community-playerinfo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px 18px;

    margin-top: 12px;

    color: var(--wwr-mid);
    font-size: 11px;
    line-height: 1.6;
}

.wwr-community-post
.wwr-community-playerinfo span + span {
    padding-left: 18px;
    border-left: 1px solid var(--wwr-border);
}


/* =========================================================
   MAIN POST LAYOUT
========================================================= */

.post.classic.wwr-community-post
.wwr-post-layout.wwr-community-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 205px;

    align-items: stretch;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   LEFT / POST CONTENT
========================================================= */

.post.classic.wwr-community-post
.post_content.wwr-community-content {
    float: none;
    display: flex;
    flex-direction: column;

    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 260px;

    margin: 0;
    box-sizing: border-box;

    background: transparent;
}


/* Preserve the original WWR post header and body */

.post.classic.wwr-community-post .wwr-post-head,
.post.classic.wwr-community-post .wwr-post-body,
.post.classic.wwr-community-post .wwr-post-meta {
    min-width: 0;
    box-sizing: border-box;
}

.post.classic.wwr-community-post .wwr-post-body {
    overflow-wrap: anywhere;
}

.post.classic.wwr-community-post .wwr-post-meta {
    margin-top: auto;
}


/* =========================================================
   RIGHT / ICON SIDEBAR
========================================================= */

.post.classic.wwr-community-post
.post_author.wwr-community-author {
    float: none;

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

    width: auto;
    max-width: none;
    min-width: 0;

    margin: 0;
    padding: 20px;

    box-sizing: border-box;

    border: 0;
    border-left: 1px solid var(--wwr-border);
    border-radius: 0;

    background: var(--wwr-mainback);
}


/* =========================================================
   UPLOADED ICON / 150 x 150
========================================================= */

.post.classic.wwr-community-post .wwr-community-icon {
    display: block;
    flex: 0 0 auto;

    width: 150px;
    height: 150px;
    max-width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    border: 1px solid var(--wwr-border);
    border-radius: 0;

    background: var(--wwr-mainback);
    overflow: hidden;
}

.post.classic.wwr-community-post .wwr-community-icon img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    object-fit: cover;
    object-position: center;
}


/* ICON FALLBACK */

.wwr-community-post .wwr-community-icon-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    color: var(--wwr-mid);

    font-family: var(--wwr-title);
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
}


/* =========================================================
   LINKED ACCOUNTS
========================================================= */

.post.classic.wwr-community-post
.wwr-community-author .wwr-post-linked {
    width: 100%;
    min-width: 0;

    margin-top: 15px;

    text-align: center;
    overflow-wrap: anywhere;
}

.post.classic.wwr-community-post
.wwr-community-author .wwr-post-linked:empty {
    display: none;
}


/* =========================================================
   ORIGINAL WWR POST CONTROLS
========================================================= */

.post.classic.wwr-community-post
.post_controls.wwr-post-controls {
    clear: both;

    width: 100%;
    min-width: 0;

    margin: 0;
    box-sizing: border-box;
}


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

@media (max-width: 800px) {

    .post.classic.wwr-community-post
    .wwr-post-layout.wwr-community-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .post.classic.wwr-community-post
    .post_author.wwr-community-author {
        order: -1;

        flex-direction: row;
        align-items: center;

        gap: 20px;
        padding: 18px;

        border-left: 0;
        border-bottom: 1px solid var(--wwr-border);
    }

    .post.classic.wwr-community-post .wwr-community-icon {
        width: 85px;
        height: 85px;

        flex: 0 0 85px;
    }

    .post.classic.wwr-community-post
    .wwr-community-author .wwr-post-linked {
        margin-top: 0;
        text-align: left;
    }

    .post.classic.wwr-community-post
    .post_content.wwr-community-content {
        min-height: 0;
    }

    .post.classic.wwr-community-post
    .wwr-post-identity.wwr-community-identity {
        min-height: 115px;
        padding: 24px;
    }

}


/* =========================================================
   SMALL SCREENS
========================================================= */

@media (max-width: 480px) {

    .post.classic.wwr-community-post
    .wwr-post-identity.wwr-community-identity {
        padding: 20px;
    }

    .post.classic.wwr-community-post
    .wwr-community-identity .wwr-post-name {
        font-size: 30px;
    }

    .wwr-community-post .wwr-community-playerinfo {
        gap: 6px 12px;
    }

    .wwr-community-post
    .wwr-community-playerinfo span + span {
        padding-left: 12px;
    }

}
