@charset "utf-8";

/* Community Edition: reuse the shop main's spacing, color and type system. */
.pg-community-feed__head {
    align-items: flex-end;
}

.pg-community-feed__head-copy {
    max-width: 760px;
}

.pg-community-feed__eyebrow {
    margin: 0 0 14px;
    color: var(--pg-color-accent-peanut);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
}

.pg-community-feed__description {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--pg-color-text-muted);
    font-size: 15px;
    line-height: 1.75;
}

.pg-community-feed__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.pg-community-feed__app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--pg-color-accent-peanut);
    border-radius: var(--pg-radius-pill);
    background: var(--pg-color-accent-peanut);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.pg-community-feed__app-link:hover {
    background: transparent;
    color: var(--pg-color-accent-peanut) !important;
    transform: translateY(-1px);
}

.pg-community-feed__app-link:focus-visible {
    outline: 2px solid var(--pg-color-accent-peanut);
    outline-offset: 3px;
}

.pg-community-feed__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 24px);
}

.pg-community-feed__item {
    min-width: 0;
}

.pg-community-feed__card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    background: var(--pg-color-bg-soft);
    color: #fff !important;
    aspect-ratio: 4 / 5;
}

.pg-community-feed__media,
.pg-community-feed__image {
    width: 100%;
    height: 100%;
}

.pg-community-feed__media {
    position: relative;
    display: block;
    margin: 0;
    background: linear-gradient(145deg, #f1eadc, var(--pg-color-bg-soft));
}

.pg-community-feed__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--pg-color-accent-peanut);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 72px);
}

.pg-community-feed__image {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .65, .3, 1);
}

.pg-community-feed__overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: clamp(18px, 2vw, 28px);
    background: linear-gradient(180deg, transparent 38%, rgba(18, 14, 10, .72) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .32s ease, transform .32s ease;
}

.pg-community-feed__author-row,
.pg-community-feed__identity,
.pg-community-feed__content,
.pg-community-feed__meta {
    display: block;
    min-width: 0;
}

.pg-community-feed__author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg-community-feed__avatar {
    position: relative;
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.pg-community-feed__avatar img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-community-feed__avatar-fallback {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pg-community-feed__identity strong,
.pg-community-feed__identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-community-feed__identity strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.pg-community-feed__identity small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    letter-spacing: .03em;
}

.pg-community-feed__content {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.pg-community-feed__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    line-height: 1.4;
}

.pg-community-feed__badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-community-feed__card:hover .pg-community-feed__image,
.pg-community-feed__card:focus-visible .pg-community-feed__image {
    transform: scale(1.035);
}

.pg-community-feed__card:hover .pg-community-feed__overlay,
.pg-community-feed__card:focus-visible .pg-community-feed__overlay {
    opacity: 1;
    transform: translateY(0);
}

.pg-community-feed__card.is-text-only .pg-community-feed__overlay {
    opacity: 1;
    transform: none;
    background: linear-gradient(180deg, rgba(111, 118, 66, .15), rgba(50, 44, 28, .78));
}

.pg-community-feed__card--static {
    cursor: default;
}

.pg-community-feed__card--link {
    cursor: pointer;
}

.pg-community-feed__card:focus-visible {
    outline: 2px solid var(--pg-color-accent);
    outline-offset: 4px;
}

.pg-community-feed__empty {
    display: grid;
    min-height: 300px;
    place-items: center;
    gap: 10px;
    padding: 48px 24px;
    background: var(--pg-color-bg-soft);
    color: var(--pg-color-text-muted);
    text-align: center;
}

.pg-community-feed__empty-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--pg-color-line);
    border-radius: 50%;
    color: var(--pg-color-accent-peanut);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.pg-community-feed__empty h3,
.pg-community-feed__empty p {
    margin: 0;
}

.pg-community-feed__empty h3 {
    color: var(--pg-color-text);
    font-size: 18px;
    font-weight: 600;
}

.pg-community-feed__empty p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .pg-community-feed__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pg-community-feed__head {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 22px;
        gap: 0;
    }

    .pg-community-feed__head-copy {
        width: 100%;
    }

    .pg-community-feed__description {
        margin-top: 12px;
        font-size: 14px;
    }

    .pg-community-feed__actions,
    .pg-community-feed__app-link {
        width: 100%;
    }

    .pg-community-feed__actions {
        align-items: stretch;
        justify-content: flex-start;
        margin-top: 20px;
    }

    .pg-community-feed__app-link {
        justify-content: flex-start;
        min-height: 52px;
        padding: 0 18px;
        border-radius: 12px;
        box-shadow: 0 10px 24px rgba(92, 61, 31, .16);
        font-size: 13px;
    }

    .pg-community-feed__app-link::before {
        display: inline-grid;
        width: 34px;
        height: 24px;
        flex: 0 0 34px;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .45);
        border-radius: 7px;
        content: "APP";
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .08em;
    }

    .pg-community-feed__app-link > [aria-hidden="true"] {
        margin-left: auto;
        font-size: 16px;
    }

    .pg-community-feed__app-link:hover {
        background: var(--pg-color-accent-peanut);
        color: #fff !important;
        transform: none;
    }

    .pg-community-feed__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pg-community-feed__overlay {
        padding: 14px;
        gap: 8px;
        opacity: 1;
        transform: none;
    }

    .pg-community-feed__avatar {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .pg-community-feed__identity strong,
    .pg-community-feed__content {
        font-size: 12px;
    }

    .pg-community-feed__identity small,
    .pg-community-feed__meta {
        font-size: 10px;
    }

    .pg-community-feed__content {
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .pg-community-feed__stat-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .pg-community-feed__empty {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .pg-community-feed__image,
    .pg-community-feed__overlay {
        transition: none;
    }
}
