/* Tô na Cozinha - Estilos Front-End do Card de Receita */

/* Botão Pular para a Receita */
.tc-pular-container {
    text-align: center;
    margin: 18px 0 24px;
}
.tc-btn-pular {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fdba74;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tc-btn-pular:hover {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
}

/* Card Principal da Receita */
.tc-receita-card {
    background: #ffffff;
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 28px;
    margin: 36px 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    position: relative;
    font-family: inherit;
    color: #334155;
}

/* Cabeçalho do Card */
.tc-card-header {
    border-bottom: 2px dashed #fed7aa;
    padding-bottom: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tc-card-badge {
    display: inline-block;
    background: #ea580c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
}
.tc-card-badge-ia {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
    margin-left: 6px;
    vertical-align: middle;
}
.tc-card-titulo {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.25;
}

/* Barra de Ações (Imprimir, Modo Cozinha, WhatsApp) */
.tc-acoes-receita {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}
.tc-btn-acao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}
.tc-btn-acao:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}
.tc-btn-modo-cozinha.tc-ativo {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}
.tc-btn-whatsapp {
    background: #25d366;
    border-color: #22c55e;
    color: #fff !important;
}
.tc-btn-whatsapp:hover {
    background: #16a34a;
    border-color: #15803d;
}

/* Grid de Metadados (Tempo, Porções, Dificuldade) */
.tc-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    background: #fffaf5;
    border: 1px solid #ffedd5;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 28px;
}
.tc-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tc-meta-icon {
    font-size: 24px;
    line-height: 1;
}
.tc-meta-text {
    display: flex;
    flex-direction: column;
}
.tc-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #9a3412;
    letter-spacing: 0.5px;
}
.tc-meta-val {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

/* Títulos das Seções */
.tc-secao-titulo {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.tc-checklist-hint {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

/* Lista de Ingredientes Interativa */
.tc-secao-ingredientes {
    margin-bottom: 28px;
}
.tc-lista-ingredientes {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tc-item-ingrediente {
    margin: 0;
    padding: 4px 0;
}
.tc-item-ingrediente label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.5;
    color: #334155;
    transition: color 0.15s ease;
}
.tc-item-ingrediente input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #ea580c;
    cursor: pointer;
    flex-shrink: 0;
}
.tc-item-ingrediente.tc-ingrediente-riscado span {
    text-decoration: line-through;
    color: #94a3b8;
}

/* Lista de Passos */
.tc-secao-preparo {
    margin-bottom: 28px;
}
.tc-lista-passos {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    counter-reset: passos;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tc-item-passo {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
}
.tc-num-passo {
    background: #ea580c;
    color: #fff;
    font-weight: 800;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.3);
}
.tc-texto-passo {
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    flex: 1;
}

/* Dica de Ouro */
.tc-secao-dicas {
    background: #fefce8;
    border-left: 4px solid #eab308;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin-bottom: 28px;
}
.tc-dicas-titulo {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #854d0e;
}
.tc-dicas-conteudo {
    font-size: 14px;
    color: #713f12;
    line-height: 1.5;
}

/* Achadinhos / Utensílios Recomendados */
.tc-achadinhos-receita {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 32px;
}
.tc-achadinhos-titulo {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.tc-achadinhos-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
}
.tc-achadinhos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.tc-achadinho-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tc-achadinho-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}
.tc-achadinho-img {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}
.tc-achadinho-img img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}
.tc-achadinho-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tc-achadinho-nome {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.35;
    flex: 1;
}
.tc-achadinho-nome a {
    color: #1e293b;
    text-decoration: none;
}
.tc-achadinho-nome a:hover {
    color: #ea580c;
}
.tc-achadinho-nota {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 700;
    margin-bottom: 4px;
}
.tc-achadinho-preco {
    font-size: 15px;
    font-weight: 800;
    color: #ea580c;
    margin-bottom: 10px;
}
.tc-achadinho-btn {
    display: block;
    text-align: center;
    background: #ea580c;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}
.tc-achadinho-btn:hover {
    background: #c2410c;
}
.tc-achadinhos-aviso {
    margin: 12px 0 0 0;
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
}

/* Suporte a posts clássicos / legados */
.tona-receita-meta {
    margin: 16px 0;
}

/* ESTILOS DE IMPRESSÃO (PÁGINA LIMPA) */
@media print {
    body * {
        visibility: hidden;
    }
    #tc-receita-card, #tc-receita-card * {
        visibility: visible;
    }
    #tc-receita-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .tc-acoes-receita, .tc-pular-container, .tc-achadinhos-receita, .tc-checklist-hint {
        display: none !important;
    }
    .tc-item-passo {
        background: none !important;
        border: none !important;
        padding: 6px 0 !important;
    }
    .tc-meta-grid {
        background: none !important;
        border: 1px solid #ccc !important;
    }
}
