/* ============================================================
   Recipe Card Pro — Pixel-perfect frontend styles
   ============================================================ */

.rcp-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    max-width: 700px;
    margin: 1.5rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

/* ── Header: title+desc left, image right ─────────────────── */
.rcp-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #e8e8e8;
}
.rcp-header-left {
    flex: 1;
    min-width: 0;
}
.rcp-header-right {
    flex-shrink: 0;
}
.rcp-title {
    font-size: 1.45em;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0 0 10px !important;
    padding: 0 !important;
}
.rcp-desc {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.rcp-thumb {
    width: 165px;
    height: 145px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ── Buttons ──────────────────────────────────────────────── */
.rcp-buttons {
    display: flex;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #e8e8e8;
}
.rcp-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity .15s;
}
.rcp-btn:hover { opacity: .88; }

.rcp-btn-print {
    background: #e8890a;
    color: #fff;
}
.rcp-btn-pin {
    background: #e60023;
    color: #fff;
}

/* ── Meta strip ───────────────────────────────────────────── */
.rcp-meta-wrap {
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
}
.rcp-meta-row {
    display: flex;
    justify-content: center;
}
.rcp-meta-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    min-width: 110px;
}
.rcp-meta-cell:last-child {
    border-right: none;
}
.rcp-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.rcp-meta-label {
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: .08em;
    color: #9e9e9e;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.rcp-meta-val {
    font-size: 0.88em;
    font-weight: 700;
    color: #212121;
    line-height: 1.2;
}
.rcp-meta-divider {
    border: none;
    border-top: 1px solid #eeeeee;
    margin: 0 18px;
}

/* ── Body ─────────────────────────────────────────────────── */
.rcp-body {
    padding: 18px 18px 22px;
}
.rcp-section {
    margin-bottom: 22px;
}
.rcp-section:last-child {
    margin-bottom: 0;
}

/* ── Section headings ─────────────────────────────────────── */
.rcp-section-h {
    font-size: 1.05em !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    letter-spacing: .02em;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* ── Ingredients ──────────────────────────────────────────── */
.rcp-ingredients {
    list-style: disc !important;
    margin: 0 0 0 20px !important;
    padding: 0 !important;
}
.rcp-ingredients li {
    padding: 0 0 5px !important;
    margin: 0 0 1px !important;
    font-size: 0.92em;
    line-height: 1.5;
}

/* ── Instructions ─────────────────────────────────────────── */
.rcp-instructions {
    list-style: decimal !important;
    margin: 0 0 0 20px !important;
    padding: 0 !important;
}
.rcp-instructions li {
    padding: 0 0 12px !important;
    margin: 0 !important;
    font-size: 0.92em;
    line-height: 1.65;
}
.rcp-instructions li:last-child {
    padding-bottom: 0 !important;
}
.rcp-instructions li strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* ── Notes ────────────────────────────────────────────────── */
.rcp-note {
    font-size: 0.9em !important;
    line-height: 1.6 !important;
    color: #444 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}
.rcp-note:last-child { margin-bottom: 0 !important; }
.rcp-note strong { color: #1a1a1a; }

/* ── Responsive ───────────────────────────────────────────── */
@media ( max-width: 560px ) {
    .rcp-header { flex-direction: column; }
    .rcp-thumb { width: 100%; height: 200px; }
    .rcp-meta-cell { min-width: 80px; padding: 8px 10px; }
    .rcp-buttons { flex-direction: column; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .rcp-buttons { display: none !important; }
    .rcp-card { border: 1px solid #ccc; }
}
