/* ==========================================
   HERO BANNER IMAGE (PATH A)
   ========================================== */
.page-hero {
    background-image: url('/CookLoop/img/recipe_hero_bg.jpg');
}

/* ==========================================
   RECIPE CARDS
   ========================================== */
.recipe-grid-card {
    background: white;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.recipe-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.recipe-grid-img-wrapper {
    position: relative;
    width: 100%;
}

.recipe-grid-img-wrapper img {
    width: 100%;
    aspect-ratio: 1 / 1 !important; /* Forces perfect square */
    object-fit: cover;
}

/* Heart Icon Styling */
.like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.2s;
}

.like-btn:hover { transform: scale(1.1); }
.like-btn.liked { color: #d4090d; }

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0;
    padding-right: 10px; /* Keeps long titles from crashing into the times */
}

/* Stacked Meta Alignment */
.card-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #d4090d; /* Red text for time/kcal */
    font-weight: 500;
    text-align: right; 
    min-width: 80px;
}