/* ═══════════════════════════════════════════════════════
   fizjo-single-przepis.css — strona pojedynczego przepisu
═══════════════════════════════════════════════════════ */

.prz-page { font-family: 'Inter', sans-serif; color: var(--ink, #1e2d3a); }
.prz-wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ── */
.prz-hero { background: var(--pain-bg, #1b3a52); position: relative; overflow: hidden; }
.prz-hero-img { width: 100%; max-height: 360px; overflow: hidden; }
.prz-hero-img img { width: 100%; height: 360px; object-fit: cover; display: block; }
.prz-hero-body { padding: 28px 0 36px; }
.prz-breadcrumb { font-size: .74rem; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.prz-breadcrumb a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.prz-breadcrumb a:hover { color: rgba(255,255,255,.75); }
.prz-hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700;
    color: #fff; line-height: 1.3; margin: 0 0 8px;
}
.prz-hero-desc { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 12px; max-width: 560px; }
.prz-hero-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.prz-meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: .82rem; color: rgba(255,255,255,.65);
}
.prz-meta-item svg { stroke: var(--blue, #24abd6); flex-shrink: 0; }
.prz-meta-item strong { color: rgba(255,255,255,.95); }
.prz-meta-kcal {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15);
    padding: 3px 14px; border-radius: 20px;
}
.prz-meta-kcal strong { color: #fff; }

/* ── CONTENT ── */
.prz-content { padding-top: 24px; padding-bottom: 60px; }

/* ── CARD ── */
.prz-card {
    background: #fff; border-radius: 12px;
    border: 1px solid rgba(30,45,58,.08);
    margin-bottom: 16px; overflow: hidden;
}
.prz-card-section { padding: 20px 24px; }
.prz-card-section + .prz-card-section { border-top: 1px solid rgba(30,45,58,.06); }

.prz-sec-label {
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--blue, #24abd6); margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.prz-sec-label::before {
    content: ''; display: block; width: 16px; height: 1.5px;
    background: var(--blue, #24abd6);
}

/* ── MAKRO BAR ── */
.prz-macro-bar { display: flex; gap: 0; border-radius: 8px; overflow: hidden; height: 36px; margin-bottom: 10px; }
.prz-macro-seg { display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; color: #fff; min-width: 50px; }
.prz-macro-protein { background: #e67e22; }
.prz-macro-fat { background: #e74c3c; }
.prz-macro-carb { background: var(--blue, #24abd6); }
.prz-macro-legend { display: flex; align-items: center; gap: 16px; font-size: .78rem; color: rgba(30,45,58,.55); flex-wrap: wrap; }
.prz-macro-legend-item { display: flex; align-items: center; gap: 5px; }
.prz-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.prz-dot-b { background: #e67e22; }
.prz-dot-t { background: #e74c3c; }
.prz-dot-w { background: var(--blue, #24abd6); }
.prz-kcal-badge {
    margin-left: auto; font-size: .85rem; font-weight: 700;
    color: var(--ink, #1e2d3a); background: rgba(30,45,58,.04);
    padding: 4px 14px; border-radius: 20px;
}

/* ── PILLS ── */
.prz-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.prz-pill {
    font-size: .78rem; font-weight: 500; padding: 5px 14px;
    border-radius: 8px; background: rgba(30,45,58,.04);
    color: rgba(30,45,58,.55); border: 1px solid rgba(30,45,58,.08);
    text-decoration: none; transition: background .15s;
}
.prz-pill:hover { background: rgba(30,45,58,.08); }
.prz-pill--cat { background: rgba(36,171,214,.1); color: var(--blue, #24abd6); border-color: rgba(36,171,214,.2); }
.prz-pill--cat:hover { background: rgba(36,171,214,.18); }

/* ── PORTIONS ── */
.prz-portions-row { display: flex; align-items: center; justify-content: space-between; }
.prz-portions-ctrl { display: flex; align-items: center; gap: 8px; }
.prz-portions-lbl { font-size: .82rem; color: rgba(30,45,58,.5); margin-right: 4px; }
.prz-portions-ctrl button {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid rgba(30,45,58,.2); background: #fff;
    font-size: 16px; cursor: pointer; color: var(--ink, #1e2d3a);
    font-weight: 500; transition: background .15s;
}
.prz-portions-ctrl button:hover { background: rgba(30,45,58,.04); }
.prz-portions-ctrl > span { font-size: 1rem; font-weight: 700; min-width: 24px; text-align: center; }

/* ── SKŁADNIKI ── */
.prz-ing-list { list-style: none; margin: 0; padding: 0; }
.prz-ing-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid rgba(30,45,58,.06); cursor: pointer;
}
.prz-ing-item:last-child { border: none; }
.prz-ing-left { display: flex; align-items: center; gap: 10px; }
.prz-check {
    width: 18px; height: 18px; border-radius: 4px;
    border: 1.5px solid rgba(30,45,58,.25); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.prz-check.checked { background: var(--blue, #24abd6); border-color: var(--blue, #24abd6); }
.prz-check.checked::after { content: '✓'; color: #fff; font-size: 11px; }
.prz-ing-name { font-size: .88rem; color: var(--ink, #1e2d3a); }
.prz-ing-item:has(.checked) .prz-ing-name { text-decoration: line-through; color: rgba(30,45,58,.35); }
.prz-ing-right { text-align: right; }
.prz-ing-amount { font-size: .88rem; font-weight: 600; color: var(--ink, #1e2d3a); }
.prz-ing-detail { font-size: .72rem; color: rgba(30,45,58,.35); margin-top: 2px; }

/* ── KROKI ── */
.prz-steps { }
.prz-step { display: flex; gap: 16px; margin-bottom: 20px; }
.prz-step:last-child { margin-bottom: 0; }
.prz-step-line { display: flex; flex-direction: column; align-items: center; }
.prz-step-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--blue, #24abd6); flex-shrink: 0; margin-top: 5px;
}
.prz-step-connector { flex: 1; width: 2px; background: rgba(30,45,58,.08); margin-top: 4px; }
.prz-step-body { flex: 1; }
.prz-step-title {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--blue, #24abd6); margin-bottom: 4px;
}
.prz-step-text { font-size: .88rem; line-height: 1.7; color: var(--ink, #1e2d3a); }

/* ── WARTOŚCI ODŻYWCZE ── */
.prz-nut-toggle {
    width: 100%; padding: 12px 16px; border-radius: 8px;
    background: rgba(30,45,58,.04); border: 1px solid rgba(30,45,58,.08);
    font-size: .82rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    color: var(--ink, #1e2d3a); transition: background .15s;
}
.prz-nut-toggle:hover { background: rgba(30,45,58,.07); }
.prz-nut-panel { display: none; margin-top: 8px; }
.prz-nut-panel.open { display: block; }
.prz-nut-row {
    display: flex; justify-content: space-between;
    padding: 7px 0; font-size: .82rem;
    border-bottom: 1px solid rgba(30,45,58,.06);
}
.prz-nut-row:last-child { border: none; }
.prz-nut-lbl { color: rgba(30,45,58,.5); }
.prz-nut-val { font-weight: 600; }

.prz-vit-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.prz-vit-pill {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 8px;
    font-size: .78rem; font-weight: 600;
    background: rgba(30,45,58,.04); border: 1px solid rgba(30,45,58,.08);
}
.prz-vit-bar { width: 40px; height: 5px; border-radius: 3px; background: rgba(30,45,58,.08); overflow: hidden; }
.prz-vit-fill { height: 100%; border-radius: 3px; }
.prz-vit-high { background: #2ecc71; }
.prz-vit-med { background: var(--orange, #fd9b32); }
.prz-vit-low { background: rgba(30,45,58,.2); }

/* ── AUTOR ── */
.prz-author-strip {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 24px; background: rgba(30,45,58,.03);
    border-radius: 12px; margin-bottom: 16px;
}
.prz-author-ava {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--orange, #fd9b32); display: flex;
    align-items: center; justify-content: center;
    color: #fff; font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.prz-author-name { font-size: .85rem; font-weight: 600; }
.prz-author-role { font-size: .74rem; color: rgba(30,45,58,.5); }

/* ── PODOBNE ── */
.prz-related { margin-bottom: 24px; }
.prz-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prz-related-card {
    border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(30,45,58,.08); text-decoration: none;
    transition: box-shadow .2s, transform .15s; display: block;
}
.prz-related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); transform: translateY(-2px); }
.prz-related-img { height: 100px; background: rgba(30,45,58,.04); overflow: hidden; }
.prz-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prz-related-placeholder { background: linear-gradient(135deg, rgba(30,45,58,.04), rgba(36,171,214,.08)); }
.prz-related-title { font-size: .82rem; font-weight: 600; color: var(--ink, #1e2d3a); padding: 10px 12px 4px; line-height: 1.35; }
.prz-related-kcal { font-size: .74rem; color: rgba(30,45,58,.4); padding: 0 12px 10px; }

/* ── CTA ── */
.prz-cta {
    background: var(--pain-bg, #1b3a52); border-radius: 12px;
    padding: 24px 28px; display: flex; align-items: center;
    justify-content: space-between; gap: 20px; margin-bottom: 24px;
}
.prz-cta h3 { font-size: .92rem; font-weight: 600; color: #fff; margin: 0 0 2px; }
.prz-cta p { font-size: .78rem; color: rgba(255,255,255,.6); margin: 0; }
.prz-cta-btn {
    display: inline-block; padding: 12px 24px; border-radius: 10px;
    background: var(--orange, #fd9b32); color: #fff;
    font-size: .85rem; font-weight: 600; text-decoration: none;
    white-space: nowrap; transition: background .2s;
}
.prz-cta-btn:hover { background: #e8841a; }

/* ── MOBILE ── */
@media (max-width: 640px) {
    .prz-hero-img img { height: 220px; }
    .prz-hero-body { padding: 20px 0 28px; }
    .prz-wrap { padding: 0 16px; }
    .prz-macro-legend { gap: 10px; }
    .prz-related-grid { grid-template-columns: 1fr 1fr; }
    .prz-cta { flex-direction: column; text-align: center; }
    .prz-vit-row { flex-direction: column; }
}
@media (max-width: 420px) {
    .prz-related-grid { grid-template-columns: 1fr; }
    .prz-macro-bar { height: 28px; }
    .prz-macro-seg { font-size: .65rem; min-width: 40px; }
}
