:root {
    --primary: #c86d51;
    --primary-hover: #b25b40;
    --secondary: #f4eae1;
    --accent: #e6b89c;
    --text-dark: #2c221e;
    --text-muted: #6c605a;
    --bg-color: #faf6f0;
    --card-bg: #ffffff;
    --border-color: #eadfd6;
    --shadow: 0 10px 30px rgba(44, 34, 30, 0.06);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.logo-area {
    max-width: 700px;
    margin: 0 auto;
}

.logo-area h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.logo-area p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Menu a tendina selector container */
.recipe-selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.recipe-selector-container label {
    font-weight: 600;
    color: var(--text-dark);
}

select#recipeSelect {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--card-bg);
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

select#recipeSelect:hover, select#recipeSelect:focus {
    border-color: var(--primary);
}

main {
    max-width: 900px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

/* Recipe Card Layout */
.recipe-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.recipe-hero {
    position: relative;
    height: 320px;
    background-color: var(--secondary);
}

.recipe-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-header-content {
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.recipe-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.recipe-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.recipe-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    background-color: var(--secondary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-hover);
}

.recipe-body {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .recipe-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    .recipe-header-content {
        padding: 1.5rem;
    }
}

h3.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

h3.section-heading i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Ingredients list */
.ingredients-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ingredients-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.ingredients-list li:hover {
    background-color: var(--secondary);
}

.ingredients-list input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ingredients-list li.checked {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Steps list */
.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    counter-reset: step-counter;
}

.steps-list li {
    position: relative;
    padding-left: 2.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}