/*
Theme Name: HomeChefTips Theme - Recipes Page Styles
Description: Styles specific to the Recipes page and single recipe posts in the HomeChefTips theme.
Version: 1.0.0
*/

/* --- Recipe Grid (for Recipes archive/page) --- */
.featured-categories, .recipe-categories {
    margin-bottom: 40px;
	margin-top: 40px;
}

.featured-categories h2, .recipe-categories h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    color: var(--color-dark-brown);
}

.category-grid {
    display: grid;
	margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
	margin-top: 50px ;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 25px;
}

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

.category-card a {
    color: inherit; /* Inherit text color from parent */
    text-decoration: none;
    display: block;
}

.category-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.category-card h3 {
    color: var(--color-reddish-orange);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.category-card p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--color-dark-text-soft);
    margin-bottom: 0;
}


/* --- Popular Recipe Categories Section Styling --- */
.recipe-categories .section-title { /* Targeting the h2 within recipe-categories */
    text-align: center;
    color: var(--color-dark-brown);
    font-size: 2.5em;
    margin-bottom: 40px; /* Increased margin for better separation */
    padding-top: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted minmax for categories */
    gap: 25px; /* Consistent gap */
    margin-top: 20px; /* Adjusted margin-top */
    justify-content: center; /* Center the grid within its container */
}

.category-box {
    background-color: var(--color-white);
    border-radius: 12px; /* Consistent border-radius */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Center text within the box */
    padding: 25px; /* Ample padding inside the box */
    display: flex; /* Use flexbox for internal content alignment */
    flex-direction: column;
    justify-content: space-between; /* Distribute space between content */
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.category-box h3 {
    font-size: 1.5em; /* Adjusted font size for category name */
    color: var(--color-reddish-orange); /* Using theme accent color */
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: center; /* Ensure category title is centered */
}

.category-box p {
    font-size: 0.95em;
    color: var(--color-dark-text-soft); /* Using theme text color */
    line-height: 1.6;
    margin-bottom: 15px; /* Space before the link */
    text-align: center; /* Ensure description is centered */
}

.category-box a { /* Styling for the "Explore →" link */
    display: inline-block; /* Make it behave like a button */
    background-color: var(--color-bright-blue); /* Using theme color */
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto; /* Pushes the link to the bottom if content varies */
}

.category-box a:hover {
    background-color: var(--color-lighter-blue-hover); /* Hover effect */
    transform: translateY(-2px);
}

/* --- Individual Recipe Page Styles --- */
.single-recipe-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.recipe-title {
    font-size: 3em;
    color: var(--color-dark-brown); /* Using CSS variable from main stylesheet */
    text-align: center;
    margin-bottom: 20px;
}

.recipe-media {
    margin-bottom: 25px;
    text-align: center;
}

.recipe-media img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--color-light-brown); /* Using CSS variable from main stylesheet */
}

.recipe-meta span {
    display: flex;
    align-items: center;
}

.recipe-meta i {
    margin-right: 8px;
    color: var(--color-reddish-orange); /* Using CSS variable from main stylesheet */
}

.ingredients, .instructions {
    background-color: var(--color-white); /* Using CSS variable from main stylesheet */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.ingredients h2, .instructions h2 {
    color: var(--color-reddish-orange); /* Using CSS variable from main stylesheet */
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 2px solid var(--color-light-border); /* Using CSS variable from main stylesheet */
    padding-bottom: 10px;
}

.ingredients ul, .instructions ol {
    padding-left: 25px;
    color: var(--color-dark-brown); /* Using CSS variable from main stylesheet */
}

.ingredients ul li, .instructions ol li {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.8;
}

.ingredients ul li::marker {
    color: var(--color-reddish-orange); /* Using CSS variable from main stylesheet */
}

.instructions ol li::marker {
    font-weight: bold;
    color: var(--color-reddish-orange); /* Using CSS variable from main stylesheet */
}

.social-share {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-light-border); /* Using CSS variable from main stylesheet */
}

.social-share p {
    font-size: 1.2em;
    color: var(--color-dark-brown); /* Using CSS variable from main stylesheet */
    margin-bottom: 15px;
}

.social-share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    color: var(--color-white); /* Using CSS variable from main stylesheet */
    margin: 0 8px;
    transition: transform 0.2s ease;
}

.social-share .share-btn:hover {
    transform: translateY(-3px);
}

.social-share .facebook { background-color: #3b5998; }
.social-share .twitter { background-color: #00acee; }
.social-share .pinterest { background-color: #E60023; }
.social-share .email { background-color: #7d7d7d; }

/* --- Responsive Adjustments (Recipes Specific) --- */
@media (max-width: 992px) {
    .recipe-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .latest-recipes-section h2 {
        font-size: 2em;
    }
    .recipe-card h3 {
        font-size: 1.2em;
    }
    .recipe-card p {
        font-size: 0.9em;
    }
    .single-recipe-page .recipe-title {
        font-size: 2.2em;
    }
    .recipe-meta {
        gap: 20px; /* Adjusted gap for recipe meta */
    }
    .ingredients, .instructions {
        padding: 25px;
    }
    .ingredients h2, .instructions h2 {
        font-size: 1.8em;
    }
    .ingredients ul li, .instructions ol li {
        font-size: 1em;
    }
    /* Category Grid adjustments */
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* More compact on medium screens */
    }
    .category-box h3 {
        font-size: 1.3em;
    }
    .category-box p {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .latest-recipes-section h2 {
        font-size: 2em;
    }

    .recipe-card h3 {
        font-size: 1.2em;
    }
    .recipe-card p {
        font-size: 0.9em;
    }

    .single-recipe-page .recipe-title {
        font-size: 2.2em;
    }

    .recipe-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 1em;
    }

    .ingredients, .instructions {
        padding: 20px;
    }
    .ingredients h2, .instructions h2 {
        font-size: 1.5em;
    }
    .ingredients ul li, .instructions ol li {
        font-size: 1em;
    }

    /* Category Grid adjustments for smaller screens */
    .category-grid {
        grid-template-columns: 1fr; /* Stack categories on mobile */
        gap: 20px;
    }
    .category-box {
        padding: 20px;
    }
    .category-box h3 {
        font-size: 1.4em;
    }
    .category-box p {
        font-size: 0.9em;
    }
    .category-box a {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .latest-recipes-section h2,
    .recipe-categories .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .single-recipe-page .recipe-title {
        font-size: 1.8em;
    }
    .recipe-meta {
        font-size: 0.9em;
        gap: 8px;
    }
    .ingredients, .instructions {
        padding: 15px;
    }
    .ingredients h2, .instructions h2 {
        font-size: 1.3em;
    }
    .ingredients ul li, .instructions ol li {
        font-size: 0.95em;
    }
    .social-share p {
        font-size: 1em;
    }
    .social-share .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
        margin: 0 5px;
    }
}
