/* Prompt & Pande - Clean, Cozy Kitchen Styles */

:root {
    --primary-color: #e85d45;
    --secondary-color: #f4a261;
    --background-color: #fef9f5;
    --text-color: #3d3d3d;
    --card-background: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --spacing: 1.5rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--secondary-color);
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header h1 a {
    color: var(--primary-color);
    text-decoration: none;
}

header h1 a:hover {
    text-decoration: underline;
}

.tagline {
    color: #777;
    font-size: 1.1rem;
    font-style: italic;
}

/* Main Content */
main {
    margin-bottom: 3rem;
}

.recipes-section h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Recipe Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recipe-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.recipe-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.recipe-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: auto;
}

.recipe-link:hover {
    color: var(--secondary-color);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Recipe Article */
.recipe-article {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.recipe-article h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.recipe-article h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.recipe-article h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.recipe-article p {
    margin-bottom: 1rem;
}

.recipe-article ul,
.recipe-article ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.recipe-article li {
    margin-bottom: 0.5rem;
}

.recipe-article blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

.recipe-article code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.recipe-article pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.recipe-article pre code {
    background: none;
    padding: 0;
}

/* Loading and Error States */
.loading {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

.error {
    color: var(--primary-color);
    background: #ffe8e5;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-article {
        padding: 1.5rem;
    }
}
