/* Configurações Globais */
:root {
    --primary-color: #e63946; /* Um vermelho culinário */
    --pen-blue: #1d3557;      /* Azul caneta esferográfica */
    --paper-white: #fdfdfd;   /* Branco papel */
    --line-color: #a8dadc;    /* Azul claro das linhas */
    --margin-color: #ffadad;  /* Vermelho da margem do caderno */
    --laranja: #ff9933;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    margin: 0px;
}

.container-receita {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Grid Principal */
.receita-grid {
    display: grid;
    grid-template-columns: 350px 1fr; /* Coluna fixa para o caderno e resto para o preparo */
    gap: 40px;
    margin-top: 40px;
}

/* --- DESIGN DO CADERNO (Ingredientes) --- */
.ingredientes {
    background-color: var(--paper-white);
    background-image: linear-gradient(var(--line-color) 1px, transparent 1px); /* As linhas pautadas */
    background-size: 100% 2.5rem; /* Altura da linha (ajuste conforme a fonte) */
    padding: 3rem 2rem 2rem 3.5rem; /* Padding extra na esquerda para a margem vermelha */
    position: relative;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #efefef;
    /* Efeito de folha arrancada (zigue-zague no topo) */
    clip-path: polygon(0% 2%, 5% 0%, 10% 2%, 15% 0%, 20% 2%, 25% 0%, 30% 2%, 35% 0%, 40% 2%, 45% 0%, 50% 2%, 55% 0%, 60% 2%, 65% 0%, 70% 2%, 75% 0%, 80% 2%, 85% 0%, 90% 2%, 95% 0%, 100% 2%, 100% 100%, 0% 100%);
}

/* A margem vertical vermelha do caderno */
.ingredientes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: 100%;
    background-color: var(--margin-color);
}

.ingredientes h2 {
    font-family: 'Caveat', cursive;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transform: rotate(-2deg); /* Dá um charme de escrito rápido */
}

.ingredientes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredientes li {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: var(--pen-blue);
    line-height: 2.5rem; /* Deve bater com o background-size do pai */
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingredientes input[type="checkbox"] {
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* --- MODO DE PREPARO --- */
.preparo h2 {
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    margin-bottom: 20px;
}

.passo-preparo {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.numero-passo {
    display: block;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .receita-grid {
        grid-template-columns: 1fr;
    }
    
    .ingredientes {
        order: 2; /* No mobile, o modo de preparo pode vir antes se preferir */
    }
}

.utensilios-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.utensilios-list li {
    background: #fef9e7;
    border-left: 4px solid #f39c12;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.buy-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #e67e22;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #e67e22;
    padding: 2px 6px;
    border-radius: 3px;
}

.buy-link:hover {
    background: #e67e22;
    color: #fff;
}

.carimbo-container {
    position: relative;
    display: flex;
    justify-content: flex-end; /* Alinha à direita, mas pode ajustar */
    margin-bottom: -20px; /* Sobrepõe levemente o elemento abaixo */
    z-index: 10;
}

/*MENU*/

/* Container de largura fixa */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Sticky */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px); /* Efeito moderno de vidro */
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.brand-link {
    text-decoration: none;
    font-family: 'Caveat', cursive;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

/* Menu de Navegação */
.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    font-weight: 700;
    color: var(--pen-blue);
    font-size: 0.95rem;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-list a:hover {
    background-color: #f1faee;
    color: var(--primary-color);
}

/* Busca */
.search-form {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    padding: 5px 15px;
    border-radius: 25px; /* Estilo pílula divertido */
}

.search-form input[type="search"] {
    border: none;
    background: transparent;
    padding: 5px;
    outline: none;
    font-size: 0.9rem;
}

.search-form button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .header-grid {
        flex-direction: column;
        gap: 10px;
    }
    .nav-list {
        font-size: 0.8rem;
    }
}

/* Configurações do Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #fdf2e9; /* Laranja clarinho para a borda do header */
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.main-logo {
    height: 60px; /* Ajuste conforme o tamanho da sua logo */
    width: auto;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* --- ESTILIZAÇÃO DA BUSCA (LARANJA LEVE) --- */
.search-form {
    display: flex;
    align-items: center;
    background-color: #fff9f5; /* Fundo laranja quase branco */
    border: 2px solid #ffe0cc; /* Borda laranja clara */
    border-radius: 50px; /* Bordas totalmente arredondadas */
    padding: 4px 6px 4px 15px;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: #ffb380; /* Laranja mais intenso ao clicar */
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 179, 128, 0.1);
}

.search-field {
    border: none;
    background: transparent;
    outline: none;
    color: #5d4037; /* Marrom café para o texto */
    font-size: 0.95rem;
    width: 200px;
}

.search-submit {
    background-color: var(--laranja); 
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%; /* Botão circular */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-submit:hover {
    background-color: #e67e22; /* Laranja mais escuro no hover */
}

.search-icon {
    font-size: 1.1rem;
}

/* Menu de navegação */
.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: #ff9933;
}

/* Responsivo */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        padding: 15px;
    }
    .search-field {
        width: 100%;
    }
}

