:root {
    --primary-color: #FF6B6B; /* Coral/Reddish - Warmth, Food */
    --secondary-color: #4ECDC4; /* Teal - Freshness, Modern */
    --accent-color: #FFE66D; /* Yellow - Bright, Energetic */
    --text-dark: #333;
    --text-light: #fff;
    --background-light: #fefefe; /* Near white */
    --card-bg: #fff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 8px;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: var(--card-bg);
    color: var(--text-dark);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-light);
}

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

.header h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.header h1 i {
    color: var(--secondary-color);
}

.header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header nav ul li {
    margin-left: 30px;
}

.header nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.hero-section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #ffda47;
}

/* General Section Styles */
section {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-light);
    margin-bottom: 30px;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
section h2 i {
    color: var(--secondary-color);
}


/* Recipes Section */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.recipe-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.recipe-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 15px 20px 10px;
}

.recipe-card p {
    font-size: 0.95rem;
    color: #555;
    margin: 0 20px 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.card-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
    margin-top: auto; /* Pushes actions to the bottom */
}

.card-actions .btn-primary,
.card-actions .btn-secondary {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    text-align: center;
}

.card-actions .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.card-actions .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.card-actions .btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.card-actions .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Add Recipe Section */
.recipe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.recipe-form input[type="text"],
.recipe-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.recipe-form input[type="text"]:focus,
.recipe-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.recipe-form textarea {
    min-height: 80px;
    resize: vertical;
}

.recipe-form button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.recipe-form button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

/* Meal Plan Section */
.meal-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
    text-align: center;
}
.day-card {
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.day-card h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

/* About Section */
.about-section {
    padding: 40px;
    text-align: justify;
}
.about-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 60px;
    font-size: 0.9rem;
}
.footer p {
    margin: 0;
}
.footer i {
    color: #e74c3c; /* Red heart */
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header nav ul li {
        margin: 5px 15px;
    }
    .hero-section {
        padding: 60px 15px;
    }
    .hero-section h2 {
        font-size: 2.2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    section h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    .recipe-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .meal-plan-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    section {
        padding: 25px;
    }
}