/* === Recipe Header === */
.recipe-header {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
    border-bottom: 1px solid var(--color-border);
}
.recipe-title { font-size: clamp(1.8rem, 5vw, 2.5rem); color: var(--color-text); margin-bottom: 1rem; }
.recipe-desc { max-width: 700px; margin: 0 auto; color: var(--color-text-light); line-height: 1.8; font-size: 1.1rem; }

.recipe-meta {
    display: flex; justify-content: center; gap: 2rem; margin-top: 2rem;
    flex-wrap: wrap;
}
.meta-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    background: #fff; padding: 0.8rem 1.5rem; border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid var(--color-border);
}
.meta-item svg { width: 24px; height: 24px; fill: var(--color-primary); }
.meta-label { font-size: 0.8rem; color: var(--color-text-light); }
.meta-value { font-weight: bold; color: var(--color-text); }

/* === Layout === */
.recipe-content {
    display: grid; grid-template-columns: 1fr 360px; gap: 4rem;
    margin-top: 3rem; margin-bottom: 5rem;
}
.recipe-image {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2.5rem;
}

/* === Servings Control === */
.servings-control {
    display: flex; align-items: center; gap: 1rem;
    background: #f8f9fa; padding: 0.5rem 1rem; border-radius: 2rem;
    width: fit-content; margin-bottom: 1rem; border: 1px solid var(--color-border);
}
.servings-btn {
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: #fff; color: var(--color-primary); cursor: pointer;
    font-size: 1.2rem; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: all 0.2s;
}
.servings-btn:hover { background: var(--color-primary); color: #fff; }
.servings-display { font-weight: bold; min-width: 80px; text-align: center; }

/* === Ingredients === */
.section-title-with-line {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
    font-size: 1.5rem; color: var(--color-text);
}
.section-title-with-line::after {
    content: ''; flex-grow: 1; height: 2px; background: var(--color-border); opacity: 0.5;
}
.ingredients-list { list-style: none; padding: 0; }
.ingredients-list li {
    padding: 1rem; border-radius: 0.5rem; margin-bottom: 0.5rem;
    background: #fff; border: 1px solid var(--color-border);
    display: flex; align-items: center; gap: 0.8rem; transition: transform 0.2s;
}
.ingredients-list li:hover { transform: translateX(-5px); border-color: var(--color-gray); }
.ingredients-list li::before {
    content: ''; width: 8px; height: 8px; background: var(--color-secondary);
    border-radius: 50%; flex-shrink: 0;
}
.ing-amount { font-weight: bold; color: var(--color-primary); font-size: 1.1rem; }

/* === Instructions === */
.instructions-list { counter-reset: step; list-style: none; padding: 0; }
.instructions-list li {
    position: relative; padding-right: 3.5rem; margin-bottom: 2.5rem;
    line-height: 1.9; color: var(--color-text);
}
.instructions-list li::before {
    content: counter(step); counter-increment: step;
    position: absolute; right: 0; top: 0;
    width: 40px; height: 40px; background: var(--color-primary);
    color: #fff; border-radius: 12px; display: flex;
    justify-content: center; align-items: center;
    font-weight: bold; font-size: 1.2rem;
    box-shadow: 4px 4px 0 rgba(231, 76, 60, 0.2);
}
.instructions-list strong { color: var(--color-primary-dark); }

/* === Sidebar: Secret Box === */
.recipe-sidebar {
    position: sticky; top: 6rem; height: fit-content;
}
.secret-box {
    background: #fff; border-radius: 1rem;
    border: 2px solid #ffeaa7; /* Gold border */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.secret-header {
    background: linear-gradient(135deg, #fdcb6e 0%, #ffb900 100%);
    padding: 1.5rem; text-align: center; color: #2d3436;
    position: relative;
}
.secret-header svg { width: 32px; height: 32px; margin-bottom: 0.5rem; display: block; margin-inline: auto; }
.secret-header h3 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.secret-content { padding: 1.5rem; }
.secret-desc {
    font-size: 0.95rem; color: var(--color-text-light); text-align: center;
    margin-bottom: 1.5rem; line-height: 1.6;
}

/* Sidebar Product Card */
.related-product-card {
    display: flex; gap: 1rem; margin-bottom: 1rem; padding: 1rem;
    background: #fcfcfc; border-radius: 0.8rem;
    border: 1px solid var(--color-border); transition: all 0.3s;
}
.related-product-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.1);
}
.related-product-img {
    width: 70px; height: 70px; object-fit: cover; border-radius: 0.5rem;
}
.related-product-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.related-product-info h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.related-product-info h4 a { color: var(--color-text); }
.related-product-bottom {
    display: flex; justify-content: space-between; align-items: center;
}
.related-product-price { font-weight: bold; font-size: 0.9rem; color: var(--color-text); }
.btn-outline {
    background: transparent; border: 1px solid var(--color-primary);
    color: var(--color-primary); padding: 0.2rem 0.6rem; font-size: 0.8rem;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

@media (max-width: 900px) {
    .recipe-content { grid-template-columns: 1fr; gap: 2rem; }
    .recipe-sidebar { position: static; margin-top: 2rem; }
}