.filterPanel {
    display:none;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    margin-bottom: 15px;
    background: #f5f5f5;
    border-radius: 12px;
}

.filterPanel.show {
    display:flex;
}

.filterPanel input, 
.filterPanel select, 
.filterPanel button { 
    padding: 10px;
    border: 1px solid #a5c071;
    border-radius: 8px;
    font-size: 0.95rem;
}

.filterPanel button {
    cursor: pointer;
    background-color: #a5c071;
    font-weight: bold;
}

/*recipe grid*/
.recipeGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 10px;
}

/*recipe cards*/
.recipeCard {
    border: 2px solid #a5c071;
    border-radius: 12px;
    position:relative;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.recipeCard:hover {
    background-color: #f5f9f0;
    transform: translateY(-2px);
}

.recipeCardImage {
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.recipeCardImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recipeCard h3 {
    margin: 10px;
    font-size: 1rem;
}

/*favourite button*/
.favBtn {
    position: absolute;
    top: 1px;
    right: 5px;
    z-index: 9999;

    background: none;
    border: none;
    font-size: 20px;
    pointer-events: auto;
    padding: 0;
}
.favBtn:hover{
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.3));
    transform: scale(1.1);
    cursor: pointer;
}
.favBtn.favourited {
    color: green;
}
