/*
Theme Name: Astra Child
Theme URI: https://easymediterraneanrecipes.blog/
Description: Child theme for the Astra theme used on the Mediterranean Recipe Blog
Author: Abdul Hadi Abbasi
Author URI: https://easymediterraneanrecipes.blog/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/*
Theme Name: Astra Child Theme - My Recipes
... (existing theme header)
*/

/* -------------------------------------- */
/* 1. Global Color Variables & Typography */
/* -------------------------------------- */

:root {
    --primary-green: #2A8272;
    --secondary-green: #3E9F8E;
    --accent-yellow: #FFD166;
    --light-background: #F8FCF9;
}

/* Apply light background to the main page area */
body {
    background-color: var(--light-background);
}

/* Set primary text color using your brand color for better readability */
.site-main {
    color: #333; /* Standard dark text */
}

/* Style main navigation/links using the Primary Green */
a,
.main-header-menu .menu-item > a {
    color: var(--primary-green);
}

/* -------------------------------------- */
/* 2. Custom Recipe Page Styling (single-recipe.php) */
/* -------------------------------------- */

.recipe-meta-box {
    /* Uses the Light Background for a clean container */
    padding: 15px;
    margin: 30px 0;
    border: 1px solid var(--secondary-green);
    background-color: white; /* Use a clean white here for sharp contrast */
    border-radius: 8px;
}

.recipe-title {
    color: var(--primary-green);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.recipe-term-group {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.recipe-term-group strong {
    /* Bolding the taxonomy label */
    min-width: 100px;
    display: inline-block;
    color: #555;
    font-weight: 700; 
}

.recipe-term-link {
    /* Uses the Secondary Green for the category badges */
    background-color: var(--secondary-green); 
    color: white !important;
    padding: 4px 10px;
    margin-right: 8px;
    border-radius: 20px; /* More pill-like shape */
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s;
}

.recipe-term-link:hover {
    /* Hover state using the Primary Green */
    background-color: var(--primary-green);
}

/* -------------------------------------- */
/* 3. Accent (Future CTA Styles) */
/* -------------------------------------- */

/* This class can be used for any future call-to-action button or banner */
.btn-accent-yellow {
    background-color: var(--accent-yellow);
    color: var(--primary-green); /* Contrast with the yellow */
    font-weight: bold;
    border: 2px solid var(--primary-green);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}


/* -------------------------------------- */
/* 4. Taxonomy Archive Page Styling (taxonomy.php) */
/* -------------------------------------- */

/* Archive Header Styling */
.archive-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--secondary-green);
    text-align: center;
}

.archive-title {
    color: var(--primary-green);
    font-size: 3em;
    margin-bottom: 0.1em;
}

.archive-subtitle {
    display: block;
    font-size: 0.5em;
    font-weight: normal;
    color: #888;
}

/* Recipe Grid Layout */
.recipe-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 30px;
    margin-top: 30px;
}

/* Individual Recipe Card */
.recipe-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-image-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 1.4em;
    line-height: 1.3;
    color: var(--primary-green);
    margin-top: 0;
    margin-bottom: 10px;
    text-decoration: none;
}

.card-title:hover {
    color: var(--secondary-green);
}

/* Quick Taxonomy Meta */
.card-taxonomy-meta {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.quick-term-diet,
.quick-term-cuisine {
    font-weight: bold;
    color: var(--primary-green);
}

.quick-term-diet {
    border-right: 1px solid #ccc;
    padding-right: 5px;
    margin-right: 5px;
}