/* BrewRecipes® — Carte recette dans les messages (forum / MP).
 * Autonome depuis perf forum (bcdb2b9) : icônes + stats ici, pas dans brewrecipes.css. */

.brewrecipes-post-card,
.brewrecipe-post-card {
    margin: 1em 0;
}

.brewrecipes-post-card .inner,
.brewrecipe-post-card .inner {
    padding: 16px;
}

.brewrecipes-post-card-layout,
.brewrecipe-post-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.brewrecipes-post-card-visual,
.brewrecipe-post-visual {
    text-align: center;
}

.brewrecipes-post-card-visual .brew-main-photo,
.brewrecipe-post-visual img {
    max-width: 220px;
    max-height: 300px;
    object-fit: cover;
}

/* Grand verre (aperçu posting / forum — hors page fiche BrewRecipes) */
.brewrecipes-post-card-visual .brew-big-glass-frame {
    display: inline-block;
    margin: 0;
    padding: 12px;
    border-radius: 18px;
    background: #f9f9f9;
    box-shadow:
        0 0 0 8px #f9f9f9,
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.brewrecipes-post-card-visual .brew-big-glass {
    position: relative;
    width: 160px;
    height: 280px;
    margin: 0 auto;
    overflow: hidden;
}

.brewrecipes-post-card-visual .brew-big-glass-color {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 10px;
    bottom: 8px;
    background-image: url("/forum/images/beer_color_big.jpg");
    background-repeat: no-repeat;
    background-size: 1700px 280px;
    background-position: var(--ebc-position) center;
    z-index: 1;
}

.brewrecipes-post-card-visual .brew-big-glass-mask {
    position: absolute;
    inset: 0;
    background-image: url("/forum/images/beer_glass_big.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 2;
}

.brewrecipes-post-card-content h3,
.brewrecipe-post-body h3 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 1.6em;
}

.brewrecipes-post-card-favorites {
    margin: 8px 0 10px;
    font-size: 0.95em;
}

.brewrecipes-post-card-linkline,
.brewrecipe-post-linkline {
    margin-top: 14px;
}

.brewrecipes-post-card-rating {
    margin: 6px 0 12px;
}

.brewrecipes-post-card-rating .brew-rating-stars {
    color: #d9a300;
}

.brewrecipes-post-card-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(105px, 1fr));
    gap: 0 18px;
    margin: 12px 0 16px;
    max-width: 680px;
}

.brewrecipes-post-card-stats .brew-view-stat {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
    min-height: 58px;
}

.brewrecipes-post-card-stats .brew-view-stat strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.brewrecipes-post-card-stats .brew-view-stat em {
    display: block;
    font-style: normal;
    opacity: 0.95;
}

/* Icônes stats (ex-brewrecipes.css, requis hors page fiche BrewRecipes) */
.brewrecipes-post-card .brew-view-icon,
.brewrecipe-post-card .brew-view-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-color: #0059b3;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.brewrecipes-post-card .brew-icon-percent,
.brewrecipe-post-card .brew-icon-percent {
    mask-image: url("./images/icon-percent.svg");
    -webkit-mask-image: url("./images/icon-percent.svg");
}

.brewrecipes-post-card .brew-icon-ibu,
.brewrecipe-post-card .brew-icon-ibu {
    mask-image: url("./images/icon-hop.svg");
    -webkit-mask-image: url("./images/icon-hop.svg");
}

.brewrecipes-post-card .brew-icon-color,
.brewrecipe-post-card .brew-icon-color {
    mask-image: url("./images/icon-palette.svg");
    -webkit-mask-image: url("./images/icon-palette.svg");
}

.brewrecipes-post-card .brew-icon-volume,
.brewrecipe-post-card .brew-icon-volume {
    mask-image: url("./images/icon-volume.svg");
    -webkit-mask-image: url("./images/icon-volume.svg");
}

.brewrecipes-post-card-ingredients {
    margin-top: 10px;
}

.brewrecipes-post-card-ingredients ul {
    margin-top: 5px;
    margin-bottom: 12px;
}

@media (max-width: 750px) {
    .brewrecipes-post-card-layout,
    .brewrecipe-post-layout {
        grid-template-columns: 1fr;
    }

    .brewrecipes-post-card-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Menu forum : brewrecipes_nav.css (chargé en dernier dans overall_header_head_append). */

/* FAQ intégrée (Prosilver : postbody/content comme un message). */
.brew-faq-body .postbody .content {
    max-width: 52rem;
    margin: 0 auto;
    line-height: 1.55;
    overflow: visible;
}

.brew-faq-body .content img {
    max-width: 100%;
    height: auto;
}

.brew-faq-anchor {
    display: block;
    position: relative;
    top: -4rem;
    visibility: hidden;
}