/* ============================================================
   Recipe page styles — shot.best
   Design: warm orange/cream, Poppins headings, Inter body
   Mobile-first responsive
   ============================================================ */

:root {
    --orange: #FF6B35;
    --yellow: #FFB800;
    --green: #4CAF50;
    --text: #1a1a2e;
    --text-2: #4a4a6a;
    --text-muted: #9090b0;
    --bg: #fffdf9;
    --bg2: #fff8f0;
    --bg3: #f5f0ea;
    --border: #e8e0d5;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; width: 100%; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Navigation ── */
.recipe-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,253,249,0.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    height: 60px;
    display: flex; align-items: center;
}
.recipe-nav-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--text);
    flex-shrink: 0;
}
.nav-logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem;
    flex-shrink: 0;
}
.back-btn {
    font-family: 'Poppins', sans-serif; font-size: 0.82rem; font-weight: 600;
    color: var(--orange); background: rgba(255,107,53,0.1);
    padding: 7px 16px; border-radius: 100px;
    transition: background 0.2s, color 0.2s; white-space: nowrap;
    flex-shrink: 0;
}
.back-btn:hover { background: var(--orange); color: #fff; }

/* ── Hero (full-bleed background image) ── */
.recipe-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex; align-items: flex-end;
    padding-top: 60px; /* nav height */
}
.recipe-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(5,5,20,0.92) 0%,
        rgba(5,5,20,0.60) 40%,
        rgba(5,5,20,0.20) 75%,
        rgba(5,5,20,0.05) 100%
    );
}
.recipe-hero-content {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; width: 100%;
    padding: 2rem 1rem 2rem;
}
.recipe-breadcrumb {
    font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.recipe-breadcrumb a { color: rgba(255,255,255,0.8); }
.recipe-breadcrumb a:hover { color: var(--yellow); }
.recipe-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 900; letter-spacing: -0.02em;
    color: #fff; line-height: 1.2; margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.recipe-hero-meta {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.recipe-hero-meta span {
    font-size: 0.8rem; color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    padding: 4px 10px; border-radius: 100px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.diff-badge {
    font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px;
}
.diff-easy { background: rgba(76,175,80,0.3); color: #a8ffac; }
.diff-medium { background: rgba(255,184,0,0.3); color: #ffe066; }
.diff-hard { background: rgba(255,107,53,0.3); color: #ffb38a; }
.recipe-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.recipe-tags .tag {
    font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 100px;
    background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

/* ── Layout ── */
.recipe-layout {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem;
    align-items: start; padding: 2.5rem 1rem 4rem;
}
.recipe-main {}
.recipe-sidebar { position: sticky; top: 76px; }

/* ── Intro block ── */
.recipe-intro-block { margin-bottom: 2rem; }
.recipe-intro {
    font-size: 1rem; color: var(--text-2); line-height: 1.75;
    padding: 1.1rem 1.25rem;
    background: var(--bg2); border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.recipe-status-badge { display: none; }

/* ── Recipe section ── */
.recipe-section { margin-bottom: 2.25rem; }
.recipe-section-title {
    font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 800;
    margin-bottom: 1.25rem; display: flex; align-items: center; gap: 10px; color: var(--text);
}
.recipe-section-title::after { content: ''; flex: 1; height: 2px; background: var(--border); }

/* ── Steps ── */
.steps-list { display: flex; flex-direction: column; gap: 0.875rem; }
.step-item {
    display: flex; gap: 1rem;
    background: #fff; border-radius: var(--radius);
    padding: 1rem 1.25rem; box-shadow: var(--shadow-sm);
    align-items: flex-start;
}
.step-num {
    flex-shrink: 0; width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.88rem; color: #fff;
}
.step-text { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; padding-top: 6px; }
.step-body h4 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.9rem; margin-bottom: 5px; color: var(--text); }
.step-body p { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }
.step-tip { margin-top: 8px; font-size: 0.8rem; color: var(--orange); background: rgba(255,107,53,0.08); padding: 7px 11px; border-radius: 8px; border-left: 3px solid var(--orange); }

/* ── Tip box ── */
.recipe-tip-box {
    display: flex; gap: 0.875rem; align-items: flex-start;
    background: linear-gradient(135deg, rgba(255,184,0,0.08), rgba(255,107,53,0.06));
    border: 1px solid rgba(255,184,0,0.25);
    border-radius: var(--radius); padding: 1.1rem 1.25rem;
    margin-top: 1.75rem;
}
.tip-icon { font-size: 1.4rem; flex-shrink: 0; }
.tip-text { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; }
.tip-text strong { color: var(--text); }

/* ── Sidebar: Ingredients ── */
.ingredients-card {
    background: #fff; border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem;
}
.ingredients-card h3 {
    font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 800;
    margin-bottom: 0.875rem; color: var(--text);
}
.portions-ctrl {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 0.875rem; font-size: 0.82rem; color: var(--text-2);
}
.portions-ctrl button {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid var(--orange); background: transparent; color: var(--orange);
    font-size: 1rem; font-weight: 700; cursor: pointer; line-height: 1;
    transition: background 0.2s, color 0.2s;
}
.portions-ctrl button:hover { background: var(--orange); color: #fff; }
.portions-ctrl #portion-count { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.95rem; color: var(--text); min-width: 18px; text-align: center; }
.ingredients-list li {
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 0.85rem; color: var(--text-2); display: flex; align-items: center; gap: 7px;
}
.ingredients-list li::before { content: '•'; color: var(--orange); font-weight: 900; }
.ingredients-list li:last-child { border-bottom: none; }
.ingredient-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.ingredient-item:last-child { border-bottom: none; }
.ingredient-name { color: var(--text); font-weight: 500; }
.ingredient-amount { color: var(--orange); font-weight: 700; font-family: 'Poppins', sans-serif; font-size: 0.82rem; }

/* ── Sidebar: Nutrition ── */
.nutrition-card {
    background: #fff; border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem;
}
.nutrition-card h3 {
    font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 800;
    margin-bottom: 0.875rem; color: var(--text);
}
.nutrition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.nutrition-item { background: var(--bg2); border-radius: var(--radius-sm); padding: 0.65rem; text-align: center; }
.n-val, .nutrition-val { font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 800; color: var(--orange); }
.n-label, .nutrition-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.sidebar-card { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.sidebar-card h3 { font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 800; margin-bottom: 0.875rem; }
.tips-list { list-style: none; }
.tips-list li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-2); display: flex; gap: 7px; }
.tips-list li:last-child { border-bottom: none; }
.tips-list li::before { content: '💡'; flex-shrink: 0; }

/* ── Related recipes ── */
.related-section { padding: 0 0 72px; }
.related-section .container, .related-section > div {
    max-width: 1200px; margin: 0 auto; padding: 0 1rem;
}
.related-title {
    font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 800;
    margin-bottom: 1.25rem; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.related-title::after { content: ''; flex: 1; height: 2px; background: var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.rel-card {
    display: block; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rel-card img { width: 100%; height: 160px; object-fit: cover; }
.rel-info { padding: 0.875rem 1rem; }
.rel-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--text); margin-bottom: 3px; line-height: 1.35; }
.rel-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ── Old recipe hero ── */
.recipe-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding-bottom: 2.5rem; max-width: 1200px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.recipe-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.recipe-hero-img img { width: 100%; height: 360px; object-fit: cover; }
.recipe-hero-info h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.875rem; line-height: 1.2; }
.recipe-hero-info h1 span { color: var(--orange); }
.recipe-hero-desc { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.25rem; }
.recipe-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.recipe-stat { text-align: center; background: #fff; border-radius: var(--radius-sm); padding: 0.875rem 1rem; box-shadow: var(--shadow-sm); min-width: 72px; }
.recipe-stat-icon { font-size: 1.3rem; margin-bottom: 3px; }
.recipe-stat-val { font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 800; color: var(--text); }
.recipe-stat-label { font-size: 0.7rem; color: var(--text-muted); }
.recipe-tag { font-size: 0.75rem; font-weight: 600; padding: 4px 11px; border-radius: 100px; background: var(--bg3); color: var(--text-2); }
.recipe-tag.orange { background: rgba(255,107,53,0.1); color: var(--orange); }
.recipe-content { padding: 48px 0 80px; }

/* ── Section title (old style) ── */
.section-title { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; flex: 1; height: 2px; background: var(--border); }

/* ── Footer ── */
.recipe-footer-bar { background: var(--text); padding: 1.25rem 1rem; }
.recipe-footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.875rem;
}
.recipe-footer-inner .nav-logo { color: #fff; }
.recipe-footer-inner .nav-logo-icon { background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.recipe-footer-inner p { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ── Responsive — Tablet ── */
@media (max-width: 1024px) {
    .recipe-layout { grid-template-columns: 1fr; gap: 2rem; }
    .recipe-sidebar { position: static; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .recipe-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Responsive — Mobile ── */
@media (max-width: 768px) {
    .recipe-nav { height: 56px; padding: 0 0.875rem; }
    .recipe-nav-inner { gap: 0.75rem; }
    .nav-logo { font-size: 0.88rem; }
    .nav-logo-icon { width: 28px; height: 28px; font-size: 0.9rem; }
    .back-btn { font-size: 0.78rem; padding: 6px 12px; }

    .recipe-hero { min-height: 320px; padding-top: 56px; }
    .recipe-hero-content { padding: 1.5rem 0.875rem 1.5rem; }
    .recipe-hero-title { font-size: clamp(1.3rem, 6vw, 1.8rem); margin-bottom: 0.6rem; }
    .recipe-hero-meta { gap: 0.4rem; }
    .recipe-hero-meta span { font-size: 0.72rem; padding: 3px 8px; }
    .recipe-breadcrumb { font-size: 0.7rem; margin-bottom: 0.6rem; }
    .recipe-tags .tag { font-size: 0.7rem; padding: 3px 8px; }

    .recipe-layout { padding: 1.5rem 0.875rem 3rem; gap: 1.5rem; }
    .recipe-intro { font-size: 0.92rem; padding: 1rem; }

    .step-item { padding: 0.875rem 1rem; gap: 0.875rem; }
    .step-num { width: 32px; height: 32px; font-size: 0.82rem; }
    .step-text { font-size: 0.85rem; padding-top: 4px; }
    .step-body p { font-size: 0.82rem; }

    .related-grid { grid-template-columns: 1fr; gap: 1rem; }
    .related-section { padding: 0 0 56px; }

    .recipe-hero-img img { height: 240px; }
    .recipe-stats { gap: 0.6rem; }
    .recipe-stat { min-width: 64px; padding: 0.75rem 0.875rem; }

    .recipe-footer-inner { flex-direction: column; text-align: center; }
    .recipe-footer-bar { padding: 1rem 0.875rem; }
}

@media (max-width: 480px) {
    .recipe-hero { min-height: 280px; }
    .recipe-hero-title { font-size: clamp(1.2rem, 7vw, 1.6rem); }
    .recipe-hero-meta { gap: 0.3rem; }
    .recipe-hero-meta span { font-size: 0.68rem; padding: 3px 7px; }

    .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: 1fr; }

    .recipe-layout { padding: 1.25rem 0.75rem 2.5rem; }
    .ingredients-card, .nutrition-card, .sidebar-card { padding: 1rem; }
}
