/* ============================================================
   CozyRecipes — Recipe Card supplemental styles
   Core card styles (.recipe-card-container, ingredients,
   instructions, @media print) live in style.css.
   This file adds:
     1. Jump-to-Recipe button (base styles)
     2. Featured image inside the card
     3. Micro-adjustments not covered by style.css
   ============================================================ */

/* ── Jump to Recipe button ──────────────────────────────── */
.jump-to-recipe-container {
    margin: 1.25rem 0 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.jump-to-recipe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8a7a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
}

.jump-to-recipe-btn:hover,
.jump-to-recipe-btn:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.45);
    text-decoration: none;
}

.jump-to-recipe-btn svg {
    flex-shrink: 0;
}

/* ── Featured image inside the recipe card ──────────────── */
.recipe-card-featured-image {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: #f0f0f0;
}

.recipe-card-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Ordered list resets (instructions use <ol> but CSS
      counters handle numbering via :before pseudo-element)  */
.recipe-card-instructions {
    padding-left: 0;
}

/* ── Accessibility: focus ring on print button ──────────── */
.print-recipe-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 600px) {
    .recipe-card-featured-image {
        max-height: 240px;
    }

    .jump-to-recipe-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ── Print overrides specific to recipe-card.css ────────── */
@media print {
    .jump-to-recipe-container {
        display: none !important;
    }

    .recipe-card-featured-image {
        max-height: 220px;
        page-break-inside: avoid;
    }

    .recipe-card-featured-image img {
        object-fit: contain;
        object-position: center;
    }
}
