*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #e63946;
    --secondary: #457b9d;
    --bg: #fafafa;
    --text: #1d3557;
    --gray: #6c757d;
    --border: #dee2e6;
    --max-width: 800px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header { background: #fff; border-bottom: 1px solid var(--border); }
nav { max-width: var(--max-width); margin: 0 auto; padding: 1rem; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; }

.hero { text-align: center; padding: 3rem 1rem 2rem; max-width: var(--max-width); margin: 0 auto; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero p { color: var(--gray); font-size: 1.1rem; }

main { max-width: var(--max-width); margin: 2rem auto; padding: 0 1rem; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.post-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 1.25rem; }
.category { display: inline-block; background: var(--primary); color: #fff; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; margin-bottom: 0.5rem; }
.card-content h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-content h2 a { color: var(--text); text-decoration: none; }
.card-content h2 a:hover { color: var(--primary); }
.card-content p { color: var(--gray); font-size: 0.9rem; margin-bottom: 0.5rem; }
.card-meta { font-size: 0.8rem; color: var(--gray); }

.post-container { max-width: var(--max-width); margin: 2rem auto; padding: 0 1rem; }
.recipe-post { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2rem; margin: 0.5rem 0; }
.meta-description { color: var(--gray); font-size: 1.1rem; }
.post-meta { color: var(--gray); font-size: 0.9rem; margin-top: 0.5rem; }

.featured-image { margin-bottom: 2rem; }
.featured-image img { width: 100%; height: auto; border-radius: 8px; }

.intro p { font-size: 1.1rem; margin-bottom: 2rem; }

.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.info-item { text-align: center; padding: 1rem; background: var(--bg); border-radius: 8px; }
.info-item strong { display: block; font-size: 0.85rem; color: var(--gray); margin-bottom: 0.25rem; }
.info-item span { font-size: 1.1rem; font-weight: 600; }

h2 { font-size: 1.5rem; margin-bottom: 1rem; margin-top: 2rem; }

.ingredients ul, .tips ul { list-style: none; padding: 0; }
.ingredients ul li, .tips ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.ingredients ul li::before { content: "•"; color: var(--primary); font-weight: bold; margin-right: 0.5rem; }

.instructions ol { padding-left: 1.5rem; }
.instructions ol li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }

.nutrition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }
.nutrition-item { text-align: center; padding: 1rem; background: var(--bg); border-radius: 8px; }
.nutrition-item .label { display: block; font-size: 0.85rem; color: var(--gray); }
.nutrition-item .value { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

.pin-button { text-align: center; margin: 2rem 0; }
.pin-button a { display: inline-block; background: #bd081c; color: #fff; padding: 0.75rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.pin-button a:hover { background: #8c0615; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--gray); }

footer { text-align: center; padding: 2rem; color: var(--gray); font-size: 0.9rem; border-top: 1px solid var(--border); margin-top: 3rem; }

@media (max-width: 600px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 1.8rem; }
    .posts-grid { grid-template-columns: 1fr; }
}
