/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* === TYF_BANNER_OVERLAY (legibilidad texto blanco sobre foto categoría) === */
/* .wd-page-title-bg ya es position:absolute via .wd-fill — NO sobrescribir position */
.wd-page-title .wd-page-title-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.50) 100%);
    pointer-events: none;
    z-index: 1;
}
.wd-page-title .wd-page-title-bg img {
    z-index: 0;
}
.wd-page-title .container { position: relative; z-index: 2; }
.wd-page-title.color-scheme-light .entry-title,
.wd-page-title.color-scheme-light .wd-current-shop-categories a,
.wd-page-title.color-scheme-light .wd-current-shop-categories .count {
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
/* === FIN TYF_BANNER_OVERLAY === */

/* === TYF_RECIPES_STYLES (Fase post-lanzamiento) === */

/* Listado /recetario/ — mejorar las cards */
.tyf-recipes-grid .tyf-recipe-card {
    box-shadow: 0 2px 8px rgba(76, 49, 6, 0.06);
    border: none;
    border-radius: 8px;
}
.tyf-recipes-grid .tyf-recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(76, 49, 6, 0.12);
}

/* Single recipe — wrapper general */
.single-post .tyf-recipe {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 820px;
    margin: 0 auto;
}

/* Meta bar (tiempo / dificultad / porciones / recipiente) */
.tyf-recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0 40px;
    padding: 24px;
    background: #faf8f4;
    border-radius: 10px;
    border: 1px solid #ece6dc;
}
.tyf-recipe-meta .meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.tyf-recipe-meta .meta-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 4px;
}
.tyf-recipe-meta .meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    font-weight: 600;
}
.tyf-recipe-meta .meta-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2D2D2D;
}

/* Secciones generales */
.tyf-recipe-section {
    margin: 48px 0;
}
.tyf-recipe-section h2 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: #4C3106;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tyf-recipe-section h2 .section-icon {
    font-size: 1.4rem;
    line-height: 1;
}

/* Historia: párrafo destacado con barra lateral */
.tyf-recipe-history {
    padding: 24px 28px;
    background: #fdfaf3;
    border-left: 4px solid #8B4513;
    border-radius: 0 8px 8px 0;
}
.tyf-recipe-history p { margin: 0; font-style: italic; color: #4C3106; }

/* Ingredientes — split imagen + lista */
.tyf-recipe-ingredients,
.tyf-recipe-steps {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: start;
}
.tyf-recipe-steps {
    grid-template-columns: 1.4fr 1fr;
}
.tyf-recipe-ingredients img,
.tyf-recipe-steps img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(76, 49, 6, 0.10);
}
.tyf-recipe-ingredients .ingredients-content ul {
    list-style: none;
    padding-left: 0;
    columns: 2;
    column-gap: 24px;
}
.tyf-recipe-ingredients .ingredients-content ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    break-inside: avoid;
    border-bottom: 1px dashed #ece6dc;
}
.tyf-recipe-ingredients .ingredients-content ul li::before {
    content: '🌾';
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 0.9rem;
}

/* Pasos numerados */
.tyf-recipe-steps .steps-content ol {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}
.tyf-recipe-steps .steps-content ol li {
    counter-increment: step;
    position: relative;
    padding: 14px 0 14px 56px;
    border-bottom: 1px solid #f0ebe2;
}
.tyf-recipe-steps .steps-content ol li:last-child { border-bottom: none; }
.tyf-recipe-steps .steps-content ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 12px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B4513, #6D2F00);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Recomendaciones del alfarero */
.tyf-recipe-tips {
    padding: 28px 32px;
    background: linear-gradient(135deg, #fdfaf3 0%, #f7f0e3 100%);
    border-radius: 12px;
    border: 1px solid #ece6dc;
}
.tyf-recipe-tips h2 { color: #8B4513; }
.tyf-recipe-tips p { margin-bottom: 12px; }
.tyf-recipe-tips p:last-child { margin-bottom: 0; }
.tyf-recipe-tips strong { color: #4C3106; }
.tyf-recipe-tips a { color: #8B4513; text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .tyf-recipe-ingredients,
    .tyf-recipe-steps {
        grid-template-columns: 1fr;
    }
    .tyf-recipe-ingredients .ingredients-content ul {
        columns: 1;
    }
    .tyf-recipe-meta {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
    }
    .tyf-recipe-section h2 { font-size: 1.3rem; }
}

/* === FIN TYF_RECIPES_STYLES === */
