/* SavorChef - Professional Recipe Website Styles */

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

:root {
    --primary-color: #2d2d2d;
    --accent-color: #c85032;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --white: #ffffff;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* Header Styles */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
}

.site-title {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.blog-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.read-more:hover {
    opacity: 0.8;
}

/* Single Post Styles */
.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.post-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.post-meta {
    color: #888;
    font-size: 14px;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 10px;
}

/* Recipe Specific Styles */
.recipe-info {
    background-color: var(--light-gray);
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--accent-color);
}

.recipe-info h3 {
    margin-top: 0;
}

.ingredients, .instructions {
    margin: 30px 0;
}

.buy-now-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 30px 0;
}

.buy-now-btn:hover {
    background-color: #a64028;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #999;
}

/* Static Pages */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 42px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.page-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--accent-color);
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info strong {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .post-title {
        font-size: 32px;
    }
}
