/* =========================================================
   RECEITAS DA FAMÍLIA ANTONACCI
   STYLE.CSS
   Paleta inspirada no logo
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f6f0e4;

    color: #3a271a;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}


/* =========================================================
   PALETA BASE
   ========================================================= */

/*
   Areia principal:       #f6f0e4
   Areia clara:           #fffaf1
   Dourado suave:         #e5b45b
   Dourado forte:         #c98a2e
   Marrom escuro:         #3a271a
   Marrom médio:          #6a4b32
   Coral Antonacci:       #e96a47
   Coral escuro:          #c84f32
   Bordas:                #e3d6c3
*/


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: calc(100% - 40px);
    max-width: 1180px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.topo {
    width: 100%;

    background: #fffaf1;

    border-bottom: 1px solid #e3d6c3;

    position: sticky;
    top: 0;

    z-index: 1000;

    box-shadow:
        0 3px 15px
        rgba(93, 63, 36, 0.05);
}

.topo-conteudo {
    min-height: 125px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.marca {
    width: 120px;
    height: 120px;

    flex: 0 0 120px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.logo-site {
    display: block !important;

    width: 112px !important;
    height: 112px !important;

    min-width: 112px;
    max-width: 112px !important;

    min-height: 112px;
    max-height: 112px !important;

    object-fit: contain;
    object-position: center;
}


/* =========================================================
   MENU
   ========================================================= */

.menu {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 24px;

    font-size: 15px;
    font-weight: 600;

    color: #5b402b;
}

.menu a {
    white-space: nowrap;

    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.menu a:hover {
    color: #c98a2e;
}

.botao-login {
    padding: 11px 18px;

    border-radius: 10px;

    background: #e96a47;

    color: #ffffff !important;

    font-weight: 700;

    box-shadow:
        0 4px 12px
        rgba(233, 106, 71, 0.18);
}

.botao-login:hover {
    background: #c84f32;
    color: #ffffff !important;
}


/* =========================================================
   HERO DA HOME
   ========================================================= */

.hero {
    padding: 65px 0 50px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #fff8e9 0%,
            #f6f0e4 100%
        );
}

.hero h1 {
    max-width: 850px;

    margin: 0 auto;

    font-size:
        clamp(
            34px,
            5vw,
            54px
        );

    line-height: 1.08;

    letter-spacing: -1.5px;

    color: #3a271a;
}

.hero p {
    max-width: 650px;

    margin: 17px auto 0;

    font-size: 18px;

    line-height: 1.6;

    color: #80664f;
}


/* =========================================================
   BUSCA
   ========================================================= */

.busca-area {
    width: 100%;

    max-width: 760px;

    margin: 35px auto 0;

    padding: 8px;

    display: flex;

    align-items: center;

    gap: 8px;

    background: #ffffff;

    border: 1px solid #eadcc8;

    border-radius: 16px;

    box-shadow:
        0 8px 30px
        rgba(92, 61, 32, 0.09);
}

.busca-area input {
    flex: 1;

    min-width: 0;

    height: 54px;

    padding: 0 18px;

    border: 0;
    border-radius: 11px;

    outline: none;

    background: #ffffff;

    color: #3a271a;

    font-size: 17px;
}

.busca-area input::placeholder {
    color: #aa9680;
}

.busca-area button {
    height: 54px;

    padding: 0 24px;

    border: 0;
    border-radius: 11px;

    background: #c98a2e;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

.busca-area button:hover {
    background: #af7320;
}

.busca-area button:active {
    transform: scale(0.98);
}


/* =========================================================
   RECEITAS NA HOME
   ========================================================= */

.secao-receitas {
    padding: 20px 0 70px;
}

.secao-titulo {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.secao-titulo h2 {
    margin: 0;

    font-size: 27px;

    color: #3a271a;
}

.grid-receitas {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 25px;
}

.card-receita {
    display: block;

    overflow: hidden;

    background: #fffaf1;

    border: 1px solid #e3d6c3;

    border-radius: 17px;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.card-receita:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 12px 30px
        rgba(92, 61, 32, 0.12);
}

.card-foto {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;

    background: #eadfcf;
}

.card-sem-foto {
    display: flex;

    align-items: center;
    justify-content: center;

    aspect-ratio: 16 / 10;

    background:
        linear-gradient(
            135deg,
            #f7e7bf,
            #edd4a2
        );

    font-size: 50px;
}

.card-conteudo {
    padding: 19px;
}

.card-conteudo h3 {
    margin: 0;

    font-size: 20px;

    line-height: 1.3;

    color: #3a271a;
}

.card-tempo {
    display: block;

    margin-top: 9px;

    color: #8a715b;

    font-size: 14px;
}


/* =========================================================
   ESTADO VAZIO
   ========================================================= */

.estado-vazio {
    padding: 50px 25px;

    background: #fffaf1;

    text-align: center;

    border: 1px solid #e3d6c3;

    border-radius: 18px;
}

.estado-vazio .icone {
    font-size: 45px;
}

.estado-vazio h3 {
    margin: 15px 0 8px;

    font-size: 22px;

    color: #3a271a;
}

.estado-vazio p {
    margin: 0 auto 25px;

    max-width: 520px;

    color: #80664f;

    line-height: 1.5;
}


/* =========================================================
   LOGIN
   ========================================================= */

.pagina-formulario {
    width:
        calc(100% - 22px);

    max-width: 480px;

    margin:
        70px auto;

    padding: 35px;

    background: #fffaf1;

    border:
        1px solid #e3d6c3;

    border-radius: 18px;

    box-shadow:
        0 10px 35px
        rgba(92, 61, 32, 0.08);
}

.pagina-formulario h1 {
    margin:
        0 0 10px;

    color: #3a271a;
}

.pagina-formulario > p {
    margin:
        0 0 25px;

    color: #80664f;

    line-height: 1.5;
}


/* =========================================================
   CAMPOS DE FORMULÁRIO
   ========================================================= */

.campo {
    margin-bottom: 22px;
}

.campo label {
    display: block;

    margin-bottom: 8px;

    font-weight: 700;

    font-size: 15px;

    color: #5b402b;
}

.campo input,
.campo textarea,
.campo select {
    width: 100%;

    border:
        1px solid #dccbb3;

    border-radius: 11px;

    background: #ffffff;

    color: #3a271a;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.campo input {
    min-height: 52px;

    padding:
        0 15px;
}

.campo input[type="file"] {
    min-height: 0;

    padding: 13px;

    background: #fffdf8;
}

.campo textarea {
    min-height: 135px;

    padding: 15px;

    resize: vertical;

    line-height: 1.6;
}

.campo .textarea-grande {
    min-height: 250px;
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus {
    border-color: #d1a04d;

    box-shadow:
        0 0 0 4px
        rgba(201, 138, 46, 0.10);
}

.ajuda-campo {
    display: block;

    margin-top: 7px;

    color: #98816a;

    font-size: 13px;

    line-height: 1.45;
}


/* =========================================================
   ALERTAS
   ========================================================= */

.alerta {
    padding:
        14px 16px;

    margin-bottom: 25px;

    background: #fff0e9;

    border:
        1px solid #efc2b3;

    border-radius: 10px;

    color: #9c3c27;

    line-height: 1.5;
}


/* =========================================================
   BOTÕES
   ========================================================= */

.botao-principal,
.botao-salvar {
    min-height: 52px;

    border: 0;

    border-radius: 11px;

    background: #e96a47;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;
}

.botao-principal {
    width: 100%;
}

.botao-salvar {
    padding:
        0 28px;
}

.botao-principal:hover,
.botao-salvar:hover {
    background: #c84f32;
}

.botao-adicionar {
    display: inline-flex;

    min-height: 48px;

    padding:
        0 20px;

    align-items: center;
    justify-content: center;

    background: #c98a2e;

    color: #ffffff;

    border-radius: 10px;

    font-weight: 700;
}

.botao-adicionar:hover {
    background: #af7320;
}

.botao-secundario,
.botao-cancelar,
.botao-editar,
.botao-compartilhar {
    display: inline-flex;

    min-height: 48px;

    padding:
        0 20px;

    align-items: center;
    justify-content: center;

    border:
        1px solid #d9c7ae;

    border-radius: 10px;

    background: #fffaf1;

    color: #5b402b;

    font-weight: 700;

    cursor: pointer;
}

.botao-secundario:hover,
.botao-cancelar:hover,
.botao-editar:hover,
.botao-compartilhar:hover {
    background: #f5e9d6;
}

.botao-vazio {
    margin-top: 5px;
}


/* =========================================================
   ADMINISTRAÇÃO
   ========================================================= */

.admin-topo {
    padding:
        50px 0 30px;

    background:
        linear-gradient(
            180deg,
            #fff8e9,
            #f6f0e4
        );
}

.admin-cabecalho {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.admin-cabecalho h1 {
    margin:
        0 0 8px;

    font-size: 38px;

    color: #3a271a;
}

.admin-cabecalho p {
    margin: 0;

    color: #80664f;

    font-size: 17px;
}

.admin-area {
    padding-bottom: 70px;
}

.admin-card {
    display: flex;

    flex-direction: column;

    width: 230px;

    margin-bottom: 30px;

    padding: 25px;

    background: #fffaf1;

    border:
        1px solid #e3d6c3;

    border-radius: 16px;
}

.admin-card-numero {
    font-size: 42px;

    font-weight: 750;

    color: #c98a2e;
}

.admin-card-texto {
    margin-top: 5px;

    color: #80664f;
}

.admin-acoes {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


/* =========================================================
   EDITOR DE RECEITA
   ========================================================= */

.pagina-editor {
    padding:
        45px 0 80px;
}

.editor-topo {
    margin-bottom: 30px;
}

.editor-topo h1 {
    margin:
        15px 0 6px;

    font-size: 40px;

    color: #3a271a;
}

.editor-topo p {
    margin: 0;

    color: #80664f;

    font-size: 17px;
}

.voltar-link {
    display: inline-block;

    color: #9a6e32;

    font-size: 14px;

    font-weight: 700;
}

.form-receita {
    max-width: 850px;
}

.bloco-formulario {
    margin-bottom: 25px;

    padding: 28px;

    background: #fffaf1;

    border:
        1px solid #e3d6c3;

    border-radius: 17px;
}

.bloco-formulario h2 {
    margin:
        0 0 25px;

    padding-bottom: 15px;

    border-bottom:
        1px solid #eadfce;

    font-size: 22px;

    color: #5b402b;
}

.preview-container {
    margin:
        -5px 0 25px;

    max-width: 500px;
}

.preview-foto {
    display: block;

    width: 100%;

    max-height: 350px;

    object-fit: cover;

    border-radius: 14px;
}

.acoes-formulario {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin-top: 30px;
}


/* =========================================================
   PÁGINA PÚBLICA DA RECEITA
   ========================================================= */

.pagina-receita {
    padding:
        40px 0 80px;
}

.receita-container {
    max-width: 900px;
}

.receita-cabecalho {
    padding:
        25px 0 30px;

    text-align: center;
}

.receita-cabecalho h1 {
    max-width: 780px;

    margin:
        0 auto;

    font-size:
        clamp(
            36px,
            6vw,
            58px
        );

    line-height: 1.08;

    letter-spacing: -1.5px;

    color: #3a271a;
}

.receita-tempo {
    margin-top: 18px;

    color: #80664f;

    font-size: 16px;

    font-weight: 700;
}

.receita-tags {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 8px;

    margin-top: 18px;
}

.tag {
    display: inline-flex;

    align-items: center;

    min-height: 32px;

    padding:
        0 12px;

    background: #f1dfb6;

    border-radius: 999px;

    color: #6d4b24;

    font-size: 13px;

    font-weight: 700;
}

.receita-foto-area {
    margin:
        10px 0 35px;
}

.receita-foto {
    display: block;

    width: 100%;

    max-height: 600px;

    object-fit: cover;

    border-radius: 20px;

    box-shadow:
        0 10px 30px
        rgba(92, 61, 32, 0.10);
}

.receita-conteudo {
    max-width: 760px;

    margin: auto;
}

.receita-bloco {
    margin-bottom: 45px;
}

.receita-bloco h2 {
    margin:
        0 0 22px;

    font-size: 29px;

    color: #5b402b;
}

.lista-ingredientes {
    margin: 0;

    padding-left: 25px;
}

.lista-ingredientes li {
    margin-bottom: 12px;

    padding-left: 5px;

    font-size: 17px;

    line-height: 1.55;
}

.lista-ingredientes li::marker {
    color: #c98a2e;
}

.lista-preparo {
    margin: 0;

    padding: 0;

    list-style: none;

    counter-reset: passo;
}

.lista-preparo li {
    position: relative;

    display: grid;

    grid-template-columns:
        46px 1fr;

    gap: 15px;

    margin-bottom: 24px;

    counter-increment: passo;
}

.lista-preparo li::before {
    content:
        counter(passo);

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #c98a2e;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;
}

.lista-preparo li span {
    padding-top: 8px;

    font-size: 17px;

    line-height: 1.6;
}

.receita-dica {
    display: flex;

    gap: 15px;

    margin:
        20px 0 40px;

    padding: 22px;

    background: #fff3cf;

    border:
        1px solid #ead19b;

    border-radius: 15px;
}

.receita-dica-icone {
    font-size: 26px;
}

.receita-dica strong {
    display: block;

    margin-bottom: 5px;

    font-size: 17px;

    color: #6d4b24;
}

.receita-dica p {
    margin: 0;

    line-height: 1.6;

    color: #5b402b;
}

.receita-acoes {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    padding-top: 25px;

    border-top:
        1px solid #e3d6c3;
}


/* =========================================================
   RODAPÉ
   ========================================================= */

.rodape {
    padding:
        30px 0 40px;

    text-align: center;

    color: #927860;

    font-size: 14px;
}

.rodape p {
    margin: 0;
}


/* =========================================================
   IPAD / TABLETS
   ========================================================= */

@media (max-width: 850px) {

    .container {
        width:
            calc(100% - 30px);
    }

    .topo-conteudo {
        min-height: 100px;

        gap: 20px;
    }

    .marca {
        width: 92px;
        height: 92px;

        flex-basis: 92px;
    }

    .logo-site {
        width: 86px !important;
        height: 86px !important;

        min-width: 86px;
        max-width: 86px !important;

        min-height: 86px;
        max-height: 86px !important;
    }

    .menu {
        gap: 16px;
    }

    .grid-receitas {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 600px) {

    .container {
        width:
            calc(100% - 22px);
    }


    /* CABEÇALHO */

    .topo-conteudo {
        min-height: 82px;

        gap: 10px;
    }

    .marca {
        width: 72px;
        height: 72px;

        flex-basis: 72px;
    }

    .logo-site {
        width: 68px !important;
        height: 68px !important;

        min-width: 68px;
        max-width: 68px !important;

        min-height: 68px;
        max-height: 68px !important;
    }


    /* MENU */

    .menu {
        gap: 8px;

        font-size: 14px;
    }

    .menu > a:not(.botao-login) {
        display: none;
    }

    .botao-login {
        padding:
            9px 13px;
    }


    /* HOME */

    .hero {
        padding:
            38px 0 34px;
    }

    .hero h1 {
        font-size: 34px;

        letter-spacing: -1px;
    }

    .hero p {
        font-size: 16px;
    }

    .busca-area {
        margin-top: 27px;

        padding: 6px;
    }

    .busca-area input {
        height: 49px;

        padding:
            0 12px;

        font-size: 16px;
    }

    .busca-area button {
        height: 49px;

        padding:
            0 15px;

        font-size: 14px;
    }

    .grid-receitas {
        grid-template-columns:
            1fr;

        gap: 18px;
    }


    /* ADMIN */

    .admin-topo {
        padding:
            35px 0 25px;
    }

    .admin-cabecalho {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

    .admin-cabecalho h1 {
        font-size: 31px;
    }

    .admin-card {
        width: 100%;
    }

    .admin-cabecalho
    .botao-adicionar {
        width: 100%;
    }


    /* EDITOR */

    .pagina-editor {
        padding:
            30px 0 55px;
    }

    .editor-topo h1 {
        font-size: 32px;
    }

    .bloco-formulario {
        padding:
            22px 17px;

        border-radius: 14px;
    }

    .campo
    .textarea-grande {
        min-height: 220px;
    }

    .acoes-formulario {
        flex-direction: column-reverse;
    }

    .botao-cancelar,
    .botao-salvar {
        width: 100%;
    }


    /* RECEITA */

    .pagina-receita {
        padding:
            28px 0 55px;
    }

    .receita-cabecalho {
        padding:
            20px 0 25px;
    }

    .receita-cabecalho h1 {
        font-size: 36px;
    }

    .receita-foto {
        border-radius: 15px;
    }

    .receita-bloco {
        margin-bottom: 38px;
    }

    .receita-bloco h2 {
        font-size: 25px;
    }

    .lista-ingredientes li,
    .lista-preparo li span {
        font-size: 16px;
    }

    .receita-dica {
        padding:
            18px 16px;
    }

    .receita-acoes {
        flex-direction: column;
    }

    .botao-compartilhar,
    .botao-editar {
        width: 100%;
    }


    /* LOGIN */

    .pagina-formulario {
        margin:
            35px auto;

        padding:
            25px 20px;
    }

}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 390px) {

    .topo-conteudo {
        min-height: 76px;
    }

    .marca {
        width: 66px;
        height: 66px;

        flex-basis: 66px;
    }

    .logo-site {
        width: 62px !important;
        height: 62px !important;

        min-width: 62px;
        max-width: 62px !important;

        min-height: 62px;
        max-height: 62px !important;
    }

    .botao-login {
        padding:
            8px 11px;

        font-size: 13px;
    }

    .hero h1 {
        font-size: 30px;
    }

}