@import url('/style.css');

/* =========================================================
   RECEITAS - PÁGINA DE DETALHE
========================================================= */

:root {
    --receita-fundo: #FFF3E5;
    --receita-laranja: #EA7D00;
    --receita-vermelho: #E3003A;
    --receita-texto: #5f5f5f;
    --receita-branco: #ffffff;
    --receita-borda: rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--receita-fundo);
    max-width: 100%;
}

.receita-detalhe {
    width: 100%;
}


/* =========================================================
   APRESENTAÇÃO
========================================================= */

.receita-hero {
    width: min(1180px, calc(100% - 2rem));
    margin: 2rem auto 0;

    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);

    background-color: var(--receita-branco);

    border-radius: 18px 18px 0 0;
    overflow: hidden;

    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.receita-hero-imagem {
    min-width: 0;
}

.receita-hero-imagem img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 430px;

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

.receita-hero-conteudo {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: clamp(2rem, 4vw, 4rem);
}

.receita-categoria {
    margin: 0 0 0.6rem;

    color: var(--receita-laranja);

    font-family: var(--fonte-principal);
    font-size: 0.95rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.receita-hero-conteudo h1 {
    margin: 0 0 2rem;

    color: var(--receita-vermelho);

    font-family: var(--fonte-principal);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.05;
}

.receita-meta {
    display: grid;
    gap: 1rem;
}

.receita-meta-item {
    padding: 1rem;

    border: 1px solid var(--receita-borda);
    border-radius: 12px;

    background-color: #fffaf5;

    color: var(--receita-texto);

    font-family: var(--fonte-principal);
}

.receita-meta-label {
    display: block;

    margin-bottom: 0.2rem;

    color: #8b8b8b;

    font-size: 0.82rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.receita-meta-item strong {
    display: block;

    font-size: 1.08rem;
    line-height: 1.35;
}

.receita-meta-tempo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.receita-meta-tempo img {
    flex: 0 0 auto;

    width: 30px;
    height: 30px;

    margin: 0;

    object-fit: contain;
}


/* =========================================================
   INGREDIENTES + PREPARO
========================================================= */

.receita-conteudo {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto 3rem;

    display: grid;
    grid-template-columns: minmax(250px, 0.34fr) minmax(0, 0.66fr);

    background-color: var(--receita-laranja);

    border-radius: 0 0 18px 18px;
    overflow: hidden;

    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
}

.receita-ingredientes,
.receita-preparo {
    min-width: 0;

    color: var(--receita-branco);

    font-family: var(--fonte-principal);
}

.receita-ingredientes {
    padding: clamp(2rem, 3.5vw, 3.5rem);

    background-color: rgba(255, 255, 255, 0.08);

    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.receita-preparo {
    padding: clamp(2rem, 3.5vw, 3.5rem);
}

.receita-ingredientes h2,
.receita-preparo h2 {
    margin: 0 0 1.4rem;

    color: var(--receita-branco);

    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    font-weight: 500;
}

.receita-ingredientes ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.receita-ingredientes li {
    position: relative;

    padding: 0.7rem 0 0.7rem 1.25rem;

    font-size: 1.1rem;
    line-height: 1.45;

    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.receita-ingredientes li::before {
    content: "";

    position: absolute;

    top: 1.25rem;
    left: 0;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background-color: var(--receita-branco);
}

.receita-preparo-texto {
    display: grid;
    gap: 1rem;
}

.receita-preparo p {
    margin: 0;

    font-size: 1.08rem;
    font-weight: 300;
    line-height: 1.65;
}

.receita-informacao {
    margin-top: 1.6rem;
    padding-top: 1.4rem;

    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.receita-informacao h3 {
    margin: 0 0 0.55rem;

    color: var(--receita-branco);

    font-size: 1.15rem;
    font-weight: 700;
}


/* =========================================================
   MAIS RECEITAS
========================================================= */

.receitas-relacionadas {
    width: 100%;

    padding: 2.5rem 1rem 4rem;

    background-color: var(--receita-fundo);

    box-sizing: border-box;
}

.receitas-relacionadas-titulo {
    width: min(1180px, 100%);
    margin: 0 auto 1.5rem;
}

.receitas-relacionadas-titulo h2 {
    margin: 0;

    color: var(--receita-vermelho);

    font-family: var(--fonte-principal);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 600;
}

.receitas-relacionadas-titulo p {
    margin: 0.35rem 0 0;

    color: var(--receita-laranja);

    font-family: var(--fonte-principal);
    font-size: 1.05rem;
}


/* =========================================================
   BANNER
========================================================= */

.receita-produto-banner {
    width: 100%;
}

.receita-produto-banner img {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .receita-hero {
        grid-template-columns: 1fr 0.9fr;
    }

    .receita-hero-imagem img {
        min-height: 370px;
    }

    .receita-hero-conteudo {
        padding: 2rem;
    }

    .receita-conteudo {
        grid-template-columns: 0.38fr 0.62fr;
    }

    .receita-ingredientes,
    .receita-preparo {
        padding: 2rem;
    }

}


/* =========================================================
   CELULAR / TABLET VERTICAL
========================================================= */

@media (max-width: 760px) {

    .receita-hero {
        width: calc(100% - 1.5rem);
        margin-top: 1rem;

        grid-template-columns: 1fr;
    }

    .receita-hero-imagem img {
        width: 100%;
        height: auto;
        min-height: 0;

        aspect-ratio: 16 / 10;

        object-fit: cover;
    }

    .receita-hero-conteudo {
        padding: 1.6rem 1.25rem;
    }

    .receita-hero-conteudo h1 {
        margin-bottom: 1.4rem;
    }

    .receita-conteudo {
        width: calc(100% - 1.5rem);

        grid-template-columns: 1fr;
    }

    .receita-ingredientes {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .receita-ingredientes,
    .receita-preparo {
        padding: 1.6rem 1.25rem;
    }

    .receita-preparo p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .receitas-relacionadas {
        padding: 2rem 0 3rem;
    }

    .receitas-relacionadas-titulo {
        padding: 0 1rem;

        box-sizing: border-box;
    }

}


/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media (max-width: 480px) {

    .receita-hero,
    .receita-conteudo {
        width: calc(100% - 1rem);
    }

    .receita-hero-conteudo h1 {
        font-size: 2rem;
    }

    .receita-meta-item {
        padding: 0.85rem;
    }

    .receita-meta-item strong {
        font-size: 1rem;
    }

    .receita-ingredientes li {
        font-size: 1rem;
    }

}

/* =========================================================
   SUBSEÇÕES INTERNAS DA RECEITA
========================================================= */

.receita-subsecao {
    margin-top: 1.8rem;
}

.receita-subsecao:first-of-type {
    margin-top: 0;
}

.receita-subsecao h3 {
    margin: 0 0 0.8rem;

    color: #ffffff;

    font-family: var(--fonte-principal);

    font-size: 1.2rem;

    font-weight: 700;
}

.receita-preparo .receita-subsecao + .receita-subsecao {
    padding-top: 1.5rem;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
}