<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{recipeTitle}} - {{siteTitle}}</title>
    <meta name="description" content="{{recipeDescription}}">
    
    <!-- Open Graph -->
    <meta property="og:title" content="{{recipeTitle}}">
    <meta property="og:description" content="{{recipeDescription}}">
    <meta property="og:image" content="{{recipeImage}}">
    <meta property="og:type" content="article">
    
    <!-- Structured Data -->
    <script type="application/ld+json">
    {{structuredData}}
    </script>
    
    <link rel="stylesheet" href="/assets/styles.css">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
    <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🥑</text></svg>">
</head>
<body>
    <header class="recipe-header">
        <nav class="nav-container">
            <a href="/" class="logo">🥑 {{siteTitle}}</a>
            <div class="nav-links">
                <a href="/#recipes">All Recipes</a>
            </div>
        </nav>
    </header>

    <main class="recipe-page">
        <article class="recipe-article">
            <div class="recipe-hero">
                <img src="{{recipeImage}}" alt="{{recipeImageAlt}}" class="recipe-hero-image">
                <p class="image-credit">{{imageCredit}}</p>
            </div>

            <div class="recipe-body">
                <header class="recipe-intro">
                    <div class="recipe-tags-header">
                        {{tags}}
                    </div>
                    <h1>{{recipeTitle}}</h1>
                    <p class="recipe-description">{{recipeDescription}}</p>
                </header>

                <div class="recipe-info-bar">
                    <div class="info-item">
                        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
                        <div>
                            <span class="info-label">Prep Time</span>
                            <span class="info-value">{{prepTime}}</span>
                        </div>
                    </div>
                    <div class="info-item">
                        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"/></svg>
                        <div>
                            <span class="info-label">Cook Time</span>
                            <span class="info-value">{{cookTime}}</span>
                        </div>
                    </div>
                    <div class="info-item">
                        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>
                        <div>
                            <span class="info-label">Servings</span>
                            <span class="info-value">{{servings}}</span>
                        </div>
                    </div>
                    <div class="info-item">
                        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 20V10M12 20V4M6 20v-6"/></svg>
                        <div>
                            <span class="info-label">Calories</span>
                            <span class="info-value">{{calories}}</span>
                        </div>
                    </div>
                </div>

                <div class="nutrition-card">
                    <h3>Nutrition per Serving</h3>
                    <div class="nutrition-grid">
                        <div class="nutrition-item">
                            <span class="nutrition-value">{{netCarbs}}</span>
                            <span class="nutrition-label">Net Carbs</span>
                        </div>
                        <div class="nutrition-item">
                            <span class="nutrition-value">{{protein}}</span>
                            <span class="nutrition-label">Protein</span>
                        </div>
                        <div class="nutrition-item">
                            <span class="nutrition-value">{{fat}}</span>
                            <span class="nutrition-label">Fat</span>
                        </div>
                        <div class="nutrition-item">
                            <span class="nutrition-value">{{calories}}</span>
                            <span class="nutrition-label">Calories</span>
                        </div>
                    </div>
                </div>

                <div class="recipe-content-grid">
                    <section class="ingredients-section">
                        <h2>Ingredients</h2>
                        <ul class="ingredients-list">
                            {{ingredients}}
                        </ul>
                    </section>

                    <section class="instructions-section">
                        <h2>Instructions</h2>
                        <ol class="instructions-list">
                            {{instructions}}
                        </ol>
                    </section>
                </div>

                <section class="tips-section">
                    <h2>💡 Pro Tips</h2>
                    <ul class="tips-list">
                        {{tips}}
                    </ul>
                </section>

                <div class="recipe-actions">
                    <button onclick="window.print()" class="btn btn-secondary">
                        <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 6 2 18 2 18 9"/><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"/><rect x="6" y="14" width="12" height="8"/></svg>
                        Print Recipe
                    </button>
                    <a href="/#recipes" class="btn btn-primary">
                        ← More Recipes
                    </a>
                </div>
            </div>
        </article>
    </main>

    <footer class="footer">
        <div class="container">
            <p>&copy; {{currentYear}} {{siteTitle}}. All recipes are for personal use.</p>
            <p class="footer-note">Always consult with a healthcare provider before starting any diet.</p>
        </div>
    </footer>
</body>
</html>