body {
    background-color: var(--background-light);
    line-height: 1.7;
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.recipe-card {
    max-width: 950px;
    margin: 3em auto;
    padding: 2em 3em;
    background: var(--white);
    border-radius: 16px; 
    box-shadow: 0 10px 30px var(--shadow-hover); 
}

.recipe-title {
    font-family: 'Georgia', serif;
    font-size: 3em; 
    color: var(--primary-color);
    margin-bottom: 0.2em;
    text-align: center;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.3em;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 3em;
    margin-bottom: 1.5em;
    font-size: 1.1em;
    font-weight: 500;
}

.recipe-meta > div::before { 
    content: ''; 
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    font-size: 1.2em;
}

.recipe-meta .difficulty::before { content: '🔪 '; color: var(--primary-dark); }
.recipe-meta .time::before { content: '⏱️ '; color: var(--secondary-color); }

.recipe-hero-image {
    margin: 2em 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.recipe-description {
    font-size: 1.1em;
    margin-top: 1.5em;
    margin-bottom: 3em;
    text-align: center;
    font-style: italic;
    color: var(--text-light);
}

.recipe-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3em;
    margin-top: 2em;
}

h2 {
    font-family: 'Georgia', serif;
    color: var(--primary-dark);
    font-size: 1.8em;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.recipe-side {
    padding: 1.5em;
    border-radius: 10px;
    background-color: var(--background-light);
    border: 1px solid var(--border-light);
    height: fit-content;
}

.servings-control {
    text-align: center;
    padding: 1em 0;
    margin-bottom: 1em;
    border-bottom: 1px dashed var(--border-color);
    font-size: 1.1em;
    font-weight: bold;
}

.servings-control button {
    background-color: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.2s;
}

.servings-control button:hover {
    background-color: var(--primary-color);
}

.ingredients {
    list-style: none; 
    padding: 0;
}

.ingredients li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.7em;
    font-weight: 400;
}

.ingredients li::before {
    content: '🥕'; 
    color: var(--primary-dark);
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 0.8;
}

.utensils {
    list-style: none;
    padding: 0;
}

.utensils li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.5em;
    color: var(--text-light);
}
.utensils li::before {
    content: '⚙️';
    position: absolute;
    left: 0;
    font-size: 1.1em;
}

.recipe-steps {
    margin-top: 1em;
}

.recipe-steps ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0; 
}

.recipe-steps li {
    margin-bottom: 2.5em;
    padding: 1.5em 1.5em 1.5em 75px;
    position: relative;
    background-color: var(--white); 
    border-left: 5px solid var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color); 
    transition: background-color 0.3s;
}

.recipe-steps li:hover {
    background-color: var(--background-gradient);
}

.recipe-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    color: var(--white);
    background-color: var(--primary-color); 
    border-radius: 50%;
    width: 45px;
    height: 45px; 
    font-weight: bold;
    font-size: 1.6em; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 15px; 
    top: 50%;
    transform: translateY(-50%); 
    box-shadow: 0 0 8px var(--shadow-strong); 
}

@media (max-width: 800px) {
    .recipe-card {
        margin: 1em;
        padding: 1.5em;
    }

    .recipe-layout {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .recipe-side {
        order: 2;
    }

    .recipe-steps {
        order: 1;
    }

    .recipe-meta {
        flex-direction: column;
        gap: 0.5em;
        align-items: center;
    }

    .recipe-steps li {
        padding-left: 65px;
        margin-bottom: 2em;
    }
}