/*ARCHIVE*/

/* Layout do Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* O Card */
.recipe-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Imagem e Badges */
.card-image {
    position: relative;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-custo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--pen-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Estilo por tipo de custo (Opcional) */
.custo-barata { color: #2d6a4f; border-left: 3px solid #2d6a4f; }
.custo-cara { color: #e63946; }

/* Conteúdo do Card */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: var(--pen-blue);
    line-height: 1.2;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
}

/*FRONT-PAGE*/
/* Hero */
.hero {
    padding: 80px 0;
    background: #fffcf2; /* Um creme suave */
    border-bottom: 1px solid #eee;
}

.logo-hero {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.hero-tagline {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--pen-blue);
    margin-bottom: 30px;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    height: 150px;
    background: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card:nth-child(even) { background: var(--pen-blue); }

.category-card:hover {
    transform: scale(1.03);
}

.category-content h3 {
    font-size: 1.8rem;
    margin: 0;
}

/* Social Icons */
.home-social {
    background: #f1faee;
    padding: 60px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-btn {
    padding: 10px 25px;
    background: var(--pen-blue);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

/* Ajuste na barra de meta para caber tudo */
.meta-receita {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Garante que não quebre em telas pequenas */
    gap: 15px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif; /* Fonte padrão para os rótulos */
    color: #555;
    justify-content: center;
}

.meta-divider {
    color: #ccc;
    font-weight: 300;
}

/* O container do Custo */
.meta-custo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Caveat', cursive; /* Fonte estilo mão para o custo */
    font-weight: bold;
    font-size: 1.1rem;
}

.foto-principal {
    text-align: center;
}

.foto-principal img {
    max-width: 100%;
    height: auto;
}

/* O visual das "Moedinhas" */
.moedinhas {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px; /* Formato de pílula/moeda */
    border: 2px dashed; /* Borda tracejada estilo desenho */
    font-weight: 700;
    letter-spacing: 1px;
}

/* Cores para cada nível */
.custo-baixo .moedinhas {
    color: #27ae60; /* Verde */
    border-color: #27ae60;
    background-color: #eafaf1;
}
.custo-baixo .custo-label { color: #27ae60; }

.custo-medio .moedinhas {
    color: #f39c12; /* Amarelo/Laranja */
    border-color: #f39c12;
    background-color: #fef5e7;
}
.custo-medio .custo-label { color: #f39c12; }

.custo-alto .moedinhas {
    color: #c0392b; /* Vermelho */
    border-color: #c0392b;
    background-color: #fdedec;
}
.custo-alto .custo-label { color: #c0392b; }

/* Responsivo: Em celulares, talvez esconder o label e deixar só as moedinhas */
@media (max-width: 480px) {
    .custo-label {
        display: none;
    }
    .meta-custo {
        font-size: 1.3rem; /* Aumenta um pouco as moedinhas */
    }
}

/*HERO*/

.hero-larica {
    position: relative;
    padding: 50px 0;
    background: url('../img/bg-hero.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
}

/* Adicione uma camada sutil por cima da imagem para o mascote destacar mais */
.hero-larica::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Escurece um pouco mais o fundo */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ajuste o título para destacar no fundo escuro */
.hero-title {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--laranja);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Container da busca (Pílula) */
.search-form {
    display: flex;
    align-items: center;
    background-color: #fff; /* Laranja bem clarinho */
    border: 2px solid #000;
    border-radius: 50px;
    padding: 3px 3px 3px 18px; /* Espaço para o texto não colar no canto */
    transition: all 0.3s ease;
    max-width: 300px;
}

.search-form:focus-within {
    border-color: var(--laranja); /* Laranja mais vivo ao clicar */
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 153, 51, 0.2);
}

.search-field {
    border: none;
    background: transparent;
    outline: none;
    color: #444;
    font-size: 0.9rem;
    width: 100%;
}

/* O Botão de Lupa */
.search-submit {
    background-color: var(--laranja); /* Laranja principal */
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0; /* Impede o botão de achatar */
}

.search-submit:hover {
    background-color: #e67e22; /* Laranja um pouco mais escuro */
    transform: scale(1.05);
}

.search-icon-svg {
    stroke: #000;
    width: 18px;
    height: 18px;
}


.hero-cta a {
    background-color: #FFF;
    border: 2px solid #000;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, color 0.2s;
    color: #000;
    text-decoration: none;
}

.quick-filters {
    padding: 0 0 60px 0;
    background-color: #fff; /* Fundo limpo para destacar do Hero escuro */
    text-align: center;
}

.home-recent {
    padding: 0 0 60px 0;
}

.title {
    font-family: 'Amatic SC', cursive;
    font-size: 3rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    margin-top: 0px;
    padding-top: 40px;
}

.subtitle {
    font-family: 'Amatic SC', cursive;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    margin-top: 0px;
    padding-top: 40px;
}

.filters-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.filter-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    transition: transform 0.3s ease;
}

.filter-card:hover {
    transform: translateY(-8px);
}

/* O Avatar Redondo */
.avatar-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffe0cc; /* Borda laranja clara */
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.filter-card:hover .avatar-wrapper {
    border-color: #ff9933; /* Laranja acende no hover */
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o círculo sem deformar */
}

/* Legenda dos Filtros */
.filter-label {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: #555;
    font-weight: bold;
    line-height: 1.2;
    transition: color 0.3s;
}

.filter-card:hover .filter-label {
    color: #ff9933;
}

/* Responsivo para celulares */
@media (max-width: 600px) {
    .filters-grid {
        gap: 15px;
    }
    .filter-card {
        width: 100px;
    }
    .avatar-wrapper {
        width: 80px;
        height: 80px;
    }
    .filter-label {
        font-size: 1.1rem;
    }
}

/*TAxonomy*/

.archive-header {
    padding: 40px 0;
    text-align: center;
    background-color: #f9f9f9;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 40px;
}

.archive-title {
    font-family: 'Amatic SC', cursive;
    font-size: 3.5rem;
    color: #333;
}

.archive-title span {
    color: #ff9933; /* O laranja da marca */
}

/* Grid de Receitas */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Card Estilo Polaroid */
.recipe-card-polaroid {
    background: #fff;
    padding: 15px 15px 25px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.recipe-card-polaroid:hover {
    transform: rotate(-1deg) scale(1.02);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.recipe-title {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.1;
}

.read-more {
    font-size: 0.9rem;
    color: #ff9933;
    font-weight: bold;
    text-transform: uppercase;
}

/*Card*/

/* Container do Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

/* O Card Polaroid */
.recipe-card-polaroid {
    background: #fff;
    padding: 12px 12px 20px 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.recipe-card-polaroid:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Forçando formato Retrato 3:4 */
.card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; 
    overflow: hidden;
    background-color: #eee;
}

.polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badges sobre a foto */
.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
}

.badge.difficulty { background: #ff9933; } /* Laranja */
.badge.cost { background: #2ecc71; }       /* Verde */

/* Conteúdo em baixo da foto */
.card-content {
    padding-top: 15px;
    text-align: center;
}

.recipe-card-title {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

/* Info extra (tempo e porções) */
.recipe-card-extra {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

.info-item {
    display: flex;
    align-items: center;
}

/* Estilização Geral dos Ícones no Card */
.card-icon-svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    stroke: #999; /* Cor cinza suave para os ícones */
    vertical-align: middle;
    display: inline-block;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
    font-family: 'Inter', sans-serif; /* Uma fonte sans-serif limpa para os dados técnicos */
}

/* Efeito no Hover: Ícones acendem quando o card é focado */
.recipe-card-polaroid:hover .card-icon-svg {
    stroke: #ff9933; /* Os ícones ficam laranjas no hover */
    transition: stroke 0.3s ease;
}

/* Ajuste das Badges (Selo sobre a foto) */
.badge {
    padding: 5px 10px;
    border-radius: 3px; /* Bordas menos arredondadas para um ar mais moderno */
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Container da Imagem (Base para os elementos absolutos) */
.card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; 
    overflow: hidden; /* Essencial para o efeito da tarja */
    background-color: #eee;
}

/* --- TARJA DIAGONAL (RIBBON) --- */
.ribbon-wrapper {
    width: 85px;
    height: 85px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.ribbon-difficulty {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background-color: #ff9933; /* Laranja da marca */
    
    /* A mágica da rotação */
    transform: rotate(-45deg);
    position: relative;
    padding: 5px 0;
    left: -25px;
    top: 15px;
    width: 120px;
    
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- BADGE DE CUSTO COM ÍCONE --- */
.card-badges-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.badge-cost {
    display: flex;
    align-items: center;
    background: #2ecc71; /* Verde para custo/dinheiro */
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.badge-icon-svg {
    width: 11px;
    height: 11px;
    margin-right: 4px;
    stroke: #fff; /* Ícone branco no badge verde */
}

/* Ajuste fino para os ícones de baixo não sumirem */
.card-icon-svg {
    stroke: #888;
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.btn-larica-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background-color: transparent;
    border: 2px dashed #ff9933; /* Laranja da marca com efeito tracejado */
    color: #ff9933;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-larica-more .btn-icon {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Efeito de Hover */
.btn-larica-more:hover {
    background-color: #ff9933;
    color: #fff;
    border-style: solid; /* A borda vira sólida no hover */
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.3);
    transform: translateY(-3px);
}

.btn-larica-more:hover .btn-icon {
    transform: translateX(5px); /* A setinha dá um pulinho para a direita */
    stroke: #fff;
}

.search-header {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 1px dashed #ddd;
    margin-bottom: 50px;
}

.search-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 5px;
}

.search-title {
    font-family: 'Amatic SC', cursive;
    font-size: 4.5rem;
    color: #333;
    line-height: 1;
}

/* Efeito Marca-Texto no termo buscado */
.highlighted-term {
    background: linear-gradient(120deg, #ffefd5 0%, #ffe0cc 100%);
    padding: 0 15px;
    border-radius: 5px;
    display: inline-block;
    color: #ff9933;
}

.search-count {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #999;
    margin-top: 10px;
}

/* Estilo para quando não houver resultados */
.no-results {
    grid-column: 1 / -1; /* Ocupa o grid todo */
    text-align: center;
    padding: 100px 0;
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: #666;
}

.search-again {
    max-width: 400px;
    margin: 30px auto;
}

.main-footer {
    background-color: #1a1a1a;
    color: #eee;
    padding: 80px 0 0;
    margin-top: 100px;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Tipografia */
.footer-logo {
    font-family: 'Amatic SC', cursive;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #ff9933;
}

.footer-title {
    font-family: 'Amatic SC', cursive;
    font-size: 1.8rem;
    color: #ff9933;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #aaa;
}

/* Navegação */
.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ff9933;
    padding-left: 5px;
}

/* Nuvem de Ingredientes */
.footer-ingredients-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-ing-tag {
    background: #333;
    color: #bbb;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-ing-tag:hover {
    background: #ff9933;
    color: #fff;
}

/* Barra inferior */
.footer-bottom {
    background: #111;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.credits {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
}

.footer-bottom p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Espaçamento entre texto e ícone */
    font-size: 0.8rem;
    color: #666;
}

.footer-icon svg {
    width: 14px;
    height: 14px;
    stroke: #ff9933; /* O café em laranja para dar o toque da marca */
    vertical-align: middle;
    position: relative;
    top: -1px; /* Ajuste fino de alinhamento óptico */
}

/* Opcional: Se quiser que o ícone pulse levemente ao passar o mouse */
.footer-bottom:hover .footer-icon svg {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.logo-the-tomato {
    width: 100px;
}

/* ========================================================================
   Conversor de medidas — página /conversor/
   ======================================================================== */

.conversor-page,
.conversor-page *,
.conversor-page *::before,
.conversor-page *::after {
    box-sizing: border-box;
}

.conversor-page {
    min-height: 70vh;
    padding: 48px 16px 80px;
    background-color: var(--paper-white);
}

.conversor-wrap {
    width: 100%;
}

.conversor-card {
    width: 100%;
}

.conversor-wrap {
    max-width: 880px;
    margin: 0 auto;
}

.conversor-titulo {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: var(--pen-blue);
    text-align: center;
    margin: 0 0 8px;
}

.conversor-subtitulo {
    text-align: center;
    color: var(--pen-blue);
    opacity: 0.75;
    margin: 0 0 32px;
    font-size: 1rem;
}

.conversor-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
}

.conversor-search {
    position: relative;
    margin-bottom: 20px;
}

#conversor-input-busca {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.05rem;
    font-family: inherit;
    border: 2px solid var(--line-color);
    border-radius: 4px;
    background: var(--paper-white);
    box-sizing: border-box;
}

#conversor-input-busca:focus {
    outline: none;
    border-color: var(--primary-color);
}

#conversor-sugestoes {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#conversor-sugestoes li {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
}

#conversor-sugestoes li:last-child { border-bottom: none; }

#conversor-sugestoes li:hover,
#conversor-sugestoes li.focado {
    background: var(--line-color);
    color: var(--pen-blue);
}

.conversor-vazio {
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--pen-blue);
    opacity: 0.6;
    margin: 24px 0 0;
}

.conversor-ingrediente-atual {
    margin: 0 0 16px;
    color: var(--pen-blue);
    font-size: 0.95rem;
}

.conversor-ingrediente-atual strong {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.conversor-campos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.conversor-campos label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--paper-white);
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.conversor-campos label[hidden] { display: none; }

.conversor-campos span {
    font-size: 0.8rem;
    color: var(--pen-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s;
}

.conversor-campos span.copiado {
    color: var(--primary-color);
}

.conversor-campos span.copiado::after {
    content: ' ✓ copiado';
    font-size: 0.7rem;
    font-weight: 400;
}

.conversor-campos input {
    font-size: 1.15rem;
    padding: 6px 8px;
    border: none;
    border-bottom: 2px solid var(--line-color);
    background: transparent;
    font-family: inherit;
    color: var(--pen-blue);
    font-weight: 600;
}

.conversor-campos input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Versionamento de receitas */
.aviso-versao-antiga {
    background-color: var(--margin-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.aviso-versao-antiga a {
    color: var(--pen-blue);
    font-weight: bold;
    text-decoration: underline;
}

.historico-versoes {
    margin-top: 10px;
    font-size: 0.9rem;
}

.historico-versoes summary {
    cursor: pointer;
    color: var(--laranja);
    font-weight: bold;
}

.historico-versoes ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

/* Dica do passo de preparo */
.dica-passo {
    background-color: #fff8e1;
    border-left: 3px solid var(--laranja);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Foto do passo de preparo (thumb + lightbox) */
.foto-passo-thumb {
    display: inline-block;
    margin-top: 10px;
}

.foto-passo-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.foto-passo-thumb img:hover {
    transform: scale(1.05);
}

.larica-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.larica-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.larica-lightbox-fechar {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--paper-white);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

body.larica-lightbox-aberto {
    overflow: hidden;
}

@media (max-width: 600px) {
    .conversor-titulo { font-size: 2.4rem; }
    .conversor-card { padding: 16px; }
    .conversor-campos { grid-template-columns: 1fr; }
}