:root {
    --primary-color: #FF725E;
    --light-cream: #FFF6EC;
    --herbal-green: #79B381;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-light);
    font-size: 1.1rem;
}

.input-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.filters {
    margin-bottom: 2rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip input[type="checkbox"] {
    display: none;
}

.chip span {
    margin-left: 0.5rem;
}

.chip:hover {
    border-color: var(--primary-color);
}

.chip input[type="checkbox"]:checked + span {
    color: var(--primary-color);
}

.chip input[type="checkbox"]:checked ~ .chip {
    border-color: var(--primary-color);
    background-color: var(--light-cream);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #e65a47;
}

.recipe-results {
    margin-top: 3rem;
    display: grid;
    /* Changed to auto-fill to allow more flexibility for content-based width */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* MODIFIED .recipe-card */
.recipe-card {
    background-color: white;
    border-radius: 16px; /* Slightly larger border-radius for a softer look */
    padding: 2rem; /* Increased padding for more breathing room */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Enhanced shadow for depth */
    display: flex; /* Use flexbox for internal layout */
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Distribute space evenly */
    align-items: flex-start; /* Align text to the start */
    width: auto; /* Allow width to be determined by content */
    min-width: 280px; /* Ensure a minimum width for readability */
    max-width: 100%; /* Ensure it doesn't overflow its container */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effects */
    position: relative; /* For potential future absolute positioning of elements */
    overflow: hidden; /* Hide overflowing content */
}

.recipe-card:hover {
    transform: translateY(-8px); /* Subtle lift effect on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); /* More prominent shadow on hover */
}

.recipe-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem; /* Larger heading */
    line-height: 1.3;
}

.recipe-card p {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 0.8rem; /* Space between paragraphs/list items */
}

.recipe-card ul {
    list-style: none; /* Remove default list style */
    padding: 0;
    margin: 0;
}

.recipe-card ul li {
    margin-bottom: 0.5rem; /* Space between list items */
    display: flex;
    align-items: flex-start;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.recipe-card ul li:last-child {
    margin-bottom: 0;
}

.recipe-card ul li::before {
    content: '•'; /* Custom bullet point */
    color: var(--herbal-green); /* Green bullet point */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}


.feedback-section {
    margin-top: 4rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    resize: vertical;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .filter-chips {
        gap: 0.5rem;
    }

    .chip {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Adjust recipe-results for smaller screens */
    .recipe-results {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .recipe-card {
        min-width: unset; /* Remove min-width on small screens */
        width: 100%; /* Ensure full width on small screens */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .submit-btn {
        width: 100%;
    }
}

/* --- HEADER --- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}
.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.main-nav a:hover {
    color: var(--primary-color);
    background: #fff6ec;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
@media (max-width: 900px) {
    .header-top {
        flex-direction: row;
        padding: 1rem;
    }
    .main-nav ul {
        gap: 1rem;
    }
}
@media (max-width: 700px) {
    .header-top {
        flex-direction: row;
        padding: 0.7rem 1rem;
    }
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        z-index: 200;
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .main-nav ul li {
        width: 100%;
    }
    .main-nav a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid #f0e6de;
    }
    .nav-toggle {
        display: flex;
    }
}

/* --- FOOTER --- */
.main-footer {
    background: #181818;
    color: #fff;
    padding: 3rem 1rem 1.2rem 1rem;
    margin-top: 4rem;
    font-size: 1rem;
    text-align: center;
}
.footer-about {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.footer-about h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
}
.footer-about p {
    color: #bbb;
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.social-icon {
    font-size: 1.7rem;
    color: var(--primary-color);
    background: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.social-icon:hover {
    background: var(--primary-color);
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.2rem;
    font-size: 1rem;
    color: #bbb;
}
@media (max-width: 600px) {
    .main-footer {
        padding: 2rem 0.5rem 1rem 0.5rem;
    }
    .footer-about h2 {
        font-size: 1.1rem;
    }
    .footer-about p {
        font-size: 0.98rem;
    }
    .footer-social {
        gap: 0.7rem;
    }
}

/* --- HOME HERO --- */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}
.hero-content {
  max-width: 600px;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* --- WHY SECTION --- */
.why-section {
  max-width: 700px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
}
.why-section h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}
.why-list li {
  background: var(--light-cream);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1.08rem;
  color: var(--text-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* --- EXPLORE SECTION --- */
.explore-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem 1rem;
}
.explore-section h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.explore-search {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.explore-search input[type="text"] {
  padding: 0.7rem 1rem;
  border-radius: 6px;
  border: 2px solid #eee;
  font-size: 1rem;
  width: 250px;
}
.recipe-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Original .recipe-card but now using the global .recipe-card above */
/* This specific .recipe-card rule here is made redundant by the global .recipe-card definition
   and the goal of making cards content-width and full-width in their respective columns.
   However, if you have this in your original CSS and want to keep it to override specific aspects,
   you might adjust it. For the 'full-width and auto-text-based width' requirement,
   the global .recipe-card (shown above with the modifications) is key.
   I've commented out or adjusted the original values here that conflict with the goal. */
/*
.recipe-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem;
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 220px;
  text-align: left;
}
*/
.recipe-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.7rem;
}
.recipe-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
}

/* --- BLOG SECTION --- */
.blog-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem 1rem;
}
.blog-section h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.blog-post {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
}
.blog-post h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.blog-date {
  color: var(--text-light);
  font-size: 0.98rem;
  margin-bottom: 1rem;
  display: block;
}
.blog-post p {
  color: var(--text-dark);
  font-size: 1.08rem;
}

@media (max-width: 700px) {
  .recipe-cards {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .why-list {
    flex-direction: column;
    gap: 0.7rem;
  }
}