/* =========================================================
   DISCOVERY - BASE
========================================================= */

.tlb-discovery-wrap,
.tlb-discovery-wrap * {
    box-sizing: border-box;
}

.tlb-discovery-wrap {
    width: 100%;
    padding: 10px 20px 0;

    font-family: "Be Vietnam Pro", Arial, sans-serif;
}

.tlb-discovery {
    width: min(1440px, 100%);

    min-height: 235px;
    height: auto;

    margin: 0 auto;

    display: grid;

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

    gap: 10px;

    align-items: stretch;
}

.tlb-discovery > article {
    position: relative;

    min-width: 0;
    min-height: 235px;

    overflow: hidden;

    border: 1px solid #f6e5ea;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #fff8fa 0%,
            #fff1f4 100%
        );
}


/* =========================================================
   HEADING
========================================================= */

.tlb-discovery__heading {
    position: relative;
    z-index: 3;

    padding: 15px 15px 0;
}

.tlb-discovery__heading h2 {
    margin: 0;

    color: #ed0754;

    font-size: 12px;
    line-height: 1.3;

    font-weight: 700;
}

.tlb-discovery__heading p {
    margin: 3px 0 0;

    color: #5b4b50;

    font-size: 8px;
    line-height: 1.4;
}

.tlb-discovery__heading--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;
}

.tlb-discovery__heading--row > a {
    margin-top: 2px;

    color: #ed0754;

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

    text-decoration: none;

    white-space: nowrap;
}


/* =========================================================
   AI BAKING ASSISTANT
========================================================= */

.tlb-discovery__ai {
    min-height: 235px;
}

.tlb-ai-features {
    position: relative;
    z-index: 3;

    width: 65%;

    margin: 12px 0 0;
    padding: 0 0 48px 15px;

    list-style: none;
}

.tlb-ai-features li {
    min-height: 24px;

    display: flex;
    align-items: center;

    gap: 7px;

    color: #39272d;

    font-size: 8px;
}

.tlb-ai-features li > span {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    color: #ed0754;
}

.tlb-ai-features svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;

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

.tlb-ai-chat {
    position: absolute;

    z-index: 4;

    left: 15px;
    bottom: 13px;

    height: 29px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;

    border-radius: 5px;

    background: #ed0754;

    color: #fff;

    text-decoration: none;

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

    transition:
        background .2s ease,
        transform .2s ease;
}

.tlb-ai-chat:hover {
    background: #d9044a;
    transform: translateY(-1px);
}

.tlb-ai-robot {
    position: absolute;

    z-index: 2;

    right: -4px;
    bottom: -4px;

    width: 105px;
    height: 130px;

    object-fit: contain;
    object-position: right bottom;

    pointer-events: none;
}


/* =========================================================
   TRENDING / CÔNG THỨC THẬT
========================================================= */

.tlb-discovery__trending {
    min-width: 0;
    min-height: 235px;
}

.tlb-trending-grid {
    width: 100%;

    display: grid;

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

    gap: 8px;

    padding: 12px 14px 16px;
}

.tlb-trending-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    color: #2f2025;

    text-decoration: none;
}


/* =========================================================
   TRENDING IMAGE
========================================================= */

.tlb-trending-card__image {
    width: 100%;
    height: 125px;

    flex: 0 0 125px;

    overflow: hidden;

    border-radius: 7px;

    background: #f6eeee;
}

.tlb-trending-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .25s ease;
}

.tlb-trending-card:hover .tlb-trending-card__image img {
    transform: scale(1.04);
}


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

.tlb-trending-card__name {
    display: flex;
    align-items: flex-start;

    gap: 4px;

    margin-top: 6px;

    min-width: 0;
}

.tlb-trending-card__name b {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    display: grid;
    place-items: center;

    margin-top: 1px;

    border-radius: 50%;

    background: #ed0754;

    color: #fff;

    font-size: 7px;
    line-height: 1;

    font-weight: 600;
}

.tlb-trending-card__name strong {
    min-width: 0;

    display: -webkit-box;

    overflow: hidden;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    color: #302126;

    font-size: 7.5px;
    line-height: 1.35;

    font-weight: 600;
}


/* =========================================================
   REAL RECIPE META
========================================================= */

.tlb-trending-card__meta {
    min-height: 11px;

    margin-top: 4px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 4px;

    color: #82767a;

    font-size: 6.2px;
    line-height: 1.25;
}

