/*
Theme Name: Foodie
Theme URI: https://example.com/foodie
Author: Manus
Author URI: https://manus.com
Description: A lightweight, modern, recipe-friendly WordPress theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodie
*/

:root {
    --primary-color: #e67e22;
    --accent-color: #d35400;
    --background-color: #ffffff;
    --surface-color: #f9f9f9;
    --text-color: #2c3e50;
    --muted-text-color: #7f8c8d;
    --border-color: #e0e0e0;
    --badge-background: var(--primary-color);
    --button-background: var(--primary-color);
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --heading-font: 'Playfair Display', serif;
    --base-font-size: 16px;
    --line-height: 1.6;
    --heading-scale: 1.2;
    --site-max-width: 1200px;
    --content-width: 800px;
    --section-spacing: 4rem;
    --card-gap: 2rem;
    --border-radius: 8px;
}

body {
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    line-height: var(--line-height);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-navigation ul li {
    margin-left: 25px;
}

.main-navigation ul li a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content */
main {
    padding: var(--section-spacing) 0;
}

/* Footer */
.site-footer {
    background: #f8f9fa;
    padding: var(--section-spacing) 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

/* Card System */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--card-gap);
}

.post-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.post-card .post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-card-content {
    padding: 25px;
}

.post-card-title {
    font-size: 20px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.post-card-meta {
    font-size: 12px;
    color: var(--muted-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

/* Homepage Sections */
.hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.featured-categories {
    padding: 60px 0;
    background: #f8f9fa;
}

.featured-categories .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-item {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.category-item h3 {
    margin: 0;
    font-size: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    margin: 0;
}

.newsletter-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.newsletter-section input[type="email"] {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    width: 300px;
    outline: none;
}

.newsletter-section button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
    }

    .main-navigation ul {
        margin-top: 20px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-section form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-section input[type="email"] {
        width: 100%;
        max-width: 300px;
        border-radius: var(--border-radius);
        margin-bottom: 15px;
    }

    .newsletter-section button {
        border-radius: var(--border-radius);
    }
}
