/* ============================================================
   recipe.css — Styles for single-sourdough_recipe.php and partials
   Replaces the inline styles previously embedded in the template.
   ============================================================ */

/* ── Entry layout ── */
.sc-recipe-entry {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ── Featured image ── */
.sc-recipe-featured {
    margin-bottom: 30px;
    text-align: center;
}
.sc-recipe-featured-img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* ── Meta bar ── */
.sc-recipe-meta-bar {
    background: #FAF7F2;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.sc-recipe-meta-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-weight: bold;
    color: #3D6B4F;
}
.sc-recipe-meta-label { color: #222; font-weight: 600; }
.sc-recipe-print-btn {
    background: #3D6B4F;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sc-recipe-print-btn:hover { background: #2A4C38; }

/* ── Card wrapper (vertical flow: meta → columns → calc → faqs) ── */
.sc-recipe-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Ingredients + instructions in two columns */
.sc-recipe-columns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}
@media (max-width: 720px) {
    .sc-recipe-columns { grid-template-columns: 1fr; gap: 25px; }
}

/* ── Section headings ── */
.sc-recipe-h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    margin: 0;
}
.sc-recipe-h2--bordered {
    border-bottom: 2px solid #E8E0D5;
    padding-bottom: 10px;
}
.sc-recipe-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #E8E0D5;
    padding-bottom: 10px;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

/* ── Scaler ── */
.sc-recipe-scaler {
    display: flex;
    gap: 5px;
    background: #FAF7F2;
    padding: 5px;
    border-radius: 6px;
}
.sc-scale-btn {
    border: none;
    background: transparent;
    color: #555;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}
.sc-scale-btn:hover { background: rgba(61,107,79,0.1); }
.sc-scale-btn--active { background: #3D6B4F; color: white; }
.sc-scale-btn:focus-visible {
    outline: 2px solid #3D6B4F;
    outline-offset: 2px;
}

/* ── Ingredient list ── */
.sc-ingredient-list { list-style: none; padding-left: 0; margin: 0; }
.sc-ingredient-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
    line-height: 1.5;
}
.sc-ingredient-item:last-child { border-bottom: none; }
.sc-ingredient-amount { color: #3D6B4F; }
.sc-ingredient-unit { color: #555; }

/* ── Instructions list ── */
.sc-instruction-list { padding-left: 20px; margin: 0; }
.sc-instruction-item { margin-bottom: 15px; line-height: 1.6; }

/* ── Embedded calculator section ── */
.sc-recipe-calc-embed {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #E8E0D5;
}
.sc-recipe-calc-desc { margin: 0 0 20px; color: #555; }

/* ── FAQ section ── */
.sc-recipe-faqs {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #E8E0D5;
}
.sc-recipe-faqs-list { margin-top: 20px; }
.sc-recipe-faq-item { margin-bottom: 20px; }
.sc-recipe-faq-q {
    font-size: 20px;
    color: #3D6B4F;
    margin: 0 0 5px;
}
.sc-recipe-faq-a {
    margin: 0;
    line-height: 1.6;
}

/* ── Print styles ── */
@media print {
    body * { visibility: hidden; }
    .sc-recipe-card, .sc-recipe-card * { visibility: visible; }
    .sc-recipe-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .no-print { display: none !important; }
}
