/* public/css/receta.css */

/* SOLAPAS DE VARIANTES PARA ESCRITORIO / TABLET (>= 768px) */
@media (min-width: 768px) {
    .recipe-tabs-wrapper {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }
}

/* OCULTAR EN MÓVILES (< 768px) PARA USAR SOLO EL DESPLEGABLE */
@media (max-width: 767.98px) {
    .recipe-tabs-wrapper {
        display: none !important;
    }
}

.recipe-tab-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    min-height: 44px;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.recipe-tab-btn.active {
    background-color: var(--brand-red);
    color: #FFFFFF !important;
    border-color: var(--brand-red-dark);
    box-shadow: 0 4px 8px rgba(176, 0, 0, 0.2);
}

/* CONTENEDOR CINEMATIC AMBIENT BLUR PARA BANNER DE FOTOS */
.recipe-banner-wrapper {
    position: relative;
    width: 100%;
    height: 340px;
    max-height: 340px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .recipe-banner-wrapper {
        height: 230px;
        max-height: 230px;
    }
}

.recipe-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.6);
    transform: scale(1.2);
    z-index: 1;
}

.recipe-banner-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
}

/* LISTA DE INGREDIENTES CON TIPOGRAFÍA PAREJA Y DESTACADA */
.ingredient-item {
    background-color: var(--bg-surface-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.ingredient-item strong {
    text-transform: capitalize;
    color: var(--text-primary);
    font-weight: 700;
}

.ingredient-item .badge-ingrediente {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.75rem !important;
    background-color: var(--bg-surface) !important;
    color: var(--brand-red) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    letter-spacing: 0.3px;
}

/* PASOS DE PREPARACIÓN */
.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--btn-green);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}