.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    background-color: white;
    position: relative;
}

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

.recipe-card__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: rgba(var(--main-green), 0.1);
}

.recipe-card__content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.recipe-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.recipe-card__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-card__meta {
    font-size: 0.875rem;
    color: #666;
}

.recipe-no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background-color: rgba(var(--main-green), 0.1);
    color: var(--main-color);
    font-size: 3rem;
}

/* Pagination styles */
.pagination-container {
    margin: 2rem 0;
}

.pagination-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.next-btn {
    margin-left: auto;
}

@media (max-width: 768px) {
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .pagination-nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pagination-nav .btn {
        width: 100%;
        text-align: center;
    }
}
