/*
 * COMPLETE CSS for YumHalalTreats
 * Theme: Avocado (Fresh Green/Lime)
 * Layout: Responsive, Lightweight, and Professional
 */

/* --- 1. Global Reset & Variables (Avocado Theme) --- */
:root {
    --primary-color: #558B2F; /* Dark Avocado Green (Professional, Deep) */
    --secondary-color: #8BC34A; /* Bright Lime Green (Freshness, Accent) */
    --text-color: #333;
    --background-color: #fff;
    --light-gray: #f9fff4; /* Very light lime background */
    --max-width: 1100px;

    /* Hero Gradient Overlay (Reduced Opacity to let the image show) */
    --hero-overlay-start: rgba(85, 139, 47, 0.30); /* Primary Green 30% opacity */
    --hero-overlay-end: rgba(139, 195, 74, 0.40); /* Secondary Green 40% opacity */

    /* Vibrant Background Colors for Feature Cards */
    --card-bg-1: #E6EE9C; /* Pale Lime/Yellow for Card 1 */
    --card-bg-2: #A5D6A7; /* Light Mint Green for Card 2 */
    --card-bg-3: #C8E6C9; /* Very Light Green for Card 3 */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-gray);
}

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

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

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: auto;
    overflow: hidden;
}

/* --- 2. Header & Navigation --- */
header {
    background: var(--background-color);
    padding: 1rem 0;
    border-bottom: 3px solid var(--secondary-color);
}

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

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

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

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: var(--text-color);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* --- 3. Hero Section (Home Page Banner) --- */
.hero {
    /* Background Image and Positioning */
    background: 
        /* Gradient Overlay uses the low-opacity variables */
        linear-gradient(to right, var(--hero-overlay-start), var(--hero-overlay-end)),
        /* Image URL (Placeholder for your juicy chicken image) */
        url('../img/juicy-halal-chicken.jpg') no-repeat center center/cover; 

    color: #fff;
    text-align: center;
    padding: 7rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero h2 {
    font-size: 3rem; 
    margin-bottom: 0.5rem;
    color: #fff; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    font-style: italic;
}

.button {
    display: inline-block;
    background: #fff; 
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    border: 3px solid var(--secondary-color); 
    transition: background 0.3s, color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    background: var(--secondary-color); 
    color: var(--primary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

/* --- 4. Features Section (Vibrant Cards) --- */
.features .container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-around;
    gap: 20px;
    padding-bottom: 2rem;
}

.features article {
    flex: 1 1 300px; 
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.features article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Specific Card Colors */
.features article:nth-child(1) {
    background: var(--card-bg-1); /* Pale Lime */
}

.features article:nth-child(2) {
    background: var(--card-bg-2); /* Mint Green */
}

.features article:nth-child(3) {
    background: var(--card-bg-3); /* Light Green */
}

.features article h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.features .icon-chef::before,
.features .icon-certified::before,
.features .icon-news::before {
    /* Placeholder for icons */
    content: "🥑"; 
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- 5. Article List Styles --- */
.article-list {
    padding: 2rem 0;
}

.article-list h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.post-card {
    background: var(--background-color);
    padding: 1.5rem;
    border-left: 5px solid var(--secondary-color); /* Bright lime accent */
    margin-bottom: 2rem;
    border-radius: 8px;
    display: flex; /* Use flexbox for image-content layout */
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-card .article-image {
    flex: 0 0 200px;
    overflow: hidden;
    border-radius: 4px;
}

.post-card .article-image img {
    width: 100%;
    height: 150px; 
    object-fit: cover;
    display: block;
}

.post-card .article-content {
    flex: 1;
}

.post-card h3 {
    margin-top: 0;
}

.post-card .meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
    display: block;
}

.post-card .read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: var(--secondary-color);
    color: var(--primary-color);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.post-card .read-more:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- 6. Single Article Page Styles --- */

.single-post {
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.post-header .meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
}

.post-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-intro .lead {
    font-size: 1.15rem;
    font-style: italic;
    padding: 1rem;
    border-left: 5px solid var(--secondary-color);
    margin: 2rem 0;
    background: var(--light-gray);
}

.recipe-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.recipe-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    flex: 1;
}

.ingredients-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted #ccc;
}

.ingredients-list .list-title {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 0.5rem;
}

.instructions-list {
    list-style-type: decimal;
    padding-left: 20px;
}

.instructions-list li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Copy Button & Message */
#copy-ingredients {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

#copy-ingredients:hover {
    background: var(--primary-color);
    color: #fff;
}

.copy-message-hidden {
    opacity: 0;
    visibility: hidden;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 10px;
    transition: opacity 0.5s;
}

.copy-message-visible {
    opacity: 1;
    visibility: visible;
}


/* --- 7. Footer --- */
footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0.3rem 0;
}

/* --- 8. Responsiveness (Media Queries) --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .features article {
        flex: 1 1 100%; /* Features stack vertically */
    }

    .post-card {
        flex-direction: column; /* Article cards stack vertically */
        padding: 1rem;
    }

    .post-card .article-image {
        flex: auto;
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .recipe-grid {
        flex-direction: column; /* Recipe ingredients stack vertically */
        gap: 0;
    }
}
/* --- 10. Index Page Specific Styles --- */

.intro-text {
    padding: 2rem 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.intro-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

/* Feature Section Update for Article Sneak Peeks */
.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Use grid for layout */
    gap: 30px;
    padding: 2rem 0;
}

.features h3 {
    grid-column: 1 / -1; /* Make heading span all columns */
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-card {
    background: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

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

.feature-card .card-content {
    padding: 1.5rem;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Style for the smaller button in the card */
.button-small {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
}

.button-small:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- 11. Logo and Branding Styles (New) --- */

/* Ensures the H1 itself doesn't restrict the logo height */
header h1.logo-container {
    padding: 0;
    margin: 0;
    line-height: 1; /* Essential to control spacing */
}

/* Styles the actual image within the header */
.site-logo {
    height: 40px; /* Adjust this value to your preferred logo size */
    width: auto;
    display: block; /* Removes any default bottom spacing */
    transition: opacity 0.3s;
}

/* Optional: Slight hover effect on the logo */
.site-logo:hover {
    opacity: 0.85;
}

/* Existing Header H1 style override for image */
/* This ensures the font color rule doesn't interfere with the image */
header h1 a {
    color: transparent; /* Makes sure no text shows if image fails to load */
    text-decoration: none;
    font-size: 0; /* Hides the text size */
}