/*
Theme Name: JoCooks Clone (Kadence Child)
Theme URI: https://yourdomain.com
Description: A highly optimized child theme for Kadence, designed to structurally and visually replicate the JoCooks recipe layout.
Author: Expert WP Dev
Author URI: https://yourdomain.com
Template: kadence
Version: 1.0.0
Text Domain: jocooks-child
*/

/* ==========================================================================
   1. CSS Variables & Color Palette Matching
   ========================================================================== */
:root {
    /* Exact JoCooks Brand Colors (Approximated from visuals) */
    --jc-primary-maroon: #7c2a39; /* The primary button and accent color */
    --jc-primary-hover: #63212d;
    --jc-text-dark: #222222;
    --jc-text-muted: #666666;
    --jc-bg-light: #ffffff;
    --jc-bg-offwhite: #f9f8f8; /* Used for newsletter bands and subtle sections */
    
    /* Typography Overrides */
    --jc-heading-font: 'Playfair Display', serif; /* Or similar depending on Customizer injection */
    --jc-body-font: 'Inter', sans-serif;
}

/* ==========================================================================
   2. Structural Layout & Grids (To be used with Kadence Blocks)
   ========================================================================== */

/* Main Recipe Grid Layout */
.jc-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Circular Trending Categories */
.jc-trending-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.jc-category-item {
    text-align: center;
    max-width: 120px;
    text-decoration: none !important;
}

.jc-category-item img {
    border-radius: 50%;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent;
}

/* ==========================================================================
   3. Hover Animations & Effects
   ========================================================================== */

/* Image Hover effects for Categories */
.jc-category-item:hover img {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.jc-category-item h4 {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--jc-text-dark);
    text-transform: capitalize;
}

/* Recipe Card Hover Effects */
.jc-recipe-card {
    transition: transform 0.3s ease;
}

.jc-recipe-card:hover {
    transform: translateY(-3px);
}

.jc-recipe-card img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    display: block;
}

.jc-recipe-card .entry-title {
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 15px;
    color: var(--jc-text-dark);
}

/* ==========================================================================
   4. Utility & Section Overrides
   ========================================================================== */

/* Newsletter Opt-in Band */
.jc-newsletter-band {
    background-color: var(--jc-bg-offwhite);
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.jc-newsletter-band input[type="email"] {
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 12px 15px;
}

.jc-newsletter-band button {
    background-color: var(--jc-primary-maroon);
    color: #fff;
    border-radius: 4px;
    padding: 12px 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.jc-newsletter-band button:hover {
    background-color: var(--jc-primary-hover);
}
