/* ========================================
   PREMIUM RECIPE CARD DESIGN
   ======================================== */

.recipe-result {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Recipe Header with Photo */
.recipe-header {
    position: relative;
    background: linear-gradient(135deg, rgba(38, 222, 129, 0.15), rgba(46, 213, 115, 0.15));
    border-radius: 30px;
    padding: 3rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(38, 222, 129, 0.3);
    box-shadow: 0 20px 60px rgba(38, 222, 129, 0.2);
}

.recipe-photo {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 2rem;
    display: block;
    border: 3px solid rgba(38, 222, 129, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

#recipe-name {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #26de81, #2ed573);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-align: center;
}

#recipe-category {
    display: inline-block;
    background: rgba(254, 211, 48, 0.2);
    color: var(--secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

#recipe-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
}

/* History Card */
#recipe-history-card {
    background: rgba(254, 211, 48, 0.05);
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
}

#recipe-history-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

#recipe-history {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-style: italic;
}

/* Maridaje Box */
.maridaje-box {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
    border: 1px solid rgba(254, 211, 48, 0.3);
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    text-align: left;
}

.maridaje-box h4 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.maridaje-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Ingredients Section */
.ingredients-section {
    background: linear-gradient(135deg, rgba(38, 222, 129, 0.08), rgba(46, 213, 115, 0.08));
    border-radius: 25px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(38, 222, 129, 0.2);
}

.ingredients-section h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#recipe-ingredients {
    list-style: none;
    padding: 0;
}

#recipe-ingredients li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    transition: 0.3s;
}

#recipe-ingredients li:hover {
    background: rgba(38, 222, 129, 0.1);
    transform: translateX(10px);
}

/* Steps Section */
.steps-section {
    background: linear-gradient(135deg, rgba(38, 222, 129, 0.08), rgba(46, 213, 115, 0.08));
    border-radius: 25px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(38, 222, 129, 0.2);
}

.steps-section h3 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#recipe-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

#recipe-steps li {
    counter-increment: step-counter;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    padding-left: 4rem;
}

#recipe-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary);
    color: #000;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Action Buttons */
.recipe-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    #recipe-name {
        font-size: 2rem;
    }

    .recipe-header {
        padding: 2rem 1.5rem;
    }

    .recipe-meta {
        gap: 1rem;
    }

    .ingredients-section,
    .steps-section {
        padding: 1.5rem;
    }
}