/*
Theme Name: TasteInspire Child
Theme URI: https://tasteinspire.com
Description: Custom child theme for TasteInspire food blog
Author: TasteInspire
Author URI: https://tasteinspire.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tasteinspire-child
*/

/* Your custom CSS will go here */

/* Category and Subcategory Cards */
.recipe-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.recipe-category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.recipe-category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e85d04 0%, #dc2f02 100%);
    position: relative;
}

.recipe-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.recipe-category-card:hover .recipe-category-image img {
    transform: scale(1.1);
}

.recipe-category-image.no-image::after {
    content: "🍽️";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.recipe-category-content {
    padding: 1.5rem;
}

.recipe-category-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.recipe-category-title a {
    color: #222;
    text-decoration: none;
}

.recipe-category-title a:hover {
    color: #e85d04;
}

/* Post Cards */
.recipe-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.recipe-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.recipe-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e85d04 0%, #dc2f02 100%);
    position: relative;
}

.recipe-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipe-post-content {
    padding: 1.5rem;
}

.recipe-post-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.recipe-post-title a {
    color: #222;
    text-decoration: none;
}

.recipe-post-title a:hover {
    color: #e85d04;
}

.recipe-post-date {
    color: #666;
    font-size: 0.85rem;
}

/* Section Titles */
.recipe-section-title {
    font-size: 2rem;
    margin: 3rem 0 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.recipe-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #e85d04;
    border-radius: 2px;
}

/* Custom Description */
.category-custom-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 2rem 0 3rem;
    padding: 2rem;
    background: #fff5f0;
    border-radius: 12px;
    border-left: 4px solid #e85d04;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .recipe-category-grid,
    .recipe-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recipe-section-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .recipe-category-grid,
    .recipe-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