.tlb-trending-card__meta span {
    white-space: nowrap;
}

.tlb-trending-card__meta span + span::before {
    content: "•";

    margin-right: 4px;

    color: #c8bfc2;
}


/* =========================================================
   RATING
========================================================= */

.tlb-trending-card__rating {
    margin-top: 4px;

    color: #75696d;

    font-size: 7px;
    line-height: 1.3;
}

.tlb-trending-card__rating span {
    color: #ffb000;
}


/* =========================================================
   ACCOUNT / CUSTOMER JOURNEY
========================================================= */

.tlb-discovery__account {
    min-height: 235px;
}

.tlb-account-features {
    position: relative;
    z-index: 3;

    width: 62%;

    margin: 11px 0 0;
    padding: 0 0 48px 16px;

    list-style: none;
}

.tlb-account-features li {
    min-height: 24px;

    display: flex;
    align-items: center;

    gap: 7px;

    color: #39272d;

    font-size: 8px;
}

.tlb-account-features li > span {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    color: #ed0754;
}

.tlb-account-features svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;

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

.tlb-account-login {
    position: absolute;

    z-index: 4;

    left: 16px;
    bottom: 13px;

    min-width: 118px;
    height: 29px;

    padding: 0 13px;

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

    border-radius: 5px;

    background: #ed0754;

    color: #fff;

    text-decoration: none;

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

    transition:
        background .2s ease,
        transform .2s ease;
}

.tlb-account-login:hover {
    background: #d9044a;
    transform: translateY(-1px);
}

.tlb-account-gift {
    position: absolute;

    z-index: 2;

    right: -3px;
    bottom: -4px;

    width: 130px;
    height: 140px;

    object-fit: contain;
    object-position: right bottom;

    pointer-events: none;
}


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

.tlb-discovery-empty {
    grid-column: 1 / -1;

    min-height: 150px;

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

    padding: 20px;

    color: #9d9195;

    font-size: 8px;

    text-align: center;
}


/* =========================================================
   HOVER
========================================================= */

.tlb-trending-card__name strong,
.tlb-discovery__heading--row > a {
    transition: color .2s ease;
}

.tlb-trending-card:hover .tlb-trending-card__name strong {
    color: #ed0754;
}

.tlb-discovery__heading--row > a:hover {
    color: #c90446;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1000px) {

    .tlb-discovery {
        min-height: 0;
        height: auto;

        grid-template-columns:
            1fr
            2fr;

        align-items: stretch;
    }

    .tlb-discovery > article {
        min-height: 220px;
    }

    .tlb-discovery__ai,
    .tlb-discovery__trending {
        min-height: 220px;
    }

    .tlb-discovery__account {
        grid-column: 1 / -1;

        min-height: 200px;
    }

    .tlb-trending-card__image {
        height: 115px;
        flex-basis: 115px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 700px) {

    .tlb-discovery-wrap {
        padding-inline: 12px;
    }

    .tlb-discovery {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .tlb-discovery > article {
        min-height: 210px;
    }

    .tlb-discovery__ai {
        min-height: 220px;
    }

    .tlb-discovery__trending {
        min-height: 0;

        overflow: hidden;
    }

    .tlb-discovery__account {
        grid-column: auto;

        min-height: 220px;
    }

    .tlb-trending-grid {
        overflow-x: auto;
        overflow-y: hidden;

        grid-template-columns:
            repeat(5, 130px);

        padding-bottom: 16px;

        -webkit-overflow-scrolling: touch;
    }

    .tlb-trending-card__image {
        height: 110px;
        flex-basis: 110px;
    }
}


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

@media (max-width: 480px) {

    .tlb-discovery-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tlb-discovery__heading {
        padding:
            13px
            13px
            0;
    }

    .tlb-discovery__heading h2 {
        font-size: 11px;
    }

    .tlb-discovery__heading p {
        font-size: 7.5px;
    }

    .tlb-trending-grid {
        padding:
            10px
            13px
            15px;

        grid-template-columns:
            repeat(5, 125px);
    }

    .tlb-trending-card__image {
        height: 105px;
        flex-basis: 105px;
    }

    .tlb-ai-features {
        padding-left: 13px;
    }

    .tlb-account-features {
        padding-left: 13px;
    }

    .tlb-ai-chat {
        left: 13px;
    }

    .tlb-account-login {
        left: 13px;
    }
}